結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
|
提出日時 | 2020-07-05 20:05:57 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 483 bytes |
コンパイル時間 | 597 ms |
コンパイル使用メモリ | 72,400 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-23 07:57:38 |
合計ジャッジ時間 | 1,164 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <algorithm> #include <cmath> #include <cstdio> #include <deque> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; #define MOD 1000000007 int main() { int l, m, n; cin >> l >> m >> n; int t = n / 25; m += t; n -= 25 * t; t = m / 4; l += t; m -= 4 * t; t = l / 10; l -= 10 * t; cout << l + m + n << endl; return 0; }