結果
| 問題 |
No.2094 Symmetry
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-05-22 14:47:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 269 bytes |
| コンパイル時間 | 297 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 34,508 KB |
| 最終ジャッジ日時 | 2024-12-22 10:29:41 |
| 合計ジャッジ時間 | 12,055 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 11 WA * 23 |
ソースコード
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)