結果
問題 | No.1222 -101 |
ユーザー | anagohirame |
提出日時 | 2020-07-18 02:21:39 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 381 bytes |
コンパイル時間 | 256 ms |
コンパイル使用メモリ | 82,220 KB |
実行使用メモリ | 95,844 KB |
最終ジャッジ日時 | 2024-04-23 06:51:21 |
合計ジャッジ時間 | 4,156 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 32 ms
52,568 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 33 ms
53,256 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | AC | 32 ms
52,252 KB |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 32 ms
52,440 KB |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | AC | 32 ms
52,320 KB |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | WA | - |
ソースコード
import sys def input(): return sys.stdin.buffer.readline()[:-1] n, m = map(int, input().split()) if not (1 <= n <= 200000): raise ValueError rs = set() for _ in range(m): l, r, p = map(int, input().split()) if l > r: raise ValueError if not (1 <= l <= n) or not (1 <= r <= n) or not (-1 <= p <= 1): raise ValueError rs.add(r) if len(rs) != m: raise ValueError print(0)