結果

問題 No.32 貯金箱の憂鬱
ユーザー izryt(趣味)
提出日時 2016-01-16 03:37:32
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 247 bytes
コンパイル時間 1,300 ms
コンパイル使用メモリ 158,968 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-23 02:13:52
合計ジャッジ時間 1,895 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int L; cin >> L; // 100
    int M; cin >> M; // 25
    int N; cin >> N; // 1

    M += N / 25;
    N %= 25;
    L += M / 4;
    M %= 4;
    L %= 10;

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