結果

問題 No.547 未知の言語
ユーザー ctyl_0ctyl_0
提出日時 2017-08-11 19:52:52
言語 F#
(F# 4.0)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 418 bytes
コンパイル時間 4,498 ms
コンパイル使用メモリ 160,580 KB
実行使用メモリ 26,116 KB
最終ジャッジ日時 2023-09-08 09:29:11
合計ジャッジ時間 8,126 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
21,916 KB
testcase_01 AC 110 ms
23,860 KB
testcase_02 AC 109 ms
24,008 KB
testcase_03 AC 112 ms
24,072 KB
testcase_04 AC 115 ms
26,108 KB
testcase_05 AC 115 ms
26,116 KB
testcase_06 AC 110 ms
25,936 KB
testcase_07 AC 112 ms
25,980 KB
testcase_08 AC 109 ms
21,844 KB
testcase_09 AC 110 ms
25,980 KB
testcase_10 AC 112 ms
26,012 KB
testcase_11 AC 115 ms
24,012 KB
testcase_12 AC 113 ms
25,984 KB
testcase_13 AC 110 ms
23,852 KB
testcase_14 AC 111 ms
23,928 KB
testcase_15 AC 111 ms
23,816 KB
testcase_16 AC 110 ms
23,828 KB
testcase_17 AC 115 ms
26,088 KB
testcase_18 AC 115 ms
23,920 KB
testcase_19 AC 110 ms
23,912 KB
testcase_20 AC 115 ms
23,884 KB
testcase_21 AC 112 ms
25,952 KB
testcase_22 AC 110 ms
23,960 KB
testcase_23 AC 110 ms
25,984 KB
testcase_24 AC 111 ms
24,000 KB
testcase_25 AC 111 ms
25,928 KB
testcase_26 AC 111 ms
23,896 KB
testcase_27 AC 111 ms
26,044 KB
testcase_28 AC 108 ms
23,932 KB
testcase_29 AC 110 ms
21,928 KB
testcase_30 AC 112 ms
25,932 KB
testcase_31 AC 111 ms
23,876 KB
testcase_32 AC 113 ms
24,044 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, z)) -> (x + 1, (y, z)))
          |> List.head

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