結果

問題 No.1594 Three Classes
ユーザー pluto77pluto77
提出日時 2022-02-11 10:58:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 190 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-28 00:47:52
合計ジャッジ時間 21,187 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 AC 29 ms
10,496 KB
testcase_02 AC 29 ms
10,496 KB
testcase_03 AC 66 ms
10,496 KB
testcase_04 TLE -
testcase_05 TLE -
testcase_06 AC 66 ms
10,752 KB
testcase_07 AC 113 ms
10,496 KB
testcase_08 TLE -
testcase_09 TLE -
testcase_10 TLE -
testcase_11 TLE -
testcase_12 TLE -
testcase_13 AC 29 ms
10,496 KB
testcase_14 AC 443 ms
10,752 KB
testcase_15 AC 261 ms
10,624 KB
testcase_16 AC 146 ms
10,624 KB
testcase_17 AC 107 ms
10,752 KB
testcase_18 AC 30 ms
10,496 KB
testcase_19 AC 34 ms
10,496 KB
testcase_20 AC 42 ms
10,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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