1 条题解

  • 0
    @ 2025-12-5 12:25:25

    C++ :

    #include<iostream>
    #include<cstdio>
    using namespace std;
    int main()
    {
    	int head,foot;
    	cin>>head>>foot;
    	int j,t;
    	j=2*head;
    	t=(foot-j)/2;
    	j=head-t;
    	cout<<j<<' '<<t<<endl;
    	return 0;	
    }
    
    
    • 1

    信息

    ID
    56
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者