結果
問題 | No.1594 Three Classes |
ユーザー | rlangevin |
提出日時 | 2022-08-20 15:35:13 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 119 ms / 2,000 ms |
コード長 | 259 bytes |
コンパイル時間 | 153 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 75,904 KB |
最終ジャッジ日時 | 2024-04-28 00:51:30 |
合計ジャッジ時間 | 2,552 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 112 ms
75,456 KB |
testcase_01 | AC | 40 ms
51,968 KB |
testcase_02 | AC | 40 ms
51,584 KB |
testcase_03 | AC | 50 ms
65,280 KB |
testcase_04 | AC | 117 ms
75,584 KB |
testcase_05 | AC | 107 ms
75,872 KB |
testcase_06 | AC | 47 ms
58,880 KB |
testcase_07 | AC | 50 ms
61,952 KB |
testcase_08 | AC | 119 ms
75,440 KB |
testcase_09 | AC | 107 ms
75,420 KB |
testcase_10 | AC | 114 ms
75,904 KB |
testcase_11 | AC | 108 ms
75,704 KB |
testcase_12 | AC | 113 ms
75,520 KB |
testcase_13 | AC | 39 ms
52,604 KB |
testcase_14 | AC | 58 ms
75,628 KB |
testcase_15 | AC | 59 ms
75,752 KB |
testcase_16 | AC | 49 ms
66,480 KB |
testcase_17 | AC | 46 ms
64,988 KB |
testcase_18 | AC | 39 ms
52,500 KB |
testcase_19 | AC | 44 ms
60,444 KB |
testcase_20 | AC | 44 ms
61,120 KB |
ソースコード
from itertools import * N = int(input()) E = list(map(int, input().split())) for tup in product(range(3), repeat=N): S = [0] * 3 for i in range(N): S[tup[i]] += E[i] if S[0] == S[1] == S[2]: print("Yes") exit() print("No")