結果
問題 | No.1557 Binary Variable |
ユーザー |
![]() |
提出日時 | 2021-06-25 21:38:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 706 ms / 2,000 ms |
コード長 | 307 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 53,028 KB |
最終ジャッジ日時 | 2024-06-25 08:16:54 |
合計ジャッジ時間 | 23,414 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 |
ソースコード
from sys import stdinreadline = stdin.readlineN, M = map(int, readline().split())LR = [list(map(int, readline().split())) for _ in range(M)]LR.sort(key=lambda x: x[1])result = Nt = -1for i in range(M):L, R = LR[i]if L <= t <= R:continueresult -= 1t = Rprint(result)