結果
問題 | No.1594 Three Classes |
ユーザー | c-yan |
提出日時 | 2021-07-09 21:44:04 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 290 bytes |
コンパイル時間 | 215 ms |
コンパイル使用メモリ | 10,608 KB |
実行使用メモリ | 8,300 KB |
最終ジャッジ日時 | 2023-09-14 08:19:19 |
合計ジャッジ時間 | 24,966 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1,443 ms
8,252 KB |
testcase_01 | AC | 16 ms
8,080 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 1,544 ms
8,240 KB |
testcase_05 | AC | 1,576 ms
8,096 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 1,648 ms
8,244 KB |
testcase_09 | AC | 1,654 ms
8,148 KB |
testcase_10 | AC | 1,588 ms
8,152 KB |
testcase_11 | AC | 1,439 ms
8,056 KB |
testcase_12 | AC | 1,520 ms
8,136 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 20 ms
8,080 KB |
testcase_20 | WA | - |
ソースコード
from itertools import product N, *E = map(int, open(0).read().split()) for p in product([0,1,2], repeat=N): t = [0] * 3 for i in range(N): t[p[i]] += E[i] if t[0] != t[1] or [1] != t[2] or [0] != t[2]: continue print('Yes') break else: print('No')