結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
|
提出日時 | 2017-05-10 20:00:44 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 223 bytes |
コンパイル時間 | 156 ms |
コンパイル使用メモリ | 22,528 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-23 04:29:52 |
合計ジャッジ時間 | 685 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d", &l); | ~~~~~^~~~~~~~~~ main.cpp:7:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d", &m); | ~~~~~^~~~~~~~~~ main.cpp:8:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d", &n); | ~~~~~^~~~~~~~~~
ソースコード
#include <stdio.h>int main(void){int l,m,n,r;scanf("%d", &l);scanf("%d", &m);scanf("%d", &n);m = m+n/25;n = n%25;l = l+m/4;m = m%4;l = l%10;printf("%d\n", n+m+l);return 0;}