結果

問題 No.730 アルファベットパネル
ユーザー taktak
提出日時 2019-02-12 21:19:57
言語 F#
(F# 4.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 3,156 ms
コンパイル使用メモリ 151,800 KB
実行使用メモリ 24,164 KB
最終ジャッジ日時 2023-10-11 11:01:48
合計ジャッジ時間 4,674 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
22,192 KB
testcase_01 AC 58 ms
24,116 KB
testcase_02 AC 59 ms
22,100 KB
testcase_03 AC 58 ms
22,004 KB
testcase_04 AC 58 ms
19,952 KB
testcase_05 AC 59 ms
22,020 KB
testcase_06 AC 59 ms
22,160 KB
testcase_07 AC 59 ms
22,088 KB
testcase_08 AC 58 ms
24,080 KB
testcase_09 AC 59 ms
24,164 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let solve (msg: string) =
  msg.ToCharArray()
  |> Array.countBy id
  |> Array.forall(fun (_, x) -> x = 1)
  |> function | true -> "YES" | _ -> "NO"

let S = stdin.ReadLine()

solve S
|> stdout.WriteLine
0