結果

問題 No.32 貯金箱の憂鬱
ユーザー RyuRyu
提出日時 2017-12-28 18:00:14
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 265 bytes
コンパイル時間 582 ms
コンパイル使用メモリ 69,436 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-21 09:03:33
合計ジャッジ時間 1,205 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>

using namespace std;

int main()
{
    int L, M, N;
    cin >> L >> M >> N;
    
    M += L / 25;
    L %= 25;

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

    N %= 10;

    cout << L + M + N << endl;
}
0