結果

問題 No.711 競技レーティング単調増加
ユーザー convexineqconvexineq
提出日時 2021-03-18 18:10:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 186 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 688 ms
コンパイル使用メモリ 86,904 KB
実行使用メモリ 112,880 KB
最終ジャッジ日時 2023-08-10 14:51:55
合計ジャッジ時間 8,197 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,300 KB
testcase_01 AC 67 ms
71,352 KB
testcase_02 AC 68 ms
71,120 KB
testcase_03 AC 69 ms
70,864 KB
testcase_04 AC 70 ms
71,004 KB
testcase_05 AC 71 ms
71,152 KB
testcase_06 AC 70 ms
71,240 KB
testcase_07 AC 70 ms
71,008 KB
testcase_08 AC 70 ms
71,124 KB
testcase_09 AC 68 ms
71,152 KB
testcase_10 AC 68 ms
71,136 KB
testcase_11 AC 69 ms
71,272 KB
testcase_12 AC 69 ms
71,292 KB
testcase_13 AC 68 ms
71,204 KB
testcase_14 AC 66 ms
71,040 KB
testcase_15 AC 69 ms
71,036 KB
testcase_16 AC 68 ms
71,284 KB
testcase_17 AC 68 ms
71,308 KB
testcase_18 AC 152 ms
107,160 KB
testcase_19 AC 138 ms
106,492 KB
testcase_20 AC 147 ms
111,244 KB
testcase_21 AC 153 ms
111,468 KB
testcase_22 AC 139 ms
106,968 KB
testcase_23 AC 155 ms
108,976 KB
testcase_24 AC 167 ms
108,772 KB
testcase_25 AC 132 ms
105,088 KB
testcase_26 AC 139 ms
106,656 KB
testcase_27 AC 132 ms
104,860 KB
testcase_28 AC 115 ms
107,920 KB
testcase_29 AC 134 ms
112,880 KB
testcase_30 AC 145 ms
104,744 KB
testcase_31 AC 166 ms
105,028 KB
testcase_32 AC 170 ms
105,512 KB
testcase_33 AC 184 ms
104,876 KB
testcase_34 AC 172 ms
107,176 KB
testcase_35 AC 186 ms
107,072 KB
testcase_36 AC 109 ms
110,268 KB
testcase_37 AC 155 ms
108,604 KB
testcase_38 AC 149 ms
111,104 KB
testcase_39 AC 105 ms
93,592 KB
testcase_40 AC 129 ms
98,472 KB
testcase_41 AC 68 ms
71,356 KB
testcase_42 AC 128 ms
93,280 KB
testcase_43 AC 144 ms
101,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
*a, = map(int,input().split())
for i in range(n): a[i] -= i
from bisect import bisect_left, bisect_right
INF = 1<<60
dp = [INF]*n
for i in a:
    if i>0: dp[bisect_right(dp,i)] = i
print(n-bisect_left(dp,INF))
0