結果
問題 |
No.1823 Tricolor Dango
|
ユーザー |
|
提出日時 | 2022-01-28 23:22:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 196 ms / 2,000 ms |
コード長 | 228 bytes |
コンパイル時間 | 390 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 101,760 KB |
最終ジャッジ日時 | 2024-12-30 11:40:41 |
合計ジャッジ時間 | 4,756 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
t = int(input()) for _ in range(t): n = int(input()) A = list(map(int, input().split())) sumA = sum(A) maxA = max(A) if sumA % 3 == 0 and maxA <= sumA // 3: print("Yes") else: print("No")