結果

問題 No.1594 Three Classes
ユーザー mrng
提出日時 2021-12-13 18:40:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 75,776 KB
最終ジャッジ日時 2024-11-16 08:34:11
合計ジャッジ時間 2,208 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
e = list(map(int,input().split()))
for i in range(3**n):
	c = [0]*3
	for j in range(n):
		c[i%3] += e[j]
		i //= 3
	if c[0]==c[1]==c[2]:
		print('Yes')
		break
else:
	print('No')
0