1 条题解

  • 0
    @ 2024-2-16 15:58:42
    #include<bits/stdc++.h>
    using namespace std;
    
    int main(){
        int _1,_2,_3,_4,_5,f,s;
        cin>>_1>>_2>>_3>>_4>>_5; 
        f=_1/3;
        s=_1%3;
        _2=_2+f;
        _5=_5+f;
        _1=_1-(2*f)-s;
      
        f=_2/3;
        s=_2%3;
        _1=_1+f;
        _3=_3+f;
        _2=_2-(2*f)-s;
      
        f=_3/3;
        s=_3%3;
        _2=_2+f;
        _4=_4+f;
        _3=_3-(2*f)-s;
      
        f=_4/3;
        s=_4%3;
        _3=_3+f;
        _5=_5+f;
        _4=_4-(2*f)-s;
      
        f=_5/3;
        s=_5%3;
        _1=_1+f;
        _4=_4+f;
        _5=_5-(2*f)-s;
      
        cout<<setw(5)<<_1
    	    <<setw(5)<<_2
    	    <<setw(5)<<_3
    	    <<setw(5)<<_4
    	    <<setw(5)<<_5<<endl;
    }
    

    信息

    ID
    452
    时间
    1000ms
    内存
    64MiB
    难度
    9
    标签
    递交数
    11
    已通过
    5
    上传者