1 条题解

  • 0
    @ 2024-8-15 8:53:18
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    	int n,m,c=0,t=0;
    	cin>>n>>m;
    	t=(m-n*2)/2;
    	c=n-t;
    	cout<<c<<' '<<t;
    return 0;
    }
    
    
    • 1

    信息

    ID
    583
    时间
    1000ms
    内存
    256MiB
    难度
    10
    标签
    递交数
    2
    已通过
    1
    上传者