Submission #159028


Source Code Expand

Copy
#include<stdio.h>
int main(void)
{
	int A[3][3];
	int i,j;
	int flag=0;
	for(i=0;i<=3;i++){
		scanf("%d %d %d %d",&A[i][0],&A[i][1],&A[i][2],&A[i][3]);
	}
	for(i=0;i<=3;i++){
		for(j=0;j<=3;j++){
			if(A[i][j]==A[i+1][j]||A[i][j]==A[i-1][j]||A[i][j]==A[i][j+1]||A[i][j]==A[i][j-1]){
				flag=1;
				break;
			}
		}
	}
	if(flag==1){printf("CONTINUE\n");}
	else if(flag==0){ printf("GAMEOVER\n");}
	return 0;
}

Submission Info

Submission Time
Task A - DEAD END
User seroriKETC
Language C (GCC 4.6.4)
Score 0
Code Size 428 Byte
Status
Exec Time 36 ms
Memory 1152 KB

Compile Error

./Main.c: In function ‘main’:
./Main.c:8:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]

Test Cases

Set Name Score / Max Score Test Cases
All 0 / 100 hand_1.txt, hand_2.txt, random_1.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt, random_2.txt, random_20.txt, random_21.txt, random_22.txt, random_23.txt, random_24.txt, random_25.txt, random_26.txt, random_27.txt, random_28.txt, random_29.txt, random_3.txt, random_30.txt, random_4.txt, random_5.txt, random_6.txt, random_7.txt, random_8.txt, random_9.txt
Case Name Status Exec Time Memory
hand_1.txt 32 ms 1148 KB
hand_2.txt 32 ms 1140 KB
random_1.txt 32 ms 1144 KB
random_10.txt 30 ms 1120 KB
random_11.txt 29 ms 1140 KB
random_12.txt 29 ms 1112 KB
random_13.txt 30 ms 1120 KB
random_14.txt 28 ms 1112 KB
random_15.txt 33 ms 1148 KB
random_16.txt 32 ms 1116 KB
random_17.txt 32 ms 1144 KB
random_18.txt 32 ms 1148 KB
random_19.txt 32 ms 1104 KB
random_2.txt 32 ms 1140 KB
random_20.txt 32 ms 1132 KB
random_21.txt 31 ms 1116 KB
random_22.txt 32 ms 1144 KB
random_23.txt 32 ms 1140 KB
random_24.txt 36 ms 1140 KB
random_25.txt 32 ms 1108 KB
random_26.txt 31 ms 1120 KB
random_27.txt 31 ms 1148 KB
random_28.txt 32 ms 1144 KB
random_29.txt 31 ms 1148 KB
random_3.txt 32 ms 1144 KB
random_30.txt 33 ms 1152 KB
random_4.txt 34 ms 1132 KB
random_5.txt 30 ms 1128 KB
random_6.txt 33 ms 1152 KB
random_7.txt 32 ms 1144 KB
random_8.txt 32 ms 1116 KB
random_9.txt 34 ms 1148 KB
sample_1.txt 31 ms 1116 KB
sample_2.txt 32 ms 1148 KB
sample_3.txt 32 ms 1140 KB