QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#62115#4545. Triangle Gameqinjianbin#AC ✓7ms3580kbC++17365b2022-11-17 14:38:202022-11-17 14:38:25

Judging History

This is the latest submission verdict.

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-11-17 14:38:25]
  • Judged
  • Verdict: AC
  • Time: 7ms
  • Memory: 3580kb
  • [2022-11-17 14:38:20]
  • Submitted

answer

#include<bits/stdc++.h>
#define rep(i, a, b) for(int i = (a); i < (b); i++)
#define _for(i, a, b) for(int i = (a); i <= (b); i++)
using namespace std;

int main()
{
	int T; scanf("%d", &T);
	while(T--)
	{
		 int a, b, c;
		 scanf("%d%d%d", &a, &b, &c);
		 a--; b--; c--;
		 if((a ^ b ^ c)== 0) puts("Lose");
		 else puts("Win");
	}

	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 7ms
memory: 3580kb

input:

10000
1 1 1
1 2 2
1 3 3
1 4 4
1 5 5
1 6 6
1 7 7
1 8 8
1 9 9
1 10 10
1 11 11
1 12 12
1 13 13
1 14 14
1 15 15
1 16 16
1 17 17
1 18 18
1 19 19
1 20 20
2 1 2
2 2 1
2 2 2
2 2 3
2 3 2
2 3 3
2 3 4
2 4 3
2 4 4
2 4 5
2 5 4
2 5 5
2 5 6
2 6 5
2 6 6
2 6 7
2 7 6
2 7 7
2 7 8
2 8 7
2 8 8
2 8 9
2 9 8
2 9 9
2 9 10
2...

output:

Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Lose
Win
Win
Win
Win
Lose
Lose
Win
Win
Win
Win
Lose
Lose
Win
Win
Win
Win
Lose
Lose
Win
Win
Win
Win
Lose
Lose
Win
Win
Win
Win
Lose
Lose
Win
Win
Win
Win
Lose
Lose
Win
Win
Win
Win
Lose
Lose
Win
Win
...

result:

ok 10000 lines