結果
| 問題 |
No.2094 Symmetry
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-05-22 14:59:46 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 288 bytes |
| コンパイル時間 | 269 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 29,184 KB |
| 最終ジャッジ日時 | 2024-12-22 10:56:01 |
| 合計ジャッジ時間 | 10,947 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 4 WA * 30 |
ソースコード
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)[N*N-b:]) if b%2<1:a=max(a,K+sum(sorted(E)[(N*N-b)//2:])) print(a)