結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
|
提出日時 | 2018-02-12 13:40:21 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 326 bytes |
コンパイル時間 | 268 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-24 06:26:01 |
合計ジャッジ時間 | 2,193 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 33 |
ソースコード
import sys list = int(input()) del list[0] flag = "T" if list[0] == 1 or list[0] == -1: for i in range(len(list) - 1): if list[i] + 1 == list[i + 1] or list[i] - 1 == list[i + 1]: flag = "T" else: flag = "F" break print(flag) else: flag = "F" print(flag)