結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  merom686 | 
| 提出日時 | 2017-09-22 17:42:03 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 379 bytes | 
| コンパイル時間 | 662 ms | 
| コンパイル使用メモリ | 72,840 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-23 06:45:06 | 
| 合計ジャッジ時間 | 1,315 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <cmath>
using namespace std;
int main() {
    int l, m, n;
    cin >> l >> m >> n;
    int c = l * 100 + m * 25 + n;
    int r = 0;
    c %= 1000;
    r += c / 100; c %= 100;
    r += c / 25; c %= 25;
    r += c;
    cout << r << endl;
    return 0;
}
            
            
            
        