結果

問題 No.627 ランダムウォークの軌跡
ユーザー momotaros300
提出日時 2019-08-26 15:23:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 249 bytes
コンパイル時間 776 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-11-07 18:59:18
合計ジャッジ時間 2,436 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 32 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline()[:-1]
flag=1
t=int(input())
pre=int(input())
if pre==0: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