結果

問題 No.627 ランダムウォークの軌跡
ユーザー nobigomu
提出日時 2018-03-01 23:50:10
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 5,504 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-26 02:53:43
合計ジャッジ時間 1,130 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

local n = io.stdin:read("*n")
local xp, x = 0, 0

repeat
	xp = x
	x = io.stdin:read("*n")
	if math.abs(x - xp) ~= 1 then break end
	n = n - 1
until n == 0

print(n == 0 and "T" or "F")
0