結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
piconic_X
|
| 提出日時 | 2015-11-08 05:08:12 |
| 言語 | OCaml (5.2.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 378 bytes |
| 記録 | |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 19,436 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-08 23:37:49 |
| 合計ジャッジ時間 | 636 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
let rec happyday month ten one count =
if month > 12 then count
else
if ten = 3 && one = 1 then happyday (month + 1) 0 1 count
else
if one = 10 then happyday month (ten + 1) 0 count
else
if ten + one = month then happyday month ten (one + 1) (count + 1)
else happyday month ten (one + 1) count
let () = print_int (happyday 1 0 1 0);
print_newline ()
piconic_X