22 条题解

  • -2
    @ 2024-5-24 20:11:53
    #include<iostream>
    #include<cstdio>
    #include<cmath>
    #include<iomanip>
    using namespace std;
    int main()
    {
        long long a,b,c;
        cin >> a >> b;
        c = a * 4 - b;
        cout << c / 2 << " " << a - c / 2;
        return 0;
    }
    
    • -2
      @ 2024-3-30 19:03:37
      #include <iostream>
      using namespace std;
      int main()
      {
          int head,foot,a,b,rabbit,Ikun;
          cin >>head>>foot;
          a=head*2;
          b=foot-a;
          rabbit=b/2;
          Ikun=head-rabbit;
          cout<<Ikun<<" "<<rabbit;
          return 0;
      }
      

    信息

    ID
    283
    时间
    1000ms
    内存
    256MiB
    难度
    6
    标签
    递交数
    7546
    已通过
    2363
    上传者