QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#811183 | #9670. GG and YY’s Stone Game | Kuonji_Alice_ | WA | 0ms | 3632kb | C++23 | 448b | 2024-12-12 16:15:17 | 2024-12-12 16:15:18 |
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 == 0 || (n - 1) % 3 == 0){
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: 3632kb
input:
3 1 2 3
output:
0 v 0 v 1 v
result:
wrong answer 1st lines differ - expected: '0 1', found: '0 v'