QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#811181#9670. GG and YY’s Stone GameKuonji_Alice_WA 0ms3716kbC++23451b2024-12-12 16:14:082024-12-12 16:14:09

Judging History

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

  • [2024-12-12 16:14:09]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3716kb
  • [2024-12-12 16:14:08]
  • 提交

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'