2 条题解

  • 1
    @ 2024-1-4 19:21:27

    这么简单的题,那就用数学的方法来做啦

    #include<bits/stdc++.h>
    
    using namespace std;
    
    int main()
    
    {
    
        //freopen(".in","r",stdin);
    
        //freopen(".out","w",stdout);
    
        int head,leg;
    
        cin>>head>>leg;
    
        int t=(leg-2*head)/2;
    
        cout<<head-t<<" "<<t;
    
        return 0;
    
    }
    
    • -1
      @ 2024-1-4 19:15:11

      这么难的题,只能用手算逝世啦

      我们会手算的人实在是太有石粒了

      #include<bits/stdc++.h>
      
      using namespace std;
      
      int main()
      
      {
      
      	//freopen(".in","r",stdin);
      
          //freopen(".out","w",stdout);
      
          cout<<23<<" "<<12;
      
          return 0;
      
      }
      
      • 1

      信息

      ID
      111
      时间
      1000ms
      内存
      256MiB
      难度
      1
      标签
      (无)
      递交数
      142
      已通过
      83
      上传者