結果
| 問題 | No.51 やる気の問題 |
| コンテスト | |
| ユーザー |
chike_plus
|
| 提出日時 | 2019-03-27 20:20:34 |
| 言語 | F# (F# 10.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 296 bytes |
| 記録 | |
| コンパイル時間 | 9,175 ms |
| コンパイル使用メモリ | 211,856 KB |
| 実行使用メモリ | 39,040 KB |
| 最終ジャッジ日時 | 2026-04-27 13:05:49 |
| 合計ジャッジ時間 | 11,360 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 RE * 6 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (263 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.0/publish/
ソースコード
let ``No.51 やる気の問題``() =
let w = stdin.ReadLine() |> int
let d = stdin.ReadLine() |> int
let rec loop w n =
match n with
| 1 ->(w / n)
| _ -> w - (w / (n * n))
|> fun arg -> loop arg (n-1)
loop w d
|> stdout.WriteLine
``No.51 やる気の問題``()
chike_plus