結果
問題 | No.1823 Tricolor Dango |
ユーザー | dango |
提出日時 | 2023-06-24 21:40:09 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 199 bytes |
コンパイル時間 | 298 ms |
コンパイル使用メモリ | 86,824 KB |
実行使用メモリ | 93,636 KB |
最終ジャッジ日時 | 2023-09-14 17:35:30 |
合計ジャッジ時間 | 18,566 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 74 ms
75,412 KB |
testcase_01 | AC | 199 ms
78,476 KB |
testcase_02 | AC | 186 ms
77,764 KB |
testcase_03 | AC | 212 ms
79,404 KB |
testcase_04 | AC | 170 ms
77,736 KB |
testcase_05 | AC | 171 ms
78,972 KB |
testcase_06 | AC | 175 ms
78,760 KB |
testcase_07 | AC | 292 ms
77,080 KB |
testcase_08 | AC | 267 ms
77,440 KB |
testcase_09 | AC | 317 ms
76,988 KB |
testcase_10 | AC | 307 ms
77,012 KB |
testcase_11 | AC | 297 ms
77,208 KB |
testcase_12 | AC | 269 ms
77,024 KB |
testcase_13 | TLE | - |
testcase_14 | AC | 1,801 ms
78,028 KB |
testcase_15 | AC | 1,472 ms
78,276 KB |
testcase_16 | TLE | - |
testcase_17 | AC | 1,916 ms
81,348 KB |
testcase_18 | TLE | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
ソースコード
for _ in range(int(input())): N = int(input()) A = list(map(int, input().split())) iO = (sum(A) % 3 == 0) for a in A: iO &= (a <= sum(A) // 3) print("Yes" if iO else "No")