結果
| 問題 | No.547 未知の言語 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-11 19:55:39 |
| 言語 | F# (F# 10.0) |
| 結果 |
AC
|
| 実行時間 | 66 ms / 2,000 ms |
| コード長 | 449 bytes |
| 記録 | |
| コンパイル時間 | 11,629 ms |
| コンパイル使用メモリ | 194,936 KB |
| 実行使用メモリ | 33,988 KB |
| 最終ジャッジ日時 | 2026-03-12 15:55:48 |
| 合計ジャッジ時間 | 14,191 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (184 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.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