結果

問題 No.32 貯金箱の憂鬱
ユーザー ransewhale
提出日時 2016-01-19 21:16:58
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 187 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 22,272 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-21 14:26:37
合計ジャッジ時間 691 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 |     scanf("%d%d%d",&l,&m,&n);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
int main(void){
    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);
    return 0;
}
0