結果
| 問題 | No.9002 FizzBuzz(テスト用) |
| ユーザー |
r6eve
|
| 提出日時 | 2017-08-09 12:26:53 |
| 言語 | OCaml (5.5.1) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 362µs | |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 22,400 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-12 07:11:35 |
| 合計ジャッジ時間 | 1,051 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
ocamlfind: [WARNING] Cannot read directory ./stublibs which is mentioned in ld.conf
ソースコード
let () =
let n = read_int () in
let rec doit i =
if i > n then ()
else begin
if i mod (3*5) = 0 then print_endline "FizzBuzz"
else if i mod 3 = 0 then print_endline "Fizz"
else if i mod 5 = 0 then print_endline "Buzz"
else Printf.printf "%d\n" i;
doit (i + 1)
end in
doit 1
r6eve