結果

問題 No.452 横着者のビンゴゲーム
ユーザー FF256grhyFF256grhy
提出日時 2017-01-28 04:43:38
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 1,830 ms / 3,000 ms
コード長 329 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 52,968 KB
実行使用メモリ 15,848 KB
最終ジャッジ日時 2023-08-25 12:51:40
合計ジャッジ時間 10,485 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,384 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 AC 1 ms
4,380 KB
testcase_13 AC 1 ms
4,380 KB
testcase_14 AC 1,830 ms
4,376 KB
testcase_15 AC 1,709 ms
4,376 KB
testcase_16 AC 494 ms
4,380 KB
testcase_17 AC 8 ms
15,848 KB
testcase_18 AC 38 ms
4,380 KB
testcase_19 AC 11 ms
5,820 KB
testcase_20 AC 8 ms
9,700 KB
testcase_21 AC 175 ms
4,376 KB
testcase_22 AC 7 ms
11,704 KB
testcase_23 AC 359 ms
4,376 KB
testcase_24 AC 6 ms
15,780 KB
testcase_25 AC 4 ms
7,612 KB
testcase_26 AC 123 ms
4,380 KB
testcase_27 AC 41 ms
5,756 KB
testcase_28 AC 43 ms
4,376 KB
testcase_29 AC 13 ms
5,656 KB
testcase_30 AC 185 ms
4,376 KB
testcase_31 AC 12 ms
4,376 KB
testcase_32 AC 6 ms
5,648 KB
testcase_33 AC 29 ms
5,724 KB
testcase_34 AC 31 ms
4,376 KB
testcase_35 AC 14 ms
7,784 KB
testcase_36 AC 4 ms
9,616 KB
testcase_37 AC 5 ms
13,708 KB
testcase_38 AC 1,234 ms
4,376 KB
testcase_39 AC 490 ms
4,380 KB
testcase_40 AC 496 ms
4,380 KB
testcase_41 AC 486 ms
4,376 KB
testcase_42 AC 486 ms
4,380 KB
testcase_43 AC 493 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#define F(i,n)for(int i=0;i<n;i++)
int n,m,d[200][202][100],a,e,z;
int main(){
	std::cin>>n>>m;a=z=2*n;
	F(k,m)F(i,n)F(j,n)(std::cin>>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;}
	std::cout<<a-1;
}
0