結果
問題 |
No.26 シャッフルゲーム
|
ユーザー |
![]() |
提出日時 | 2016-04-16 14:49:27 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 433 bytes |
コンパイル時間 | 6,423 ms |
コンパイル使用メモリ | 196,224 KB |
実行使用メモリ | 35,824 KB |
最終ジャッジ日時 | 2024-10-04 10:14:50 |
合計ジャッジ時間 | 10,618 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 4 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (214 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
open System let No26 () = let N = int <| Console.ReadLine() let M = int <| Console.ReadLine() let rec res i n = if i < M then let IN = Console.ReadLine().Split(' ') let P, Q = Int32.Parse IN.[0], Int32.Parse IN.[1] if P = n then res (i + 1) Q else res (i + 1) n else n printfn "%d" <| res 0 N () No26 ()