Codeforces 1455C. Ping-pong
題目傳送門:
Educational Codeforces Round 99 (Rated for Div. 2)
乍一看,哇要搞博弈,然後一看樣例我就覺得不對勁了.這不就是讓自己體力先到0再換對面到0嘛.
愛麗絲先發球所以她體力可以視為輸入值自減1.那麼問題結束了,輸出他們體力即可…居然還有這種水題我是沒有想到的.
AC程式碼如下:
#include<iostream>
using namespace std;
int main()
{
int t,a,b;
cin >>t;
while(t--)
{
cin >> a >> b;
cout << a-1 << " " << b << endl;
}
}
AC截圖:
相關文章
- Codeforces
- CodeForces 1307
- 9.11 codeforces
- 【CodeForces訓練記錄】Codeforces Global Round 27
- codeforces Photo of The Sky
- Codeforces 專區
- codeforces 11/10
- CodeForces 1935A
- Codeforces Round 955
- Codeforces - Jzzhu and Numbers
- 【CodeForces訓練記錄】Codeforces Round 982 (Div. 2)
- 【CodeForces訓練記錄】Codeforces Round 986 (Div. 2)
- 【CodeForces訓練記錄】Codeforces Round 981 (Div. 3)
- 【CodeForces訓練記錄】Codeforces Round 984 (Div. 3)
- 【CodeForces訓練記錄】Codeforces Round 991 (Div. 3)
- 【CodeForces訓練記錄VP】Codeforces Round 933 (Div. 3)
- codeforces_1131_D
- codeforces_B. Barnicle
- Educational Codeforces Round 163
- CodeForces - 1363B
- Codeforces——231A Team
- A - Fence CodeForces - 1422A
- Codeforces 1969 A-F
- Codeforces 1847 A-F
- CodeForces - 765F
- codeforces ECR169
- Codeforces ICPC那場
- CodeForces - 702F
- CodeForces - 1982E
- CodeForces - 1485F
- CodeForces - 1984E
- Codeforces Global Round 26
- Codeforces Global Round 27
- Codeforces 983 A-E
- Codeforces Global Round 13
- Codeforces C. Colored Rooks 構造 (Codeforces Round #518 (Div. 2) )
- 【CodeForces訓練記錄】Educational Codeforces Round 171 (Rated for Div. 2)
- 【CodeForces訓練記錄】Codeforces Round 976 (Div. 2) and Divide By Zero 9.0IDE