結果

問題 No.452 横着者のビンゴゲーム
ユーザー FF256grhyFF256grhy
提出日時 2017-01-28 04:56:54
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1,812 ms / 3,000 ms
コード長 323 bytes
コンパイル時間 1,335 ms
コンパイル使用メモリ 25,476 KB
実行使用メモリ 14,456 KB
最終ジャッジ日時 2023-08-25 12:51:54
合計ジャッジ時間 10,496 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 0 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 0 ms
4,380 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 1 ms
4,380 KB
testcase_12 AC 1 ms
4,380 KB
testcase_13 AC 0 ms
4,380 KB
testcase_14 AC 1,812 ms
4,376 KB
testcase_15 AC 1,734 ms
4,380 KB
testcase_16 AC 495 ms
4,380 KB
testcase_17 AC 8 ms
14,456 KB
testcase_18 AC 38 ms
4,380 KB
testcase_19 AC 12 ms
4,380 KB
testcase_20 AC 7 ms
8,228 KB
testcase_21 AC 173 ms
4,380 KB
testcase_22 AC 6 ms
10,272 KB
testcase_23 AC 369 ms
4,376 KB
testcase_24 AC 6 ms
14,288 KB
testcase_25 AC 4 ms
6,152 KB
testcase_26 AC 127 ms
4,376 KB
testcase_27 AC 52 ms
4,380 KB
testcase_28 AC 48 ms
4,380 KB
testcase_29 AC 14 ms
4,376 KB
testcase_30 AC 190 ms
4,376 KB
testcase_31 AC 12 ms
4,376 KB
testcase_32 AC 5 ms
4,376 KB
testcase_33 AC 32 ms
4,380 KB
testcase_34 AC 32 ms
4,376 KB
testcase_35 AC 15 ms
6,240 KB
testcase_36 AC 4 ms
8,116 KB
testcase_37 AC 4 ms
12,160 KB
testcase_38 AC 1,258 ms
4,380 KB
testcase_39 AC 519 ms
4,376 KB
testcase_40 AC 497 ms
4,384 KB
testcase_41 AC 492 ms
4,380 KB
testcase_42 AC 493 ms
4,380 KB
testcase_43 AC 496 ms
4,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:2:1: warning: data definition has no type or storage class
 m;d[200][202][100];a;e;z;k;l;i;j;x;y;
 ^
main.c:2:1: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int]
main.c:2:3: warning: data definition has no type or storage class
 m;d[200][202][100];a;e;z;k;l;i;j;x;y;
   ^
main.c:2:3: warning: type defaults to ‘int’ in declaration of ‘d’ [-Wimplicit-int]
main.c:2:20: warning: data definition has no type or storage class
 m;d[200][202][100];a;e;z;k;l;i;j;x;y;
                    ^
main.c:2:20: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:2:22: warning: data definition has no type or storage class
 m;d[200][202][100];a;e;z;k;l;i;j;x;y;
                      ^
main.c:2:22: warning: type defaults to ‘int’ in declaration of ‘e’ [-Wimplicit-int]
main.c:2:24: warning: data definition has no type or storage class
 m;d[200][202][100];a;e;z;k;l;i;j;x;y;
                        ^
main.c:2:24: warning: type defaults to ‘int’ in declaration of ‘z’ [-Wimplicit-int]
main.c:2:26: warning: data definition has no type or storage class
 m;d[200][202][100];a;e;z;k;l;i;j;x;y;
                          ^
main.c:2:26: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int]
main.c:2:28: warning: data definition has no type or storage class
 m;d[200][202][100];a;e;z;k;l;i;j;x;y;
                            ^
main.c:2:28: warning: type defaults to ‘int’ in declaration of ‘l’ [-Wimplicit-int]
main.c:2:30: warning: data definition has no type or storage class
 m;d[200][202][100];a;e;z;k;l;i;j;x;y;
                              ^
main.c:2:30: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
main.c:2:32: warning: data definition has no type or storage class
 m;d[200][202][100];a;e;z;k;l;i;j;x;y;
                                ^
main.c:2:32: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int]
main.c:2:34: warni

ソースコード

diff #

#define F(i,n)for(i=0;i<n;i++)
m;d[200][202][100];a;e;z;k;l;i;j;x;y;
int main(n){
	scanf("%d%d",&n,&m);a=z=2*n;
	F(k,m)F(i,n)F(j,n)scanf("%d",&e),d[k][i][j]=d[k][n+j][i]=d[k][z-(i!=j)][i]=d[k][n-i-j-1?z-1:z+1][i]=e;
	F(k,m)F(l,k)F(i,z+2)F(j,z+2){e=z;F(x,n)F(y,n)e-=d[k][i][x]==d[l][j][y];a=e<a?e:a;}
	a=!printf("%d",a-1);
}
0