結果

問題 No.1823 Tricolor Dango
ユーザー ShirotsumeShirotsume
提出日時 2021-12-03 19:49:52
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 415 bytes
コンパイル時間 384 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 103,560 KB
最終ジャッジ日時 2024-04-26 19:06:17
合計ジャッジ時間 3,920 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 82 ms
77,056 KB
testcase_09 AC 79 ms
76,800 KB
testcase_10 AC 79 ms
76,928 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 79 ms
77,696 KB
testcase_14 AC 79 ms
78,080 KB
testcase_15 AC 78 ms
77,184 KB
testcase_16 AC 66 ms
71,680 KB
testcase_17 AC 70 ms
72,192 KB
testcase_18 AC 79 ms
82,432 KB
testcase_19 AC 108 ms
103,560 KB
testcase_20 AC 72 ms
82,412 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
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:
        return 'Yes'
    else:
        return 'No'



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

0