Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
94159 | Hope | 07苹果和虫子 | C++ | Wrong Answer | 1 MS | 268 KB | 340 | 2024-10-19 20:12:35 |
#include <iostream> int main(){ int n ,x, y; std::cin >> n >> x >> y; if(y % x == 0){ std::cout << n - y / x << std::endl; }else{ if (n - (y / x + 1) < 0){ std::cout << 0<<std::endl; }else{ std::cout << n - (y /x +1) << std::endl; } } return 0; }
------Input------
5 1 12
------Answer-----
0
------Your output-----
-7