結果

問題 No.2094 Symmetry
ユーザー 👑 p-adicp-adic
提出日時 2023-05-22 14:51:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 280 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,888 KB
実行使用メモリ 27,104 KB
最終ジャッジ日時 2023-08-23 23:28:28
合計ジャッジ時間 9,190 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,816 KB
testcase_01 AC 16 ms
7,932 KB
testcase_02 AC 16 ms
7,868 KB
testcase_03 AC 15 ms
7,864 KB
testcase_04 AC 15 ms
7,808 KB
testcase_05 AC 16 ms
7,852 KB
testcase_06 AC 16 ms
7,864 KB
testcase_07 AC 16 ms
7,888 KB
testcase_08 AC 16 ms
7,936 KB
testcase_09 AC 320 ms
25,920 KB
testcase_10 AC 315 ms
26,000 KB
testcase_11 AC 320 ms
26,640 KB
testcase_12 AC 320 ms
26,020 KB
testcase_13 AC 266 ms
26,444 KB
testcase_14 AC 318 ms
26,432 KB
testcase_15 AC 324 ms
26,176 KB
testcase_16 AC 317 ms
26,452 KB
testcase_17 AC 272 ms
26,428 KB
testcase_18 AC 269 ms
25,996 KB
testcase_19 AC 320 ms
26,372 KB
testcase_20 AC 325 ms
26,428 KB
testcase_21 AC 320 ms
26,376 KB
testcase_22 AC 320 ms
26,000 KB
testcase_23 AC 273 ms
26,364 KB
testcase_24 AC 276 ms
26,476 KB
testcase_25 AC 318 ms
26,464 KB
testcase_26 AC 321 ms
26,632 KB
testcase_27 AC 15 ms
7,792 KB
testcase_28 WA -
testcase_29 AC 16 ms
7,784 KB
testcase_30 WA -
testcase_31 AC 209 ms
26,968 KB
testcase_32 AC 206 ms
27,040 KB
testcase_33 AC 16 ms
7,808 KB
testcase_34 AC 192 ms
22,024 KB
testcase_35 AC 198 ms
21,912 KB
testcase_36 AC 203 ms
25,952 KB
権限があれば一括ダウンロードができます

ソースコード

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])
		if i<N:E.append(C[i]+C[N*2-i-1])
a=sum(sorted(D)[-b:])
if b%2<1:a=max(a,K+sum(sorted(E)[-b//2:]))
print(a)
0