結果
| 問題 | No.32 貯金箱の憂鬱 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-07-28 20:42:38 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 411 bytes |
| 記録 | |
| コンパイル時間 | 2,998 ms |
| コンパイル使用メモリ | 348,800 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-28 20:42:47 |
| 合計ジャッジ時間 | 3,599 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 9 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
ll a, b, c;
cin >> a >> b >> c;
ll total = (a * 1) + (b * 25) + (c * 100);
ll rem = total % 1000;
ll n100 = rem / 100;
rem %= 100;
ll n25 = rem / 25;
rem %= 25;
cout << n100 + n25 + rem << endl;
return 0;
}