結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
|
提出日時 | 2022-02-14 15:50:35 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 2,000 ms |
コード長 | 216 bytes |
コンパイル時間 | 172 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-06-29 06:50:34 |
合計ジャッジ時間 | 2,687 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
ソースコード
n = int(input()) array = [0]+[int(input()) for i in range(n)] array_diff = [array[i+1]-array[i] for i in range(0,len(array)-1)] print("T") if len(list(filter(lambda x: x not in [-1,1],array_diff)))==0 else print("F")