結果
問題 |
No.1823 Tricolor Dango
|
ユーザー |
![]() |
提出日時 | 2022-01-28 21:22:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 301 bytes |
コンパイル時間 | 345 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 32,504 KB |
最終ジャッジ日時 | 2024-12-30 04:27:31 |
合計ジャッジ時間 | 3,439 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 12 WA * 13 |
ソースコード
import sys input = sys.stdin.readline T=int(input()) for tests in range(T): n=int(input()) A=list(map(int,input().split())) if sum(A)%3!=0: print("No") continue A.sort() if A[-1]+A[-2]<=sum(A)//3*2: print("Yes") else: print("No")