結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
chike_plus
|
| 提出日時 | 2019-03-19 10:35:48 |
| 言語 | F# (F# 4.0) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 5,000 ms |
| コード長 | 311 bytes |
| コンパイル時間 | 10,773 ms |
| コンパイル使用メモリ | 187,916 KB |
| 実行使用メモリ | 29,312 KB |
| 最終ジャッジ日時 | 2024-07-23 07:30:15 |
| 合計ジャッジ時間 | 12,363 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (302 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 sum = (Console.ReadLine() |> (fun s -> 100 * (int s)))
+ (Console.ReadLine() |> (fun s -> 25 * (int s)))
+ (Console.ReadLine() |> int)
let hundred = (sum % 1000) / 100
let quarter = ((sum % 1000) % 100) / 25
let one = sum % 25
Console.WriteLine (hundred + quarter + one)
chike_plus