题解 | #KiKi和酸奶#
KiKi和酸奶
https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
#include <stdio.h> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); int d=0; if(c<=a*b){ if(c%b!=0) d=a-c/b-1; else d=a-c/b; printf("%d",d);} return 0; }
KiKi和酸奶
https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
#include <stdio.h> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); int d=0; if(c<=a*b){ if(c%b!=0) d=a-c/b-1; else d=a-c/b; printf("%d",d);} return 0; }
相关推荐