結果
| 問題 | No.1823 Tricolor Dango |
| コンテスト | |
| ユーザー |
330Xs
|
| 提出日時 | 2022-01-30 11:41:45 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 136 ms / 2,000 ms |
| + 632µs | |
| コード長 | 288 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 96,104 KB |
| 実行使用メモリ | 115,840 KB |
| 最終ジャッジ日時 | 2026-07-25 09:16:38 |
| 合計ジャッジ時間 | 4,299 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
n = int(input())
for _ in range(n):
l = int(input())
a = list(map(int,input().split()))
a_sum = sum(a)
if(a_sum % 3 != 0):
print('No')
else:
syou = a_sum // 3
if(max(a) > syou):
print('No')
else:
print('Yes')
330Xs