結果

問題 No.547 未知の言語
ユーザー ctyl_0ctyl_0
提出日時 2017-08-11 19:55:39
言語 F#
(F# 4.0)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 449 bytes
コンパイル時間 4,633 ms
コンパイル使用メモリ 164,664 KB
実行使用メモリ 26,200 KB
最終ジャッジ日時 2023-09-08 09:28:53
合計ジャッジ時間 9,626 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
25,980 KB
testcase_01 AC 109 ms
23,900 KB
testcase_02 AC 108 ms
23,880 KB
testcase_03 AC 110 ms
23,896 KB
testcase_04 AC 109 ms
23,988 KB
testcase_05 AC 109 ms
23,960 KB
testcase_06 AC 108 ms
26,000 KB
testcase_07 AC 108 ms
24,012 KB
testcase_08 AC 109 ms
24,096 KB
testcase_09 AC 109 ms
23,916 KB
testcase_10 AC 109 ms
25,948 KB
testcase_11 AC 109 ms
26,120 KB
testcase_12 AC 111 ms
24,020 KB
testcase_13 AC 109 ms
23,924 KB
testcase_14 AC 114 ms
23,912 KB
testcase_15 AC 110 ms
26,144 KB
testcase_16 AC 111 ms
26,112 KB
testcase_17 AC 112 ms
23,924 KB
testcase_18 AC 111 ms
23,960 KB
testcase_19 AC 110 ms
23,944 KB
testcase_20 AC 112 ms
24,040 KB
testcase_21 AC 112 ms
24,064 KB
testcase_22 AC 112 ms
26,048 KB
testcase_23 AC 111 ms
23,904 KB
testcase_24 AC 111 ms
24,020 KB
testcase_25 AC 112 ms
24,052 KB
testcase_26 AC 111 ms
24,020 KB
testcase_27 AC 112 ms
26,200 KB
testcase_28 AC 110 ms
24,012 KB
testcase_29 AC 111 ms
23,932 KB
testcase_30 AC 112 ms
26,076 KB
testcase_31 AC 110 ms
24,036 KB
testcase_32 AC 111 ms
26,032 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 N = Console.ReadLine()
let S = Console.ReadLine().Split(' ') |> Array.toList
let T = Console.ReadLine().Split(' ') |> Array.toList

let A = List.zip S T
let B = A |> List.indexed
          |> List.filter (fun (x, (y, z)) -> y <> z)
          |> List.map (fun (x, y) -> (x + 1, y))
          |> List.head

B |> fun (x, (y, z)) -> printfn "%A" x
                        printfn "%s" y
                        printfn "%s" z          
0