結果
問題 |
No.1925 悪鬼三七次元
|
ユーザー |
![]() |
提出日時 | 2025-06-12 20:25:16 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 199 bytes |
コンパイル時間 | 213 ms |
コンパイル使用メモリ | 81,832 KB |
実行使用メモリ | 85,048 KB |
最終ジャッジ日時 | 2025-06-12 20:25:28 |
合計ジャッジ時間 | 4,578 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 43 |
ソースコード
n = int(input()) a = list(map(int, input().split())) total = sum(a) if n == 1: print(total) else: max_a = max(a) if n % 2 == 1: print(total - max_a) else: print(total)