結果
問題 | No.2218 Multiple LIS |
ユーザー | Kude |
提出日時 | 2023-02-17 21:31:57 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 180 bytes |
コンパイル時間 | 386 ms |
コンパイル使用メモリ | 86,856 KB |
実行使用メモリ | 94,788 KB |
最終ジャッジ日時 | 2023-09-26 18:41:05 |
合計ジャッジ時間 | 9,285 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 85 ms
76,840 KB |
testcase_01 | AC | 81 ms
76,512 KB |
testcase_02 | AC | 86 ms
76,428 KB |
testcase_03 | AC | 80 ms
76,448 KB |
testcase_04 | AC | 81 ms
76,556 KB |
testcase_05 | AC | 80 ms
76,680 KB |
testcase_06 | AC | 81 ms
76,716 KB |
testcase_07 | AC | 82 ms
76,432 KB |
testcase_08 | AC | 80 ms
76,608 KB |
testcase_09 | AC | 84 ms
76,632 KB |
testcase_10 | AC | 79 ms
76,352 KB |
testcase_11 | AC | 81 ms
76,716 KB |
testcase_12 | AC | 98 ms
77,128 KB |
testcase_13 | AC | 120 ms
77,216 KB |
testcase_14 | AC | 109 ms
77,296 KB |
testcase_15 | AC | 111 ms
77,192 KB |
testcase_16 | AC | 89 ms
77,140 KB |
testcase_17 | AC | 119 ms
77,100 KB |
testcase_18 | AC | 82 ms
76,696 KB |
testcase_19 | AC | 96 ms
77,044 KB |
testcase_20 | AC | 117 ms
77,112 KB |
testcase_21 | AC | 88 ms
77,296 KB |
testcase_22 | AC | 105 ms
81,708 KB |
testcase_23 | AC | 118 ms
85,352 KB |
testcase_24 | AC | 94 ms
77,960 KB |
testcase_25 | AC | 123 ms
86,228 KB |
testcase_26 | AC | 137 ms
91,516 KB |
testcase_27 | AC | 145 ms
91,368 KB |
testcase_28 | AC | 142 ms
91,368 KB |
testcase_29 | AC | 139 ms
91,356 KB |
testcase_30 | AC | 142 ms
91,136 KB |
testcase_31 | TLE | - |
testcase_32 | -- | - |
testcase_33 | -- | - |
testcase_34 | -- | - |
testcase_35 | -- | - |
testcase_36 | -- | - |
testcase_37 | -- | - |
testcase_38 | -- | - |
testcase_39 | -- | - |
testcase_40 | -- | - |
testcase_41 | -- | - |
ソースコード
n = int(input()) M = 10 ** 5 + 1 d = [0] * M a = list(map(int, input().split())) for x in reversed(a): d[x] = max((d[b] for b in range(x, M, x)), default = 0) + 1 print(max(d))