2 solutions

  • 0
    @ 2026-7-22 11:32:03
    #include <bits/stdc++.h>
    using namespace std;
    void change(int &x,int &y)
    {
    	int t=x;
    	x=y;
    	y=t;
    }
    int main()
    {
    	int a,b;
    	cin>>a>>b;
    	change(a,b);
    	cout<<a<<" "<<b;
    	return 0;
    }

    Information

    ID
    110
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    49
    Accepted
    32
    Uploaded By