結果

問題 No.32 貯金箱の憂鬱
ユーザー きな
提出日時 2021-10-22 19:24:04
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 419 bytes
コンパイル時間 1,593 ms
コンパイル使用メモリ 166,664 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-22 23:08:17
合計ジャッジ時間 2,069 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
   long l,m,n;
   int sum = 0;

   cin >> l >> m >> n;

   // 1¥ → 25¥
   // 25¥ → 100
   m = (m/4) + (n/25);
   l += m - (l/10);
   // ¥100 → ¥1000

//    cout << "¥1:" + to_string(n) << endl;
//    cout << "¥25:" + to_string(m) << endl;
//    cout << "¥100:" + to_string(l) << endl;

   cout << to_string(l) << endl;



    return 0;
}

0