QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#811181 | #9670. GG and YY’s Stone Game | Kuonji_Alice_ | WA | 0ms | 3716kb | C++23 | 451b | 2024-12-12 16:14:08 | 2024-12-12 16:14:09 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
void solve(){
int n;cin >> n;
if(n <= 2) {
cout << "0 v" << '\n';
return;
}
if(n == 3) {
cout << "1 v" << '\n';
return;
}
if((n - 2) % 3 <= 2 || (n - 1) % 3 <= 2){
cout << "0 v\n";
return;
}
cout << "1 v\n";
}
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t;cin >> t;
while(t --) solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3716kb
input:
3 1 2 3
output:
0 v 0 v 1 v
result:
wrong answer 1st lines differ - expected: '0 1', found: '0 v'