結果
問題 |
No.637 X: Yet Another FizzBuzz Problem
|
ユーザー |
![]() |
提出日時 | 2018-05-31 17:24:10 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 58 ms / 1,000 ms |
コード長 | 211 bytes |
コンパイル時間 | 7,718 ms |
コンパイル使用メモリ | 185,812 KB |
実行使用メモリ | 29,568 KB |
最終ジャッジ日時 | 2024-06-30 08:33:24 |
合計ジャッジ時間 | 10,755 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 30 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (236 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
(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