結果

問題 No.2094 Symmetry
ユーザー 👑 p-adicp-adic
提出日時 2023-05-22 14:47:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 269 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 32,080 KB
最終ジャッジ日時 2023-08-23 23:26:22
合計ジャッジ時間 12,496 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,848 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 16 ms
7,808 KB
testcase_06 AC 16 ms
7,808 KB
testcase_07 AC 16 ms
7,788 KB
testcase_08 AC 17 ms
7,932 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 390 ms
31,308 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 299 ms
31,356 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 295 ms
30,864 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 300 ms
31,464 KB
testcase_27 AC 15 ms
7,800 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 235 ms
32,032 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 224 ms
26,980 KB
testcase_36 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

I=input
def J():
	return map(int,I().split())
N,K=J()
R=range(N*2)
b=0
for i in R:
	for c in I():b+=c=="#"
D,E=[],[]
for i in R:
	C=list(J())
	for i in R:
		D.append(C[i]),E.append(C[i]+C[N*2-i-1])
a=sum(sorted(D)[-b:])
if b%2:a=max(a,K+sum(sorted(E)[-b//2:]))
print(a)
0