結果
| 問題 | No.452 横着者のビンゴゲーム |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2016-12-03 01:11:03 |
| 言語 | C90 (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 3,000 ms |
| コード長 | 469 bytes |
| 記録 | |
| コンパイル時間 | 219 ms |
| コンパイル使用メモリ | 39,516 KB |
| 最終ジャッジ日時 | 2026-02-23 23:08:41 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 41 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | n;m;b;d;z;k;
| ^
main.c:1:3: warning: data definition has no type or storage class
1 | n;m;b;d;z;k;
| ^
main.c:1:5: warning: data definition has no type or storage class
1 | n;m;b;d;z;k;
| ^
main.c:1:7: warning: data definition has no type or storage class
1 | n;m;b;d;z;k;
| ^
main.c:1:9: warning: data definition has no type or storage class
1 | n;m;b;d;z;k;
| ^
main.c:1:11: warning: data definition has no type or storage class
1 | n;m;b;d;z;k;
| ^
main.c:2:1: warning: data definition has no type or storage class
2 | c[200][100][100];
| ^
main.c:3:1: warning: data definition has no type or storage class
3 | u[2000000];
| ^
main.c: In function 'i':
main.c:4:6: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
4 | i(v){scanf("%d",&v);return v;}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | n;m;b;d;z;k;
main.c: In function 'main':
main.c:30:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
30 | printf("%d",n+b-1);
| ^~~~~~
main.c:30:9: note: include '<stdio.h>' or provide a declaration of 'printf'
ソースコード
n;m;b;d;z;k;
c[200][100][100];
u[2000000];
i(v){scanf("%d",&v);return v;}
#define L(v,n)for(v=0;v<n;++v)
#define G(a){++k;L(y,n)u[c[z]a]=k;f();}
#define H(a){e=0;L(y,n)e+=u[c[d]a]!=k;if(b>e)b=e;}
f(d,e,x,y){
L(d,m)if(d-z){
L(x,n)H([x][y])
L(x,n)H([y][x])
H([y][y])
H([y][~y+n])
}
}
main(x,y){
b=n=i();m=i();
L(z,m)L(y,n)L(x,n)c[z][y][x]=i();
L(z,m){
L(x,n)G([x][y])
L(x,n)G([y][x])
G([y][y])
G([y][~y+n])
}
printf("%d",n+b-1);
return 0;
}
tails