题解 | #KiKi和酸奶#
KiKi和酸奶
http://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
//余数化一法
#include <stdio.h>
int main()
{
int n, h, m;
scanf("%d%d%d", &n, &h, &m);
printf("%d\n", n - m / h - (m % h + 2) % (m % h + 1));
//余数化一法: (m % h + 2) % (m % h + 1)
return 0;
}