結果

問題 No.547 未知の言語
ユーザー tak
提出日時 2018-03-29 00:00:59
言語 F#
(F# 4.0)
結果
AC  
実行時間 342 ms / 2,000 ms
コード長 385 bytes
コンパイル時間 15,523 ms
コンパイル使用メモリ 190,300 KB
実行使用メモリ 34,644 KB
最終ジャッジ日時 2024-06-26 03:23:21
合計ジャッジ時間 28,181 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (363 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/

ソースコード

diff #

open System

let read() = Console.ReadLine()

let N = read() |> ignore
let S = read().Split()
let T = read().Split()

(S,T)
||> Array.zip
|> Array.indexed
|> Array.find(fun x -> let l,r = snd x in l <> r)
|> (fun x ->
        let idx = (fst x) + 1
        let S   = (snd x) |> fst
        let T   = (snd x) |> snd
        printfn "%i" idx
        printfn "%s" S
        printfn "%s" T)
0