結果

問題 No.547 未知の言語
コンテスト
ユーザー tak
提出日時 2018-03-29 00:00:59
言語 F#
(F# 10.0)
コンパイル:
fsharp_c _filename_
実行:
/usr/bin/dotnet_wrap
結果
AC  
実行時間 209 ms / 2,000 ms
コード長 385 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6,834 ms
コンパイル使用メモリ 206,612 KB
実行使用メモリ 36,904 KB
最終ジャッジ日時 2026-03-12 16:44:57
合計ジャッジ時間 14,732 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (191 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net10.0/main.dll
  main -> /home/judge/data/code/bin/Release/net10.0/publish/

ソースコード

diff #
raw source code

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