#include <stdio.h>
int main(void) {
int nominals[] = {25,10,5,1};
float fn;
do {
} while(fn<0.0);
int n = round(100*fn);
int s = 0;
for(int *nominal=&nominals;nominal<nominals+(sizeof nominals/sizeof nominals[0]); ++nominal) {
s += n / *nominal;
n %= *nominal;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgbm9taW5hbHNbXSA9IHsyNSwxMCw1LDF9OwoJCglmbG9hdCBmbjsKCWRvIHsKCQlzY2FuZigiJWYiLCZmbik7Cgl9IHdoaWxlKGZuPDAuMCk7CglpbnQgbiA9IHJvdW5kKDEwMCpmbik7CgkKCWludCBzID0gMDsKCWZvcihpbnQgKm5vbWluYWw9Jm5vbWluYWxzO25vbWluYWw8bm9taW5hbHMrKHNpemVvZiBub21pbmFscy9zaXplb2Ygbm9taW5hbHNbMF0pOyArK25vbWluYWwpIHsKCQlzICs9IG4gLyAqbm9taW5hbDsKCQluICU9ICpub21pbmFsOwoJfQoJCglwcmludGYoIiVkXG4iLHMpOwoJcmV0dXJuIDA7Cn0K