結果
問題 | No.547 未知の言語 |
ユーザー | guricerin |
提出日時 | 2020-01-07 12:54:23 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 94 ms / 2,000 ms |
コード長 | 998 bytes |
コンパイル時間 | 4,544 ms |
コンパイル使用メモリ | 168,680 KB |
実行使用メモリ | 27,324 KB |
最終ジャッジ日時 | 2023-08-14 23:16:08 |
合計ジャッジ時間 | 8,152 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 91 ms
27,324 KB |
testcase_01 | AC | 91 ms
23,160 KB |
testcase_02 | AC | 90 ms
23,152 KB |
testcase_03 | AC | 91 ms
23,168 KB |
testcase_04 | AC | 91 ms
23,216 KB |
testcase_05 | AC | 91 ms
25,272 KB |
testcase_06 | AC | 90 ms
23,096 KB |
testcase_07 | AC | 90 ms
23,300 KB |
testcase_08 | AC | 90 ms
21,172 KB |
testcase_09 | AC | 91 ms
25,196 KB |
testcase_10 | AC | 92 ms
23,284 KB |
testcase_11 | AC | 91 ms
23,308 KB |
testcase_12 | AC | 90 ms
23,244 KB |
testcase_13 | AC | 91 ms
23,216 KB |
testcase_14 | AC | 90 ms
25,284 KB |
testcase_15 | AC | 89 ms
23,164 KB |
testcase_16 | AC | 90 ms
23,188 KB |
testcase_17 | AC | 89 ms
23,208 KB |
testcase_18 | AC | 89 ms
23,208 KB |
testcase_19 | AC | 91 ms
23,124 KB |
testcase_20 | AC | 94 ms
23,252 KB |
testcase_21 | AC | 90 ms
23,252 KB |
testcase_22 | AC | 90 ms
23,232 KB |
testcase_23 | AC | 89 ms
23,196 KB |
testcase_24 | AC | 89 ms
23,264 KB |
testcase_25 | AC | 89 ms
21,200 KB |
testcase_26 | AC | 91 ms
25,336 KB |
testcase_27 | AC | 92 ms
23,236 KB |
testcase_28 | AC | 90 ms
23,200 KB |
testcase_29 | AC | 90 ms
23,152 KB |
testcase_30 | AC | 91 ms
21,192 KB |
testcase_31 | AC | 91 ms
25,228 KB |
testcase_32 | AC | 91 ms
23,252 KB |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved.
ソースコード
open System open System.Collections.Generic [<AutoOpen>] module Cin = let read f = stdin.ReadLine() |> f let reada f = stdin.ReadLine().Split() |> Array.map f let readChars() = read string |> Seq.toArray let readInts() = readChars() |> Array.map (fun x -> Convert.ToInt32(x.ToString())) [<AutoOpen>] module Cout = let writer = new IO.StreamWriter(new IO.BufferedStream(Console.OpenStandardOutput())) let print (s: string) = writer.Write s let println (s: string) = writer.WriteLine s let inline puts (s: ^a) = string s |> println let solve() = let n = read int let s = reada string let t = reada string seq { for i in 0 .. n - 1 do if s.[i] <> t.[i] then yield (i + 1, s.[i], t.[i]) } |> Seq.head |> fun (i, a, b) -> sprintf "%d\n%s\n%s" i a b |> puts [<EntryPoint>] let main _ = try solve() with e -> printfn "%s" (e.ToString()) writer.Close() 0 // return an integer exit code