結果
| 問題 |
No.2094 Symmetry
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-05-22 15:02:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 391 ms / 2,000 ms |
| コード長 | 290 bytes |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 29,780 KB |
| 最終ジャッジ日時 | 2024-12-22 10:59:35 |
| 合計ジャッジ時間 | 10,922 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 34 |
ソースコード
I=input def J(): return map(int,I().split()) N,K=J() M=N*2 R=range(M) 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[M-i-1]) a=sum(sorted(D)[M*M-b:]) if b%2<1:a=max(a,K+sum(sorted(E)[(M*M-b)//2:])) print(a)