結果

問題 No.69 文字を自由に並び替え
ユーザー hum_ophum_op
提出日時 2016-04-17 19:17:07
言語 F#
(F# 4.0)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 375 bytes
コンパイル時間 3,197 ms
コンパイル使用メモリ 166,804 KB
実行使用メモリ 24,676 KB
最終ジャッジ日時 2023-08-20 23:18:33
合計ジャッジ時間 5,033 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
22,576 KB
testcase_01 AC 68 ms
24,460 KB
testcase_02 AC 71 ms
22,632 KB
testcase_03 AC 70 ms
20,512 KB
testcase_04 AC 70 ms
22,496 KB
testcase_05 AC 71 ms
24,676 KB
testcase_06 AC 70 ms
24,520 KB
testcase_07 AC 70 ms
22,540 KB
testcase_08 AC 70 ms
22,436 KB
testcase_09 AC 70 ms
24,672 KB
testcase_10 AC 70 ms
22,472 KB
testcase_11 AC 70 ms
22,544 KB
testcase_12 AC 70 ms
24,472 KB
testcase_13 AC 70 ms
22,624 KB
testcase_14 AC 70 ms
22,688 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 No69 () =
    let A = [ 
        let IN = Console.ReadLine() 
        for i in 0..IN.Length-1 -> IN.[i]
        ]
    let A = List.sort <| A
    let B = [
        let IN = Console.ReadLine()
        for i in 0..IN.Length-1 -> IN.[i]
        ]
    let B = List.sort <| B

    if A = B then
        printfn "YES"
    else
        printfn "NO"

    ()
 
No69 ()
0