代码写得有点乱(逃
#include<stdio.h>
#include<ctype.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
int main() {
int m, t, s;
scanf("%d %d %d", &m, &t, &s);
if ( t == 0 ){
printf("0");
return 0;
}
else if ( m == 0){
printf("0");
return 0;
}
else if (s == 0){
printf("%d", m);
return 0;
}
if (s/t >= m){
printf("0");
return 0;
}
if (s/t < 1.0*s/t){
printf("%d", m - 1 - s/t);
return 0;
}
else{
printf("%d", m - s/t);
return 0;
}
return 0;
}