結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
21,940 KB
testcase_01 AC 58 ms
22,036 KB
testcase_02 AC 59 ms
24,000 KB
testcase_03 AC 58 ms
22,060 KB
testcase_04 AC 59 ms
23,996 KB
testcase_05 AC 58 ms
22,112 KB
testcase_06 AC 59 ms
22,124 KB
testcase_07 AC 58 ms
24,092 KB
testcase_08 AC 57 ms
24,128 KB
testcase_09 AC 57 ms
22,096 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 solve (msg: string) =
  msg.ToCharArray()
  |> Array.countBy id
  |> Array.forall(fun (_, x) -> x = 1)
  |> function | true -> "YES" | _ -> "NO"

let S = Console.ReadLine()

solve S
|> Console.WriteLine
0