Submission #2445390


Source Code Expand

#include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
char a[10];
int i,n,l,b[10];
int c[8]={1,2,3,1,4,7,1,7},d[8]={4,5,6,2,5,8,5,5},e[8]={7,8,9,3,6,9,9,3};
int main()
{
	cin>>a;
	l=strlen(a);
	if(l!=9) 
	{
	    if(l%2==1) 
		{
			cout<<"xiaoa wins."; 
			return 0;
		}
	    cout<<"uim wins.";
		return 0;
	}
	for(i=0;i<9;i++)
	  b[a[i]-48]=i%2;
	for(i=0;i<8;i++)
	{
	    if(b[c[i]]==b[d[i]]&&b[e[i]]==b[d[i]]&&b[e[i]]==0) 
		{
			cout<<"xiaoa wins.";
			return 0;
		}
	}
	cout<<"drew.";
	return 0;
}

Submission Info

Submission Time
Task J - 指さし
User luogu_bot3
Language C++ (GCC 5.4.1)
Score 0
Code Size 554 Byte
Status WA
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name Sample Subtask1 All
Score / Max Score 0 / 0 0 / 10 0 / 140
Status
WA × 4
WA × 30
WA × 69
Set Name Test Cases
Sample 00_example0.txt, 00_example1.txt, 00_example2.txt, 00_example3.txt
Subtask1 10_rand_small_00.txt, 10_rand_small_01.txt, 10_rand_small_02.txt, 10_rand_small_03.txt, 10_rand_small_04.txt, 10_rand_small_05.txt, 10_rand_small_06.txt, 10_rand_small_07.txt, 10_rand_small_08.txt, 10_rand_small_09.txt, 10_rand_small_10.txt, 10_rand_small_11.txt, 10_rand_small_12.txt, 10_rand_small_13.txt, 10_rand_small_14.txt, 10_rand_small_15.txt, 10_rand_small_16.txt, 10_rand_small_17.txt, 10_rand_small_18.txt, 10_rand_small_19.txt, 10_rand_small_20.txt, 10_rand_small_21.txt, 10_rand_small_22.txt, 10_rand_small_23.txt, 10_rand_small_24.txt, 10_rand_small_25.txt, 10_rand_small_26.txt, 10_rand_small_27.txt, 10_rand_small_28.txt, 10_rand_small_29.txt
All 00_example0.txt, 00_example1.txt, 00_example2.txt, 00_example3.txt, 10_rand_small_00.txt, 10_rand_small_01.txt, 10_rand_small_02.txt, 10_rand_small_03.txt, 10_rand_small_04.txt, 10_rand_small_05.txt, 10_rand_small_06.txt, 10_rand_small_07.txt, 10_rand_small_08.txt, 10_rand_small_09.txt, 10_rand_small_10.txt, 10_rand_small_11.txt, 10_rand_small_12.txt, 10_rand_small_13.txt, 10_rand_small_14.txt, 10_rand_small_15.txt, 10_rand_small_16.txt, 10_rand_small_17.txt, 10_rand_small_18.txt, 10_rand_small_19.txt, 10_rand_small_20.txt, 10_rand_small_21.txt, 10_rand_small_22.txt, 10_rand_small_23.txt, 10_rand_small_24.txt, 10_rand_small_25.txt, 10_rand_small_26.txt, 10_rand_small_27.txt, 10_rand_small_28.txt, 10_rand_small_29.txt, 20_rand_00.txt, 20_rand_01.txt, 20_rand_02.txt, 20_rand_03.txt, 20_rand_04.txt, 20_rand_05.txt, 20_rand_06.txt, 20_rand_07.txt, 20_rand_08.txt, 20_rand_09.txt, 20_rand_10.txt, 20_rand_11.txt, 20_rand_12.txt, 20_rand_13.txt, 20_rand_14.txt, 20_rand_15.txt, 20_rand_16.txt, 20_rand_17.txt, 20_rand_18.txt, 20_rand_19.txt, 30_rand_max_0.txt, 30_rand_max_1.txt, 30_rand_max_2.txt, 30_rand_max_3.txt, 30_rand_max_4.txt, 30_rand_max_5.txt, 30_rand_max_6.txt, 30_rand_max_7.txt, 30_rand_max_8.txt, 30_rand_max_9.txt, 40_hand0.txt, 40_hand1.txt, 40_hand2.txt, 40_hand3.txt, 40_hand4.txt
Case Name Status Exec Time Memory
00_example0.txt WA 1 ms 256 KB
00_example1.txt WA 1 ms 256 KB
00_example2.txt WA 1 ms 256 KB
00_example3.txt WA 1 ms 256 KB
10_rand_small_00.txt WA 1 ms 256 KB
10_rand_small_01.txt WA 1 ms 256 KB
10_rand_small_02.txt WA 1 ms 256 KB
10_rand_small_03.txt WA 1 ms 256 KB
10_rand_small_04.txt WA 1 ms 256 KB
10_rand_small_05.txt WA 1 ms 256 KB
10_rand_small_06.txt WA 1 ms 256 KB
10_rand_small_07.txt WA 1 ms 256 KB
10_rand_small_08.txt WA 1 ms 256 KB
10_rand_small_09.txt WA 1 ms 256 KB
10_rand_small_10.txt WA 1 ms 256 KB
10_rand_small_11.txt WA 1 ms 256 KB
10_rand_small_12.txt WA 1 ms 256 KB
10_rand_small_13.txt WA 1 ms 256 KB
10_rand_small_14.txt WA 1 ms 256 KB
10_rand_small_15.txt WA 1 ms 256 KB
10_rand_small_16.txt WA 1 ms 256 KB
10_rand_small_17.txt WA 1 ms 256 KB
10_rand_small_18.txt WA 1 ms 256 KB
10_rand_small_19.txt WA 1 ms 256 KB
10_rand_small_20.txt WA 1 ms 256 KB
10_rand_small_21.txt WA 1 ms 256 KB
10_rand_small_22.txt WA 1 ms 256 KB
10_rand_small_23.txt WA 1 ms 256 KB
10_rand_small_24.txt WA 1 ms 256 KB
10_rand_small_25.txt WA 1 ms 256 KB
10_rand_small_26.txt WA 1 ms 256 KB
10_rand_small_27.txt WA 1 ms 256 KB
10_rand_small_28.txt WA 1 ms 256 KB
10_rand_small_29.txt WA 1 ms 256 KB
20_rand_00.txt WA 1 ms 256 KB
20_rand_01.txt WA 1 ms 256 KB
20_rand_02.txt WA 1 ms 256 KB
20_rand_03.txt WA 1 ms 256 KB
20_rand_04.txt WA 1 ms 256 KB
20_rand_05.txt WA 1 ms 256 KB
20_rand_06.txt WA 1 ms 256 KB
20_rand_07.txt WA 1 ms 256 KB
20_rand_08.txt WA 1 ms 256 KB
20_rand_09.txt WA 1 ms 256 KB
20_rand_10.txt WA 1 ms 256 KB
20_rand_11.txt WA 1 ms 256 KB
20_rand_12.txt WA 1 ms 256 KB
20_rand_13.txt WA 1 ms 256 KB
20_rand_14.txt WA 1 ms 256 KB
20_rand_15.txt WA 1 ms 256 KB
20_rand_16.txt WA 1 ms 256 KB
20_rand_17.txt WA 1 ms 256 KB
20_rand_18.txt WA 1 ms 256 KB
20_rand_19.txt WA 1 ms 256 KB
30_rand_max_0.txt WA 1 ms 256 KB
30_rand_max_1.txt WA 1 ms 256 KB
30_rand_max_2.txt WA 1 ms 256 KB
30_rand_max_3.txt WA 1 ms 256 KB
30_rand_max_4.txt WA 1 ms 256 KB
30_rand_max_5.txt WA 1 ms 256 KB
30_rand_max_6.txt WA 1 ms 256 KB
30_rand_max_7.txt WA 1 ms 256 KB
30_rand_max_8.txt WA 1 ms 256 KB
30_rand_max_9.txt WA 1 ms 256 KB
40_hand0.txt WA 1 ms 256 KB
40_hand1.txt WA 1 ms 256 KB
40_hand2.txt WA 1 ms 256 KB
40_hand3.txt WA 1 ms 256 KB
40_hand4.txt WA 1 ms 256 KB