Submission #1653625


Source Code Expand

a[100],N,M,n,R,r,s;
main(i,j){
	for(scanf("%d%d",&N,&M);n<N;R+=r,n++){
		for(i=0;i<M;i++)scanf("%d",a+i),a[i]^=!!n;
		for(r=i=0;i<M;r=r>s?r:s,i++)for(s=j=0;j<M;j++)s+=a[j]^j!=0^j!=i^j!=M-1;
	}
	printf("%d\n",R);
	exit(0);
}

Submission Info

Submission Time
Task C - チョコレート
User leafmoon
Language C (GCC 5.4.1)
Score 250
Code Size 231 Byte
Status AC
Exec Time 3 ms
Memory 128 KB

Compile Error

./Main.c:1:1: warning: data definition has no type or storage class
 a[100],N,M,n,R,r,s;
 ^
./Main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
./Main.c:1:8: warning: type defaults to ‘int’ in declaration of ‘N’ [-Wimplicit-int]
 a[100],N,M,n,R,r,s;
        ^
./Main.c:1:10: warning: type defaults to ‘int’ in declaration of ‘M’ [-Wimplicit-int]
 a[100],N,M,n,R,r,s;
          ^
./Main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int]
 a[100],N,M,n,R,r,s;
            ^
./Main.c:1:14: warning: type defaults to ‘int’ in declaration of ‘R’ [-Wimplicit-int]
 a[100],N,M,n,R,r,s;
              ^
./Main.c:1:16: warning: type defaults to ‘int’ in declaration of ‘r’ [-Wimplicit-int]
 a[100],N,M,n,R,r,s;
                ^
./Main.c:1:18: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
 a[100],N,M,n,R,r,s;
                  ^
./Main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main(i,j){
 ^
./Main.c: In function ‘...

Judge Result

Set Name All
Score / Max Score 250 / 250
Status
AC × 76
Set Name Test Cases
All 00_min_00.txt, 00_min_01.txt, 00_teuchi_01.txt, 00_teuchi_02.txt, 01_or_12.txt, 01_or_13.txt, 01_or_14.txt, 01_or_15.txt, 01_or_16.txt, 01_or_17.txt, 01_or_18.txt, 01_or_19.txt, 01_or_20.txt, 01_or_21.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt, 01_random_16.txt, 01_random_17.txt, 01_random_18.txt, 01_random_19.txt, 01_random_20.txt, 01_random_21.txt, 01_random_22.txt, 01_random_23.txt, 01_random_24.txt, 01_random_25.txt, 01_random_26.txt, 01_random_27.txt, 01_random_28.txt, 01_random_29.txt, 01_random_30.txt, 01_random_31.txt, 02_oc_22.txt, 02_oc_23.txt, 02_oc_24.txt, 02_oc_25.txt, 02_oc_26.txt, 02_oc_27.txt, 02_oc_28.txt, 02_oc_29.txt, 02_oc_30.txt, 02_oc_31.txt, 03_random_02.txt, 03_random_03.txt, 03_random_04.txt, 03_random_05.txt, 03_random_06.txt, 03_random_07.txt, 03_random_08.txt, 03_random_09.txt, 03_random_10.txt, 03_random_11.txt, 10_asi_24.txt, 10_random_00.txt, 10_random_01.txt, 10_random_02.txt, 10_random_03.txt, 10_random_04.txt, 10_random_05.txt, 10_random_06.txt, 10_random_07.txt, 10_random_08.txt
Case Name Status Exec Time Memory
00_min_00.txt AC 1 ms 128 KB
00_min_01.txt AC 1 ms 128 KB
00_teuchi_01.txt AC 1 ms 128 KB
00_teuchi_02.txt AC 1 ms 128 KB
01_or_12.txt AC 1 ms 128 KB
01_or_13.txt AC 1 ms 128 KB
01_or_14.txt AC 1 ms 128 KB
01_or_15.txt AC 1 ms 128 KB
01_or_16.txt AC 1 ms 128 KB
01_or_17.txt AC 1 ms 128 KB
01_or_18.txt AC 1 ms 128 KB
01_or_19.txt AC 1 ms 128 KB
01_or_20.txt AC 1 ms 128 KB
01_or_21.txt AC 1 ms 128 KB
01_random_00.txt AC 1 ms 128 KB
01_random_01.txt AC 1 ms 128 KB
01_random_02.txt AC 3 ms 128 KB
01_random_03.txt AC 3 ms 128 KB
01_random_04.txt AC 3 ms 128 KB
01_random_05.txt AC 3 ms 128 KB
01_random_06.txt AC 3 ms 128 KB
01_random_07.txt AC 3 ms 128 KB
01_random_08.txt AC 3 ms 128 KB
01_random_09.txt AC 3 ms 128 KB
01_random_10.txt AC 3 ms 128 KB
01_random_11.txt AC 3 ms 128 KB
01_random_12.txt AC 1 ms 128 KB
01_random_13.txt AC 1 ms 128 KB
01_random_14.txt AC 1 ms 128 KB
01_random_15.txt AC 1 ms 128 KB
01_random_16.txt AC 1 ms 128 KB
01_random_17.txt AC 1 ms 128 KB
01_random_18.txt AC 1 ms 128 KB
01_random_19.txt AC 1 ms 128 KB
01_random_20.txt AC 1 ms 128 KB
01_random_21.txt AC 1 ms 128 KB
01_random_22.txt AC 1 ms 128 KB
01_random_23.txt AC 1 ms 128 KB
01_random_24.txt AC 1 ms 128 KB
01_random_25.txt AC 1 ms 128 KB
01_random_26.txt AC 1 ms 128 KB
01_random_27.txt AC 1 ms 128 KB
01_random_28.txt AC 1 ms 128 KB
01_random_29.txt AC 1 ms 128 KB
01_random_30.txt AC 1 ms 128 KB
01_random_31.txt AC 1 ms 128 KB
02_oc_22.txt AC 1 ms 128 KB
02_oc_23.txt AC 1 ms 128 KB
02_oc_24.txt AC 1 ms 128 KB
02_oc_25.txt AC 1 ms 128 KB
02_oc_26.txt AC 1 ms 128 KB
02_oc_27.txt AC 1 ms 128 KB
02_oc_28.txt AC 1 ms 128 KB
02_oc_29.txt AC 1 ms 128 KB
02_oc_30.txt AC 1 ms 128 KB
02_oc_31.txt AC 1 ms 128 KB
03_random_02.txt AC 3 ms 128 KB
03_random_03.txt AC 3 ms 128 KB
03_random_04.txt AC 3 ms 128 KB
03_random_05.txt AC 3 ms 128 KB
03_random_06.txt AC 3 ms 128 KB
03_random_07.txt AC 3 ms 128 KB
03_random_08.txt AC 3 ms 128 KB
03_random_09.txt AC 3 ms 128 KB
03_random_10.txt AC 3 ms 128 KB
03_random_11.txt AC 3 ms 128 KB
10_asi_24.txt AC 3 ms 128 KB
10_random_00.txt AC 1 ms 128 KB
10_random_01.txt AC 3 ms 128 KB
10_random_02.txt AC 1 ms 128 KB
10_random_03.txt AC 1 ms 128 KB
10_random_04.txt AC 1 ms 128 KB
10_random_05.txt AC 1 ms 128 KB
10_random_06.txt AC 1 ms 128 KB
10_random_07.txt AC 1 ms 128 KB
10_random_08.txt AC 1 ms 128 KB