結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-08-05 13:46:27 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 497 bytes |
| コンパイル時間 | 791 ms |
| コンパイル使用メモリ | 100,284 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-08-05 13:46:30 |
| 合計ジャッジ時間 | 1,977 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <climits>
#include <string>
#include <vector>
#include <cmath>
#include <set>
#include <map>
using namespace std;
using ll = long long;
int main(void)
{
int P = 0, L, M, S;
cin >> L >> M >> S;
if ((S / 25) > 0)
{
M += S / 25;
S %= 25;
}
if ((M / 4) > 0)
{
L += M / 4;
M %= 4;
}
if ((L / 10) > 0)
{
P += L / 10;
L %= 10;
}
int Sum = L + M + S;
cout << Sum << endl;
return 0;
}