結果
| 問題 | No.627 ランダムウォークの軌跡 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-01-15 16:14:38 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 534 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-06 23:04:43 |
| 合計ジャッジ時間 | 2,356 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 WA * 2 |
ソースコード
input_count = int(input())
current_place = 0
before_place = 0
answer = True
for i in range(0, input_count):
input_number = int(input())
if answer == False:
continue
if i == 0:
before_place = input_number
continue
else:
current_place = input_number
if current_place == before_place + 1 or current_place == before_place - 1:
answer = True
else:
answer = False
continue
before_place = current_place
if answer:
print("T")
else:
print("F")