結果

問題 No.1594 Three Classes
ユーザー pluto77pluto77
提出日時 2022-02-11 10:55:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 190 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 8,140 KB
最終ジャッジ日時 2023-09-09 11:46:30
合計ジャッジ時間 20,786 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 WA -
testcase_02 AC 15 ms
8,120 KB
testcase_03 AC 53 ms
8,116 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 51 ms
8,140 KB
testcase_07 AC 95 ms
8,120 KB
testcase_08 TLE -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 15 ms
8,092 KB
testcase_14 AC 406 ms
8,088 KB
testcase_15 AC 241 ms
8,080 KB
testcase_16 AC 130 ms
8,100 KB
testcase_17 AC 86 ms
8,132 KB
testcase_18 AC 15 ms
8,072 KB
testcase_19 WA -
testcase_20 AC 26 ms
8,116 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