1 solutions

  • 0
    @ 2023-4-29 17:52:51
    #include <iostream>
    #include <iomanip>
    
    using namespace std;
    
    int main()
    {
    	int x, y;
    	cin >> x >> y;
    	int b = (y - x - x) / 2;
    	int a = x - b;
    	cout << a << " " << b;
    	return 0;
    }
    
    • 1

    Information

    ID
    138
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    6
    Tags
    # Submissions
    44
    Accepted
    13
    Uploaded By