結果
| 問題 | No.32 貯金箱の憂鬱 |
| コンテスト | |
| ユーザー |
takumin0616
|
| 提出日時 | 2021-03-28 07:42:33 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 357 bytes |
| コンパイル時間 | 124 ms |
| コンパイル使用メモリ | 29,184 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-29 08:29:22 |
| 合計ジャッジ時間 | 712 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 4 |
ソースコード
#include<stdio.h>
int main(){
int a,b,c,x;
int m=0;
scanf("%d %d %d", &a, &b, &c);
x=a*100;
x+=b*25;
x+=c;
while(x > 1000){
x-=1000;
}
while(x > 100){
x-=100;
m++;
}
while(x > 25){
x-=25;
m++;
}
while(x > 0){
x-=1;
m++;
}
printf("%d\n",m);
}
takumin0616