Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
94162 | Hope | 07苹果和虫子 | C++ | Wrong Answer | 1 MS | 264 KB | 212 | 2024-10-19 20:14:30 |
#include <iostream> #include <cstdio> using namespace std; int main(){ int n,x,y,result; scanf("%d %d %d",&n,&x,&y); result=(y%x>0)?n-(y/x+1):n-(y/x); printf("%d",result); return 0; }
------Input------
5 1 12
------Answer-----
0
------Your output-----
-7