結果
| 問題 |
No.2094 Symmetry
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-05-22 14:51:26 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 280 bytes |
| コンパイル時間 | 300 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 29,720 KB |
| 最終ジャッジ日時 | 2024-12-22 10:42:50 |
| 合計ジャッジ時間 | 10,939 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 WA * 2 |
ソースコード
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<1:a=max(a,K+sum(sorted(E)[-b//2:])) print(a)