結果

問題 No.627 ランダムウォークの軌跡
ユーザー takey
提出日時 2018-03-10 00:47:34
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 346 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-11 00:07:22
合計ジャッジ時間 2,382 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#-*- coding:utf-8 -*-

if __name__ == "__main__":
    x = 0
    T = int(input())
    for i in range(T):
        next_x = int(input())
        if next_x == x+1:
            x = next_x
            continue
        elif next_x == x-1:
            x = next_x
            continue
        else:
            print("F")
            exit()
    print("T")
0