結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
![]() |
提出日時 | 2021-03-28 07:35:55 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 382 bytes |
コンパイル時間 | 188 ms |
コンパイル使用メモリ | 29,056 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-29 08:29:21 |
合計ジャッジ時間 | 777 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 4 |
ソースコード
#include<stdio.h> int main(){ int a,b,c,x; int m=0; scanf("%d",&a); x=a*100; scanf("%d",&b); x+=b*25; scanf("%d",&c); 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); }