結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
![]() |
提出日時 | 2015-12-28 23:53:28 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 174 bytes |
コンパイル時間 | 212 ms |
コンパイル使用メモリ | 33,596 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-23 02:13:24 |
合計ジャッジ時間 | 797 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:24: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | int a,b,c;scanf("%d%d%d",&a,&b,&c); | ~~~~~^~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>#include<algorithm>using namespace std;int main(){int a,b,c;scanf("%d%d%d",&a,&b,&c);b+=c/25;c%=25;a+=b/4;b%=4;a%=10;printf("%d\n",a+b+c);}