結果

問題 No.1995 CHIKA Road
ユーザー KeroruKeroru
提出日時 2022-07-01 21:57:31
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 289 ms / 2,000 ms
コード長 151 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 90,972 KB
最終ジャッジ日時 2023-08-17 09:31:10
合計ジャッジ時間 9,243 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,304 KB
testcase_01 AC 72 ms
71,460 KB
testcase_02 AC 73 ms
71,476 KB
testcase_03 AC 73 ms
71,476 KB
testcase_04 AC 72 ms
71,356 KB
testcase_05 AC 76 ms
71,564 KB
testcase_06 AC 115 ms
77,944 KB
testcase_07 AC 147 ms
80,060 KB
testcase_08 AC 77 ms
71,360 KB
testcase_09 AC 76 ms
71,384 KB
testcase_10 AC 256 ms
88,908 KB
testcase_11 AC 282 ms
88,408 KB
testcase_12 AC 192 ms
88,052 KB
testcase_13 AC 158 ms
80,352 KB
testcase_14 AC 158 ms
80,032 KB
testcase_15 AC 265 ms
87,844 KB
testcase_16 AC 123 ms
78,096 KB
testcase_17 AC 207 ms
84,348 KB
testcase_18 AC 280 ms
88,900 KB
testcase_19 AC 283 ms
88,816 KB
testcase_20 AC 199 ms
82,416 KB
testcase_21 AC 191 ms
82,188 KB
testcase_22 AC 274 ms
89,028 KB
testcase_23 AC 150 ms
80,152 KB
testcase_24 AC 251 ms
86,680 KB
testcase_25 AC 130 ms
78,152 KB
testcase_26 AC 156 ms
80,140 KB
testcase_27 AC 245 ms
86,564 KB
testcase_28 AC 183 ms
82,216 KB
testcase_29 AC 278 ms
88,844 KB
testcase_30 AC 127 ms
78,048 KB
testcase_31 AC 117 ms
78,036 KB
testcase_32 AC 142 ms
80,712 KB
testcase_33 AC 242 ms
86,764 KB
testcase_34 AC 116 ms
77,900 KB
testcase_35 AC 153 ms
80,228 KB
testcase_36 AC 163 ms
80,288 KB
testcase_37 AC 289 ms
90,972 KB
testcase_38 AC 214 ms
84,480 KB
testcase_39 AC 114 ms
77,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

I=lambda:list(map(int,input().split()))
n,m=I()
q=sorted([I()for i in range(m)],key=lambda x:x[1])
r=0
d=2*n-2
for a,b in q:
 if a>=r:r=b;d-=1
print(d)
0