zoukankan      html  css  js  c++  java
  • 思维题 URAL 1409 Two Gangsters

    题目传送门

     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 }
    编译人生,运行世界!
  • 相关阅读:
    [HNOI2008] Cards
    loj #136
    a problem
    dp * 3
    STL
    套题1
    luogu 4211
    loj #2319
    loj #2316
    luogu 1144
  • 原文地址:https://www.cnblogs.com/Running-Time/p/4657171.html
Copyright © 2011-2022 走看看