結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
![]() |
提出日時 | 2021-03-28 07:51:06 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 369 bytes |
コンパイル時間 | 232 ms |
コンパイル使用メモリ | 28,928 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-29 08:29:25 |
合計ジャッジ時間 | 690 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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); return 0; }