結果
問題 |
No.2094 Symmetry
|
ユーザー |
👑 |
提出日時 | 2023-05-22 14:48:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 278 bytes |
コンパイル時間 | 208 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 29,728 KB |
最終ジャッジ日時 | 2024-12-22 10:30:04 |
合計ジャッジ時間 | 10,426 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 13 WA * 21 |
ソースコード
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)