結果

問題 No.547 未知の言語
コンテスト
ユーザー tak
提出日時 2018-03-29 00:00:59
言語 F#
(F# 10.0)
コンパイル:
fsharp_c _filename_
実行:
/usr/bin/dotnet_wrap
結果
AC  
実行時間 207 ms / 2,000 ms
+ 703µs
コード長 385 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6,369 ms
コンパイル使用メモリ 210,856 KB
実行使用メモリ 37,000 KB
最終ジャッジ日時 2026-07-30 06:49:41
合計ジャッジ時間 15,110 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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/

ソースコード

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