結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-19 10:15:07 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 394 bytes |
| コンパイル時間 | 446 ms |
| コンパイル使用メモリ | 57,668 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-23 07:29:58 |
| 合計ジャッジ時間 | 1,007 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
int main()
{
int l,m,n;
std::cin >> l >> m >> n;
int tot = l * 100 + m * 25 + n;
int c = 0;
int o = tot / 1000;
tot -= o * 1000;
l = tot / 100;
c += l;
tot -= l * 100;
m = tot / 25;
c += m;
tot -= m * 25;
c += tot;
std::cout << c << std::endl;
return 0;
}