結果

問題 No.627 ランダムウォークの軌跡
ユーザー Ohnuma
提出日時 2020-04-09 11:05:02
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-22 06:40:40
合計ジャッジ時間 1,980 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
x = 0
flg = True
for _ in range(t):
    nx = int(input())
    if abs(nx-x)!=1:
        flg = False
        break
    else:
        x = nx
print('T' if flg else 'F')
0