結果
| 問題 | No.3165 [Cherry 7th Tune A] Croissants Continu |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2025-06-01 15:29:29 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 284 ms / 2,000 ms |
| + 444µs | |
| コード長 | 209 bytes |
| 記録 | |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 95,988 KB |
| 実行使用メモリ | 131,840 KB |
| 最終ジャッジ日時 | 2026-07-11 05:23:49 |
| 合計ジャッジ時間 | 6,819 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 31 |
ソースコード
for _ in range(int(input())):
N = int(input())
A = list(map(int, input().split()))
SUM = sum(A)
MAX = max(A)
if MAX-1 <= SUM-MAX:
print(SUM)
else:
print((SUM-MAX)*2+1)
detteiuu