結果

問題 No.627 ランダムウォークの軌跡
ユーザー momotaros300
提出日時 2019-08-26 22:30:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 81,904 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2024-11-08 09:57:00
合計ジャッジ時間 2,869 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

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