結果
| 問題 |
No.1823 Tricolor Dango
|
| コンテスト | |
| ユーザー |
学ぶマン
|
| 提出日時 | 2025-11-08 21:15:38 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 189 ms / 2,000 ms |
| コード長 | 263 bytes |
| コンパイル時間 | 378 ms |
| コンパイル使用メモリ | 82,680 KB |
| 実行使用メモリ | 102,108 KB |
| 最終ジャッジ日時 | 2025-11-08 21:15:44 |
| 合計ジャッジ時間 | 5,488 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
T = int(input())
for i in range(T):
N = int(input())
A = list(map(int, input().split()))
SUM = sum(A)
if SUM%3 != 0:
print('No')
continue
K = SUM//3
if K >= max(A):
print('Yes')
else:
print('No')
学ぶマン