結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2019-03-19 00:48:12 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 340 ms / 5,000 ms |
コード長 | 422 bytes |
コンパイル時間 | 9,864 ms |
コンパイル使用メモリ | 185,784 KB |
実行使用メモリ | 35,160 KB |
最終ジャッジ日時 | 2024-07-19 10:53:38 |
合計ジャッジ時間 | 17,261 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (554 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/
ソースコード
open System let A, B = Console.ReadLine().Split(' ') |> fun s -> (s.[0] |> int , s.[1] |> int) let ( |Multiple3|Number3|Number| ) n = match ( n % 3 ) , ( string n ).Contains("3") with | 0 , _ -> Multiple3 | _ , true -> Number3 | _ , false-> Number let fizzBuzz n = match n with | Multiple3 -> printfn "%i" n | Number3 -> printfn "%i" n | Number -> () [A..B] |> List.iter (fizzBuzz)