結果

問題 No.1823 Tricolor Dango
ユーザー ShirotsumeShirotsume
提出日時 2021-11-24 02:02:42
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 453 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 103,468 KB
最終ジャッジ日時 2024-04-26 19:06:21
合計ジャッジ時間 4,043 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 106 ms
77,312 KB
testcase_05 AC 100 ms
77,184 KB
testcase_06 AC 102 ms
77,312 KB
testcase_07 AC 83 ms
76,800 KB
testcase_08 AC 82 ms
76,672 KB
testcase_09 AC 86 ms
76,928 KB
testcase_10 AC 84 ms
76,800 KB
testcase_11 AC 85 ms
76,672 KB
testcase_12 AC 80 ms
76,544 KB
testcase_13 AC 82 ms
77,440 KB
testcase_14 AC 84 ms
77,952 KB
testcase_15 AC 83 ms
77,056 KB
testcase_16 AC 69 ms
71,424 KB
testcase_17 AC 71 ms
72,192 KB
testcase_18 AC 82 ms
82,560 KB
testcase_19 AC 123 ms
103,468 KB
testcase_20 AC 81 ms
82,304 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 114 ms
77,312 KB
testcase_24 WA -
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
import bisect
import itertools
import math
from collections import deque
from collections import Counter
import copy
INF = 10 ** 9
import random

def solve():
    n = int(input())
    a = list(map(int,input().split()))
    if sum(a) % 3 == 0 and max(a) < sum(a) // 3:
        return 'Yes'
    else:
        return 'No'







    



    
t = int(input())
for _ in range(t):
    print(solve())

0