結果
問題 |
No.547 未知の言語
|
ユーザー |
|
提出日時 | 2017-08-11 19:55:39 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 94 ms / 2,000 ms |
コード長 | 449 bytes |
コンパイル時間 | 14,783 ms |
コンパイル使用メモリ | 184,120 KB |
実行使用メモリ | 32,512 KB |
最終ジャッジ日時 | 2024-06-26 02:32:58 |
合計ジャッジ時間 | 12,896 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (315 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 N = Console.ReadLine() let S = Console.ReadLine().Split(' ') |> Array.toList let T = Console.ReadLine().Split(' ') |> Array.toList let A = List.zip S T let B = A |> List.indexed |> List.filter (fun (x, (y, z)) -> y <> z) |> List.map (fun (x, y) -> (x + 1, y)) |> List.head B |> fun (x, (y, z)) -> printfn "%A" x printfn "%s" y printfn "%s" z