题目传送门

 /*
思维题:注意题目一句话:At some moment it happened so that they shot one and the same can.
如果两个人都有射中的话,肯定一个can同时被打中
*/
#include <bits/stdc++.h>
using namespace std; int main(void) //URAL 1409 Two Gangsters
{
int a, b;
while (cin >> a >> b)
{
if (a && b) cout << b - << " " << a - << endl;
else cout << b << " " << a << endl;
} return ;
}
05-23 20:53