Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
345025 | 杭一鸣 | 【C1-9】苹果和虫子 | C++ | 通过 | 100 | 5 MS | 248 KB | 183 | 2025-08-28 19:53:19 |
#include <bits/stdc++.h> using namespace std; int n,x,y,ans=0; int main(){ cin>>n>>x>>y; ans=y/x; if(y%x!=0){ cout<<n-ans-1; }else{ cout<<n-ans; } return 0; }