結果

問題 No.547 未知の言語
ユーザー taktak
提出日時 2018-03-29 00:00:59
言語 F#
(F# 4.0)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 385 bytes
コンパイル時間 3,821 ms
コンパイル使用メモリ 157,852 KB
実行使用メモリ 27,140 KB
最終ジャッジ日時 2023-09-08 10:04:02
合計ジャッジ時間 7,075 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
25,072 KB
testcase_01 AC 81 ms
27,140 KB
testcase_02 AC 79 ms
22,864 KB
testcase_03 AC 80 ms
20,908 KB
testcase_04 AC 81 ms
24,928 KB
testcase_05 AC 80 ms
22,864 KB
testcase_06 AC 79 ms
23,104 KB
testcase_07 AC 80 ms
23,108 KB
testcase_08 AC 79 ms
22,784 KB
testcase_09 AC 81 ms
22,872 KB
testcase_10 AC 80 ms
20,920 KB
testcase_11 AC 81 ms
22,992 KB
testcase_12 AC 80 ms
22,940 KB
testcase_13 AC 82 ms
24,980 KB
testcase_14 AC 81 ms
25,004 KB
testcase_15 AC 81 ms
22,796 KB
testcase_16 AC 84 ms
23,128 KB
testcase_17 AC 81 ms
23,004 KB
testcase_18 AC 81 ms
22,836 KB
testcase_19 AC 80 ms
22,860 KB
testcase_20 AC 80 ms
23,016 KB
testcase_21 AC 82 ms
21,016 KB
testcase_22 AC 81 ms
25,096 KB
testcase_23 AC 80 ms
23,032 KB
testcase_24 AC 81 ms
23,112 KB
testcase_25 AC 81 ms
22,884 KB
testcase_26 AC 82 ms
22,856 KB
testcase_27 AC 85 ms
23,040 KB
testcase_28 AC 80 ms
22,932 KB
testcase_29 AC 80 ms
22,792 KB
testcase_30 AC 80 ms
22,948 KB
testcase_31 AC 80 ms
23,008 KB
testcase_32 AC 80 ms
23,064 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

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