您的位置:首页 > 其它

思维题 URAL 1409 Two Gangsters

2015-07-18 16:40 204 查看
题目传送门

 /*
思维题:注意题目一句话: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 - 1 << " " << a - 1 << endl;
else    cout << b << " " << a << endl;
}

return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: