結果

問題 No.69 文字を自由に並び替え
ユーザー regeregeregerege
提出日時 2016-03-26 20:53:23
言語 F#
(F# 4.0)
結果
AC  
実行時間 87 ms / 5,000 ms
コード長 219 bytes
コンパイル時間 4,071 ms
コンパイル使用メモリ 153,148 KB
実行使用メモリ 25,108 KB
最終ジャッジ日時 2023-08-20 23:16:33
合計ジャッジ時間 6,254 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
24,992 KB
testcase_01 AC 80 ms
22,892 KB
testcase_02 AC 84 ms
22,960 KB
testcase_03 AC 86 ms
22,984 KB
testcase_04 AC 85 ms
23,120 KB
testcase_05 AC 85 ms
23,060 KB
testcase_06 AC 84 ms
23,008 KB
testcase_07 AC 87 ms
25,108 KB
testcase_08 AC 85 ms
23,116 KB
testcase_09 AC 83 ms
23,124 KB
testcase_10 AC 84 ms
23,084 KB
testcase_11 AC 85 ms
23,200 KB
testcase_12 AC 84 ms
23,020 KB
testcase_13 AC 82 ms
23,012 KB
testcase_14 AC 83 ms
23,028 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let f (a:string) (b:string) =
    Seq.zip (a |> Seq.sort) (b |> Seq.sort)
    |> Seq.forall (fun (a,b) -> a = b)
    |> function | true -> "YES" | false -> "NO"
f <| stdin.ReadLine() <| stdin.ReadLine() |> printfn "%s"
0