結果

問題 No.452 横着者のビンゴゲーム
ユーザー FF256grhyFF256grhy
提出日時 2017-01-28 04:10:00
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 2,373 ms / 3,000 ms
コード長 323 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 25,588 KB
実行使用メモリ 14,452 KB
最終ジャッジ日時 2023-08-25 12:46:49
合計ジャッジ時間 13,495 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 0 ms
4,376 KB
testcase_07 AC 0 ms
4,380 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 1 ms
4,380 KB
testcase_11 AC 1 ms
4,380 KB
testcase_12 AC 1 ms
4,380 KB
testcase_13 AC 0 ms
4,376 KB
testcase_14 AC 2,373 ms
4,376 KB
testcase_15 AC 2,289 ms
4,376 KB
testcase_16 AC 660 ms
4,376 KB
testcase_17 AC 8 ms
14,452 KB
testcase_18 AC 49 ms
4,380 KB
testcase_19 AC 14 ms
4,380 KB
testcase_20 AC 9 ms
8,096 KB
testcase_21 AC 197 ms
4,376 KB
testcase_22 AC 7 ms
10,256 KB
testcase_23 AC 478 ms
4,376 KB
testcase_24 AC 7 ms
14,248 KB
testcase_25 AC 4 ms
6,024 KB
testcase_26 AC 163 ms
4,376 KB
testcase_27 AC 54 ms
4,376 KB
testcase_28 AC 57 ms
4,376 KB
testcase_29 AC 16 ms
4,376 KB
testcase_30 AC 299 ms
4,376 KB
testcase_31 AC 14 ms
4,384 KB
testcase_32 AC 6 ms
4,376 KB
testcase_33 AC 37 ms
4,376 KB
testcase_34 AC 40 ms
4,376 KB
testcase_35 AC 16 ms
6,032 KB
testcase_36 AC 5 ms
8,100 KB
testcase_37 AC 5 ms
12,292 KB
testcase_38 AC 1,658 ms
4,380 KB
testcase_39 AC 660 ms
4,376 KB
testcase_40 AC 658 ms
4,380 KB
testcase_41 AC 657 ms
4,380 KB
testcase_42 AC 659 ms
4,376 KB
testcase_43 AC 660 ms
4,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:2: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
  scanf("%d%d",&n,&m);a=z=2*n;
  ^~~~~
main.c:4:2: warning: incompatible implicit declaration of built-in function ‘scanf’
main.c:4:2: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:1:
+#include <stdio.h>
 #define F(i,n)for(i=n;i--;)
main.c:4:2:
  scanf("%d%d",&n,&m);a=z=2*n;
  ^~~~~
main.c:7:5: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
  a=!printf("%d",a-1);
     ^~~~~~
main.c:7:5: warning: incompatible implicit declaration of built-in function ‘printf’
main.c:7:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’

ソースコード

diff #

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