Submission #159459


Source Code Expand

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

Submission Info

Submission Time
Task B - Your Numbers are XORed...
User seroriKETC
Language C (GCC 4.6.4)
Score 0
Code Size 522 Byte
Status
Exec Time 22 ms
Memory 796 KB

Compile Error

./Main.c: In function ‘main’:
./Main.c:13: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 subtask0_sample-01.txt, subtask0_sample-02.txt, subtask0_sample-03.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt, subtask1_16.txt, subtask1_17.txt, subtask1_18.txt, subtask1_19.txt, subtask1_20.txt
Case Name Status Exec Time Memory
subtask0_sample-01.txt 21 ms 792 KB
subtask0_sample-02.txt 22 ms 688 KB
subtask0_sample-03.txt 19 ms 792 KB
subtask1_01.txt 19 ms 788 KB
subtask1_02.txt 19 ms 784 KB
subtask1_03.txt 17 ms 784 KB
subtask1_04.txt 17 ms 784 KB
subtask1_05.txt 21 ms 732 KB
subtask1_06.txt 19 ms 788 KB
subtask1_07.txt 22 ms 792 KB
subtask1_08.txt 17 ms 792 KB
subtask1_09.txt 17 ms 788 KB
subtask1_10.txt 18 ms 708 KB
subtask1_11.txt 21 ms 672 KB
subtask1_12.txt 20 ms 796 KB
subtask1_13.txt 19 ms 788 KB
subtask1_14.txt 19 ms 796 KB
subtask1_15.txt 21 ms 676 KB
subtask1_16.txt 21 ms 796 KB
subtask1_17.txt 20 ms 788 KB
subtask1_18.txt 20 ms 792 KB
subtask1_19.txt 20 ms 792 KB
subtask1_20.txt 20 ms 796 KB