結果

問題 No.627 ランダムウォークの軌跡
コンテスト
ユーザー momotaros300
提出日時 2019-08-26 22:30:53
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 33 ms / 2,000 ms
+ 290µs
コード長 261 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 83 ms
コンパイル使用メモリ 64,924 KB
実行使用メモリ 53,840 KB
最終ジャッジ日時 2026-10-15 01:28:55
合計ジャッジ時間 3,012 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 34
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = lambda: sys.stdin.readline()[:-1]
flag=1
t=int(input())
pre=int(input())
if pre!=-1 and pre!=1:flag=0
for i in range(t-1):
	now=int(input())
	if now==pre+1 or now==pre-1:
		pass
	else:
		flag=0
		break

	pre=now
print('T' if flag else 'F')


0