結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  tottoripaper | 
| 提出日時 | 2014-11-19 23:31:33 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 201 bytes | 
| コンパイル時間 | 191 ms | 
| コンパイル使用メモリ | 27,136 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2025-01-02 19:22:33 | 
| 合計ジャッジ時間 | 998 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 3 WA * 9 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |     scanf("%d %d %d", &L, &M, &N);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include <cstdio>
int main(){
    int L, M, N;
    scanf("%d %d %d", &L, &M, &N);
    M += L / 25;
    L %= 25;
    N += M / 4;
    M %= 4;
    N %= 10;
    printf("%d\n", L + M + N);
}
            
            
            
        