結果

問題 No.32 貯金箱の憂鬱
コンテスト
ユーザー MikuroXina
提出日時 2018-12-12 19:27:06
言語 C++11
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 323 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 249 ms
コンパイル使用メモリ 71,088 KB
実行使用メモリ 9,796 KB
最終ジャッジ日時 2026-09-03 17:57:07
合計ジャッジ時間 1,514 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>

int main() {
    using namespace std;
    int L, M, N;
    cin >> L >> M >> N;
    int total = L * 100 + M * 25 + N;
    int after = total / 1000; total %= 1000;
    after += total / 100; total %= 100;
    after += total / 25; total %= 25;
    after += total;
    cout << after << endl;
    return 0;
}
0