乒乓博弈
FreezingCold · · 题解
大意
略,题目说的很清楚了。
思路
最大情况为第一局打完后,小 s 一直站在场上没下来,局数为
代码
:::::warning[先看思路,不许抄袭]
#include <bits/stdc++.h>
using namespace std;
long long t, n;
int main(){
cin >> t;
while (t--) {
cin >> n;
cout << n - 1 << " " << n / 2 << endl;
}
return 0;
}
:::::