結果
問題 | No.1868 Teleporting Cyanmond |
ユーザー | Theta |
提出日時 | 2022-10-26 16:57:26 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 370 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 10,636 KB |
実行使用メモリ | 24,164 KB |
最終ジャッジ日時 | 2023-09-17 10:14:56 |
合計ジャッジ時間 | 9,752 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
12,124 KB |
testcase_01 | AC | 16 ms
7,784 KB |
testcase_02 | AC | 15 ms
7,812 KB |
testcase_03 | AC | 40 ms
17,196 KB |
testcase_04 | AC | 38 ms
15,472 KB |
testcase_05 | AC | 17 ms
8,568 KB |
testcase_06 | AC | 20 ms
9,548 KB |
testcase_07 | AC | 28 ms
12,684 KB |
testcase_08 | AC | 23 ms
10,944 KB |
testcase_09 | AC | 27 ms
12,208 KB |
testcase_10 | AC | 38 ms
16,344 KB |
testcase_11 | AC | 16 ms
8,368 KB |
testcase_12 | AC | 22 ms
10,372 KB |
testcase_13 | AC | 502 ms
13,156 KB |
testcase_14 | TLE | - |
testcase_15 | AC | 904 ms
14,944 KB |
testcase_16 | AC | 43 ms
9,120 KB |
testcase_17 | AC | 104 ms
10,264 KB |
testcase_18 | TLE | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
ソースコード
def main(): N = int(input()) R = list(map(int, input().split())) destination = N ctr = 1 while True: for idx, r in enumerate(R, 1): if r >= destination: destination = idx break if destination == 1: break ctr += 1 print(ctr) if __name__ == "__main__": main()