| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 39844 | 法老王 | 苹果和虫子2 | C++ | Accepted | 100 | 0 MS | 252 KB | 249 | 2022-05-22 11:13:34 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,x,y; cin>>n>>x>>y; if(y/x>=n){ cout<<0; } else{ if(y%x==0){ cout<<n-y/x; } else{ cout<<n-y/x-1; } } return 0; }