結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
Outing_Island
|
| 提出日時 | 2019-06-22 11:04:04 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 298 bytes |
| コンパイル時間 | 410 ms |
| コンパイル使用メモリ | 57,364 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-23 07:34:14 |
| 合計ジャッジ時間 | 958 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <iostream>
#include <vector>
//#include <iomanip>
using namespace std;
int main()
{
int Y1000 = 0, Y100, Y25, Y1;
cin >> Y100 >> Y25 >> Y1;
Y25 += Y1 / 25;
Y1 %= 25;
Y100 += Y25 / 4;
Y25 %= 4;
Y1000 += Y100 / 10;
Y100 %= 10;
cout << (Y100 + Y25 + Y1) << endl;
return 0;
}
Outing_Island