結果

問題 No.1594 Three Classes
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-02-06 16:52:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,499 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-28 00:47:09
合計ジャッジ時間 14,776 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,393 ms
10,752 KB
testcase_01 AC 26 ms
10,752 KB
testcase_02 AC 26 ms
10,752 KB
testcase_03 AC 93 ms
10,880 KB
testcase_04 AC 1,477 ms
10,752 KB
testcase_05 AC 1,372 ms
10,752 KB
testcase_06 AC 26 ms
10,752 KB
testcase_07 AC 51 ms
10,880 KB
testcase_08 AC 1,499 ms
10,752 KB
testcase_09 AC 1,437 ms
10,752 KB
testcase_10 AC 1,389 ms
10,880 KB
testcase_11 AC 1,395 ms
10,880 KB
testcase_12 AC 1,397 ms
10,752 KB
testcase_13 AC 27 ms
10,752 KB
testcase_14 AC 212 ms
10,752 KB
testcase_15 AC 205 ms
10,752 KB
testcase_16 AC 102 ms
10,752 KB
testcase_17 AC 78 ms
10,752 KB
testcase_18 AC 24 ms
10,880 KB
testcase_19 AC 28 ms
10,752 KB
testcase_20 AC 33 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
E = list(map(int,input().split()))
from itertools import product

for p in product([0,1,2],repeat = N):
    A = [0]*3
    for i in range(N):
        A[p[i]] += E[i]
        
    if A[0] == A[1] and A[1] == A[2]:
        print('Yes')
        exit()
print('No')
0