結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | Atria |
提出日時 | 2019-11-10 19:00:51 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 55 ms / 5,000 ms |
コード長 | 708 bytes |
コンパイル時間 | 775 ms |
コンパイル使用メモリ | 65,256 KB |
実行使用メモリ | 22,784 KB |
最終ジャッジ日時 | 2023-09-30 13:44:49 |
合計ジャッジ時間 | 2,119 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 55 ms
18,676 KB |
testcase_01 | AC | 55 ms
22,664 KB |
testcase_02 | AC | 55 ms
20,652 KB |
testcase_03 | AC | 54 ms
20,760 KB |
testcase_04 | AC | 54 ms
22,784 KB |
testcase_05 | AC | 55 ms
22,728 KB |
testcase_06 | AC | 54 ms
20,720 KB |
testcase_07 | AC | 54 ms
20,744 KB |
testcase_08 | AC | 54 ms
20,616 KB |
testcase_09 | AC | 54 ms
20,656 KB |
testcase_10 | AC | 54 ms
20,660 KB |
testcase_11 | AC | 55 ms
22,776 KB |
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace CP { class Atria { static void Main(string[] args) { int l = int.Parse(ReadLine()); int m = int.Parse(ReadLine()); int n = int.Parse(ReadLine()); while (n >= 25) { n -= 25; m++; } while (m >= 4) { m -= 4; l++; } while (l >= 10) { l -= 10; } WriteLine(l+m+n); } } }