結果
| 問題 |
No.1594 Three Classes
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-12 21:07:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 107 ms / 2,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 178 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 75,648 KB |
| 最終ジャッジ日時 | 2024-11-16 08:32:51 |
| 合計ジャッジ時間 | 2,244 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
n=int(input())
e=list(map(int,input().split()))
for i in range(3**n):
p=[0,0,0]
tmp=i
for j in range(n):
p[tmp%3]+=e[j]
tmp//=3
if p[0]==p[1] and p[1]==p[2]:
print("Yes")
exit()
print("No")