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