結果
| 問題 | No.32 貯金箱の憂鬱 |
| コンテスト | |
| ユーザー |
merom686
|
| 提出日時 | 2017-09-22 17:42:03 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 379 bytes |
| 記録 | |
| コンパイル時間 | 429 ms |
| コンパイル使用メモリ | 89,180 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-03 13:05:02 |
| 合計ジャッジ時間 | 957 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <cmath>
using namespace std;
int main() {
int l, m, n;
cin >> l >> m >> n;
int c = l * 100 + m * 25 + n;
int r = 0;
c %= 1000;
r += c / 100; c %= 100;
r += c / 25; c %= 25;
r += c;
cout << r << endl;
return 0;
}
merom686