結果
問題 | No.1557 Binary Variable |
ユーザー |
|
提出日時 | 2021-12-26 10:54:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 1,004 ms / 2,000 ms |
コード長 | 265 bytes |
コンパイル時間 | 383 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 38,396 KB |
最終ジャッジ日時 | 2024-09-22 18:00:45 |
合計ジャッジ時間 | 35,262 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 |
ソースコード
N,M = map(int,input().split())dat = [0] * Mfor _ in range(M):l,r = map(int,input().split())dat[_] = (r,l)dat.sort(reverse = True)count = 0now = 0while len(dat):r,l = dat.pop()if l > now:count += 1now = rprint(N - count)