結果

問題 No.32 貯金箱の憂鬱
ユーザー Luna
提出日時 2018-05-08 18:56:33
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 273 bytes
コンパイル時間 529 ms
コンパイル使用メモリ 55,656 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-28 02:29:11
合計ジャッジ時間 1,068 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main(int argc, char const* argv[]) {
    int L, M, N, ans = 0;

    cin >> L >> M >> N;

    ans += L % 25;
    M   += L / 25;

    ans += M % 4;
    N   += M / 4;

    ans += N % 10;

    cout << ans << endl;
    return 0;
}
0