题解 | #KiKi和酸奶#

KiKi和酸奶

https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb

#include <stdio.h>

int main() {
    int n = 0;
    int m = 0;
    int h = 0;

    while (3 == scanf("%d %d %d", &n, &h, &m))
    {
        printf("%d", (m % h ? (n - m / h - 1): (n - m / h)));
    }
    return 0;
}

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务