結果
| 問題 |
No.1868 Teleporting Cyanmond
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-26 16:57:26 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 370 bytes |
| コンパイル時間 | 149 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 27,344 KB |
| 最終ジャッジ日時 | 2024-07-04 06:29:55 |
| 合計ジャッジ時間 | 9,707 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 TLE * 2 -- * 9 |
ソースコード
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()