4 条题解

  • 2
    @ 2025-3-3 15:44:10
    a,b= map(int, input().split()) 
    c=(b-2*a)//2 
    d =a-c
    print(d, c)
    
    • 1
      @ 2025-4-12 23:41:41
      a,b= map(int, input().split()) 
      c=(b-2*a)//2 
      d =a-c
      print(d,end="")
      print(c)
      
      
      
      • 1
        @ 2025-3-17 11:31:45

        #include ;

        using namespace std;

        int main() { int a,b,c,d; cin>>a>>b; c=(4a-b)/2; d=(b-2a)/2; cout<<c<< " "<<d; return 0;

        • -4
          @ 2025-2-24 22:51:37

          heads, feet = map(int, input().split()) rabbits = (feet - 2 * heads) // 2 chickens = heads - rabbits print(chickens, rabbits)

          • 1

          信息

          ID
          44
          时间
          1000ms
          内存
          128MiB
          难度
          3
          标签
          递交数
          1014
          已通过
          559
          上传者