結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | furon |
提出日時 | 2023-06-02 14:10:01 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 949 bytes |
コンパイル時間 | 1,605 ms |
コンパイル使用メモリ | 122,328 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-28 15:34:16 |
合計ジャッジ時間 | 1,983 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <iostream> #include <iomanip> #include <vector> #include <algorithm> #include <functional> #include <cmath> #include <string> #include <queue> #include <map> #include <bitset> #include <set> #include <stack> #include <numeric> #include <unordered_map> #include <random> using namespace std; using ll = long long; using vi = vector<int>; using vvi = vector<vi>; using vl = vector<ll>; using vvl = vector<vl>; using vb = vector<bool>; using vvb = vector<vb>; using vd = vector<double>; using vs = vector<string>; using pii = pair<int, int>; using pll = pair<ll, ll>; using pdd = pair<double, double>; using vpii = vector<pii>; using vpll = vector<pll>; using vpdd = vector<pdd>; const int inf = (1 << 30) - 1; const ll INF = 1LL << 60; //const int MOD = 1000000007; const int MOD = 998244353; int main() { int l, m, n; cin >> l >> m >> n; m += n / 25; n %= 25; l += m / 4; m %= 4; l %= 10; cout << l + m + n << endl; return 0; }