結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー nobigomunobigomu
提出日時 2018-05-31 17:24:10
言語 F#
(F# 4.0)
結果
AC  
実行時間 59 ms / 1,000 ms
コード長 211 bytes
コンパイル時間 3,143 ms
コンパイル使用メモリ 152,164 KB
実行使用メモリ 24,320 KB
最終ジャッジ日時 2023-09-12 20:59:37
合計ジャッジ時間 6,095 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
22,288 KB
testcase_01 AC 57 ms
22,144 KB
testcase_02 AC 58 ms
22,276 KB
testcase_03 AC 56 ms
22,144 KB
testcase_04 AC 57 ms
22,324 KB
testcase_05 AC 57 ms
20,288 KB
testcase_06 AC 57 ms
24,312 KB
testcase_07 AC 57 ms
20,276 KB
testcase_08 AC 57 ms
22,324 KB
testcase_09 AC 57 ms
24,316 KB
testcase_10 AC 58 ms
24,240 KB
testcase_11 AC 57 ms
22,360 KB
testcase_12 AC 57 ms
24,184 KB
testcase_13 AC 57 ms
24,320 KB
testcase_14 AC 57 ms
22,260 KB
testcase_15 AC 57 ms
24,312 KB
testcase_16 AC 57 ms
22,200 KB
testcase_17 AC 56 ms
22,208 KB
testcase_18 AC 57 ms
22,148 KB
testcase_19 AC 59 ms
22,344 KB
testcase_20 AC 57 ms
22,276 KB
testcase_21 AC 57 ms
22,196 KB
testcase_22 AC 58 ms
22,088 KB
testcase_23 AC 59 ms
20,152 KB
testcase_24 AC 57 ms
22,260 KB
testcase_25 AC 56 ms
22,092 KB
testcase_26 AC 58 ms
22,272 KB
testcase_27 AC 58 ms
24,312 KB
testcase_28 AC 57 ms
22,216 KB
testcase_29 AC 57 ms
22,272 KB
testcase_30 AC 57 ms
22,240 KB
testcase_31 AC 59 ms
22,176 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

(stdin.ReadLine >> fun s -> s.Split ' ') ()
|> (Array.map (int >> fun n ->
match (n%3,n%5) with
| (0,0) -> 8
| (0,_) -> 4
| (_,0) -> 4
| (_,_) -> n.ToString () |> String.length) >> Array.sum)
|> stdout.WriteLine
0