結果

問題 No.1594 Three Classes
ユーザー reatoretchreatoretch
提出日時 2021-07-09 22:20:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 340 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 77,272 KB
最終ジャッジ日時 2023-08-10 06:52:47
合計ジャッジ時間 5,385 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 340 ms
77,136 KB
testcase_01 AC 71 ms
71,496 KB
testcase_02 AC 72 ms
71,364 KB
testcase_03 AC 85 ms
76,760 KB
testcase_04 AC 336 ms
77,200 KB
testcase_05 AC 333 ms
76,848 KB
testcase_06 AC 84 ms
76,508 KB
testcase_07 AC 92 ms
77,212 KB
testcase_08 AC 333 ms
77,108 KB
testcase_09 AC 332 ms
77,080 KB
testcase_10 AC 333 ms
76,776 KB
testcase_11 AC 333 ms
76,776 KB
testcase_12 AC 334 ms
77,272 KB
testcase_13 AC 70 ms
71,132 KB
testcase_14 AC 133 ms
77,060 KB
testcase_15 AC 111 ms
76,932 KB
testcase_16 AC 96 ms
77,152 KB
testcase_17 AC 91 ms
77,064 KB
testcase_18 AC 71 ms
71,256 KB
testcase_19 AC 79 ms
76,620 KB
testcase_20 AC 81 ms
76,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
E=list(map(int,input().split()))
for i in range(3**N):
  S=[0,0,0]
  for j in range(N):
    bit=(i//3**j)%3
    S[bit]+=E[j]
  if all(item==S[0]for item in S):
    print("Yes");exit()
print("No")
0