結果

問題 No.1868 Teleporting Cyanmond
ユーザー nariyelnariyel
提出日時 2022-03-11 21:57:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 250 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 24,032 KB
最終ジャッジ日時 2023-10-14 07:05:19
合計ジャッジ時間 6,541 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
12,260 KB
testcase_01 AC 16 ms
7,788 KB
testcase_02 AC 16 ms
7,964 KB
testcase_03 AC 40 ms
17,388 KB
testcase_04 AC 35 ms
15,056 KB
testcase_05 AC 17 ms
8,576 KB
testcase_06 AC 20 ms
9,684 KB
testcase_07 AC 28 ms
13,036 KB
testcase_08 AC 23 ms
10,784 KB
testcase_09 AC 28 ms
12,132 KB
testcase_10 AC 40 ms
16,700 KB
testcase_11 AC 16 ms
8,296 KB
testcase_12 AC 22 ms
10,528 KB
testcase_13 AC 280 ms
13,320 KB
testcase_14 AC 1,110 ms
18,736 KB
testcase_15 AC 500 ms
14,852 KB
testcase_16 AC 32 ms
9,320 KB
testcase_17 AC 65 ms
10,224 KB
testcase_18 TLE -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin

N, *R = map(int, stdin.read().split())
i = R[0]
ztm = []
ztm.append(i)
res = 0
while i != N:
    i = max(R[:i])
    if i in ztm:
        maxindex = rindex(R[:i])
        R[maxindex] = 0
    else:
        res += 1
print(res+1)

0