結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | chike_plus |
提出日時 | 2019-03-19 10:28:06 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 5,048 ms |
コンパイル使用メモリ | 157,328 KB |
実行使用メモリ | 26,080 KB |
最終ジャッジ日時 | 2023-10-11 15:12:12 |
合計ジャッジ時間 | 6,530 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 58 ms
24,104 KB |
testcase_01 | AC | 57 ms
22,096 KB |
testcase_02 | WA | - |
testcase_03 | AC | 57 ms
21,948 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved.
ソースコード
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 / 100) / 25 let one = (sum % 25) Console.WriteLine (hundred + quarter + one)