結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,940 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 15 ms
7,848 KB
testcase_05 AC 15 ms
7,812 KB
testcase_06 AC 15 ms
7,768 KB
testcase_07 AC 15 ms
7,876 KB
testcase_08 AC 16 ms
7,848 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 320 ms
26,504 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 318 ms
26,004 KB
testcase_19 AC 272 ms
26,420 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 273 ms
26,044 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 262 ms
26,692 KB
testcase_27 AC 16 ms
7,808 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 197 ms
26,980 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 195 ms
21,992 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])
		if i<N: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