結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
toriniku
|
| 提出日時 | 2015-09-09 21:23:04 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 186 bytes |
| コンパイル時間 | 79 ms |
| コンパイル使用メモリ | 20,480 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-19 05:05:08 |
| 合計ジャッジ時間 | 549 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 3 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%d %d %d",&a,&b,&c);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
while((c-25)>=0){
c-=25;
b++;
}
while((b-4)>=0){
b-=4;
a++;
}
while((a-10)>0) a-=10;
printf("%d",a+b+c);
return 0;
}
toriniku