結果

問題 No.627 ランダムウォークの軌跡
ユーザー otsunekootsuneko
提出日時 2021-05-07 17:22:59
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 1,448 ms
コンパイル使用メモリ 86,600 KB
実行使用メモリ 71,512 KB
最終ジャッジ日時 2023-10-13 08:36:45
合計ジャッジ時間 5,240 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
70,936 KB
testcase_01 AC 64 ms
71,112 KB
testcase_02 AC 64 ms
71,236 KB
testcase_03 AC 66 ms
70,940 KB
testcase_04 AC 67 ms
71,056 KB
testcase_05 AC 68 ms
71,192 KB
testcase_06 AC 65 ms
70,944 KB
testcase_07 AC 66 ms
71,016 KB
testcase_08 AC 65 ms
71,424 KB
testcase_09 AC 67 ms
71,336 KB
testcase_10 AC 63 ms
71,204 KB
testcase_11 AC 63 ms
71,396 KB
testcase_12 AC 64 ms
71,512 KB
testcase_13 AC 64 ms
71,144 KB
testcase_14 AC 63 ms
71,092 KB
testcase_15 AC 66 ms
71,196 KB
testcase_16 AC 69 ms
71,016 KB
testcase_17 AC 70 ms
71,040 KB
testcase_18 AC 69 ms
71,068 KB
testcase_19 AC 66 ms
71,064 KB
testcase_20 AC 66 ms
71,140 KB
testcase_21 AC 70 ms
70,944 KB
testcase_22 AC 68 ms
71,148 KB
testcase_23 AC 67 ms
71,232 KB
testcase_24 AC 67 ms
71,012 KB
testcase_25 AC 66 ms
71,176 KB
testcase_26 AC 67 ms
71,048 KB
testcase_27 AC 64 ms
71,196 KB
testcase_28 AC 67 ms
71,176 KB
testcase_29 AC 64 ms
71,220 KB
testcase_30 AC 63 ms
71,292 KB
testcase_31 AC 65 ms
71,424 KB
testcase_32 AC 64 ms
71,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
X = [int(input()) for _ in range(T)]
prev = 0
for x in X:
    if x+1 != prev and x-1 != prev:
        print("F")
        break
    else:
        prev = x
else:
    print("T")
0