結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
_shim0123_
|
| 提出日時 | 2015-08-07 14:11:21 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 340 bytes |
| コンパイル時間 | 444 ms |
| コンパイル使用メモリ | 55,596 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-23 02:06:44 |
| 合計ジャッジ時間 | 968 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <iostream>
using namespace std;
int main (void){
int L = 0, M = 0, N = 0;
int ans = 0;
// input
cin >> L >> M >> N;
// solve
M += (N * 1) / 25;
N = (N * 1) % 25 / 1;
L += (M * 25) / 100;
M = (M * 25) % 100 / 25;
L = (L * 100) % 1000 / 100;
ans = N + M + L;
// output
cout << ans << endl;
return 0;
}
_shim0123_