結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
|
提出日時 | 2022-01-09 18:40:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 414 bytes |
コンパイル時間 | 1,409 ms |
コンパイル使用メモリ | 164,672 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-14 10:27:47 |
合計ジャッジ時間 | 1,947 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 10 |
ソースコード
#include <bits/stdc++.h> #define rep(i,a,b) for(int i = (a); i < (b); i++) #define all(A) (A).begin(),(A).end() #define MOD 1000000007 using namespace std; using ll = long long; using Graph = vector<vector<int>>; int main() { int l,m,n; cin >> l >> m >> n; int total = l*100+m*25+n,ans = 0; ans += total/100; total /= 100; total %= 1000; ans += total/25; total /= 25; total %= 1000; cout << ans+total; }