首页 > 其他 > 详细

思维题 URAL 1409 Two Gangsters

时间:2015-07-18 18:15:01      阅读:89      评论:0      收藏:0      [点我收藏+]

 

题目传送门

 1 /*
 2     思维题:注意题目一句话:At some moment it happened so that they shot one and the same can.
 3             如果两个人都有射中的话,肯定一个can同时被打中 
 4 */
 5 #include <bits/stdc++.h>
 6 using namespace std;
 7 
 8 int main(void)      //URAL 1409 Two Gangsters
 9 {
10     int a, b;
11     while (cin >> a >> b)
12     {
13         if (a && b) cout << b - 1 << " " << a - 1 << endl;
14         else    cout << b << " " << a << endl;
15     }
16 
17     return 0;
18 }

 

思维题 URAL 1409 Two Gangsters

原文:http://www.cnblogs.com/Running-Time/p/4657171.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!