Submission #19484159


Source Code Expand

Copy
A[4][4];
main(){
  for(int i=0;i<4;i++)for(int j=0;j<4;j++)scanf("%d",A[i]+j);
  for(int i=0;i<4;i++)for(int j=0;j<4;j++){
    if(i+1<4&&A[i][j]==A[i+1][j])return!puts("CONTINUE");
    if(j+1<4&&A[i][j]==A[i][j+1])return!puts("CONTINUE");
  }
  puts("GAMEOVER");
}

Submission Info

Submission Time
Task A - DEAD END
User kotatsugame
Language C (GCC 9.2.1)
Score 100
Code Size 264 Byte
Status AC
Exec Time 4 ms
Memory 1664 KB

Compile Error

./Main.c:1:1: warning: data definition has no type or storage class
    1 | A[4][4];
      | ^
./Main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘A’ [-Wimplicit-int]
./Main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    2 | main(){
      | ^~~~
./Main.c: In function ‘main’:
./Main.c:3:43: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
    3 |   for(int i=0;i<4;i++)for(int j=0;j<4;j++)scanf("%d",A[i]+j);
      |                                           ^~~~~
./Main.c:3:43: warning: incompatible implicit declaration of built-in function ‘scanf’
./Main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | A[4][4];
./Main.c:5:41: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
    5 |     if(i+1<4&&A[i][j]==A[i+1][j])return!puts("CONTINUE");
      |                                         ^~~~

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 35
Set Name Test Cases
All 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, sample_1.txt, sample_2.txt, sample_3.txt
Case Name Status Exec Time Memory
hand_1.txt AC 4 ms 1616 KB
hand_2.txt AC 1 ms 1604 KB
random_1.txt AC 1 ms 1512 KB
random_10.txt AC 2 ms 1504 KB
random_11.txt AC 1 ms 1608 KB
random_12.txt AC 1 ms 1604 KB
random_13.txt AC 1 ms 1508 KB
random_14.txt AC 2 ms 1596 KB
random_15.txt AC 1 ms 1648 KB
random_16.txt AC 1 ms 1588 KB
random_17.txt AC 1 ms 1656 KB
random_18.txt AC 2 ms 1620 KB
random_19.txt AC 2 ms 1604 KB
random_2.txt AC 1 ms 1564 KB
random_20.txt AC 1 ms 1612 KB
random_21.txt AC 1 ms 1564 KB
random_22.txt AC 1 ms 1656 KB
random_23.txt AC 1 ms 1612 KB
random_24.txt AC 1 ms 1512 KB
random_25.txt AC 1 ms 1564 KB
random_26.txt AC 3 ms 1612 KB
random_27.txt AC 3 ms 1664 KB
random_28.txt AC 1 ms 1608 KB
random_29.txt AC 2 ms 1588 KB
random_3.txt AC 1 ms 1620 KB
random_30.txt AC 2 ms 1564 KB
random_4.txt AC 1 ms 1504 KB
random_5.txt AC 1 ms 1604 KB
random_6.txt AC 1 ms 1608 KB
random_7.txt AC 1 ms 1600 KB
random_8.txt AC 1 ms 1560 KB
random_9.txt AC 1 ms 1604 KB
sample_1.txt AC 1 ms 1616 KB
sample_2.txt AC 1 ms 1612 KB
sample_3.txt AC 1 ms 1604 KB