結果

問題 No.452 横着者のビンゴゲーム
ユーザー FF256grhyFF256grhy
提出日時 2017-01-28 04:30:26
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 1,832 ms / 3,000 ms
コード長 323 bytes
コンパイル時間 481 ms
コンパイル使用メモリ 53,316 KB
実行使用メモリ 16,004 KB
最終ジャッジ日時 2023-08-25 12:51:25
合計ジャッジ時間 11,138 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,384 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 2 ms
4,380 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 1 ms
4,380 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,832 ms
4,380 KB
testcase_15 AC 1,749 ms
4,380 KB
testcase_16 AC 486 ms
4,384 KB
testcase_17 AC 8 ms
16,004 KB
testcase_18 AC 37 ms
4,380 KB
testcase_19 AC 11 ms
5,720 KB
testcase_20 AC 9 ms
9,856 KB
testcase_21 AC 144 ms
4,380 KB
testcase_22 AC 7 ms
11,736 KB
testcase_23 AC 355 ms
4,380 KB
testcase_24 AC 6 ms
15,960 KB
testcase_25 AC 4 ms
7,636 KB
testcase_26 AC 131 ms
4,380 KB
testcase_27 AC 40 ms
5,828 KB
testcase_28 AC 43 ms
4,380 KB
testcase_29 AC 13 ms
5,716 KB
testcase_30 AC 238 ms
4,376 KB
testcase_31 AC 12 ms
4,380 KB
testcase_32 AC 5 ms
5,828 KB
testcase_33 AC 28 ms
5,776 KB
testcase_34 AC 32 ms
4,380 KB
testcase_35 AC 13 ms
7,760 KB
testcase_36 AC 4 ms
9,680 KB
testcase_37 AC 5 ms
13,832 KB
testcase_38 AC 1,321 ms
4,376 KB
testcase_39 AC 478 ms
4,376 KB
testcase_40 AC 485 ms
4,380 KB
testcase_41 AC 480 ms
4,380 KB
testcase_42 AC 480 ms
4,380 KB
testcase_43 AC 482 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#define F(i,n)for(int 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][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){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