結果
| 問題 |
No.547 未知の言語
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-11 19:52:52 |
| 言語 | F# (F# 4.0) |
| 結果 |
AC
|
| 実行時間 | 103 ms / 2,000 ms |
| コード長 | 418 bytes |
| コンパイル時間 | 15,109 ms |
| コンパイル使用メモリ | 184,056 KB |
| 実行使用メモリ | 32,504 KB |
| 最終ジャッジ日時 | 2024-06-26 02:33:25 |
| 合計ジャッジ時間 | 12,150 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (482 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, z)) -> (x + 1, (y, z)))
|> List.head
B |> fun (x, (y, z)) -> printfn("%A") x; printfn("%s") y; printfn("%s") z;