結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-25 17:42:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 230 bytes |
| コンパイル時間 | 1,433 ms |
| コンパイル使用メモリ | 157,528 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-23 02:04:41 |
| 合計ジャッジ時間 | 1,923 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int t;
int s = 0;
cin>>t; s += t * 100;
cin>>t; s += t * 25;
cin>>t; s += t * 1;
int u = 0;
s %= 1000;
u += s / 100; s%=100;
u += s / 25; s %= 25;
cout << u + s << endl;
}