QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#811183#9670. GG and YY’s Stone GameKuonji_Alice_WA 0ms3632kbC++23448b2024-12-12 16:15:172024-12-12 16:15:18

Judging History

你现在查看的是最新测评结果

  • [2024-12-12 16:15:18]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3632kb
  • [2024-12-12 16:15:17]
  • 提交

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'