結果
| 問題 | No.627 ランダムウォークの軌跡 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-10-28 01:07:47 |
| 言語 | Standard ML (MLton 20241230) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 844µs | |
| コード長 | 428 bytes |
| 記録 | |
| コンパイル時間 | 4,884 ms |
| コンパイル使用メモリ | 708,236 KB |
| 実行使用メモリ | 9,876 KB |
| 最終ジャッジ日時 | 2026-10-15 04:02:42 |
| 合計ジャッジ時間 | 6,706 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
fun readInt () =
valOf (TextIO.scanStream (Int.scan StringCvt.DEC) TextIO.stdIn)
fun isPossible _ nil = true
| isPossible old (h::tl) =
if Int.abs (old - h) = 1 then isPossible h tl
else false
val () =
let
val t = readInt ()
val x_s = List.tabulate (t, fn _ => readInt ())
val ans = if isPossible 0 x_s then "T"
else "F"
in
print (ans ^ "\n")
end