Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
32546 董承诺 苹果和虫子2 C++ Accepted 100 0 MS 252 KB 188 2022-02-11 18:24:32

Tests(4/4):


#include<bits/stdc++.h> using namespace std; int n,x,y,ans; int main(){ cin>>n>>x>>y; if(y%x==0) ans=y/x; else ans=y/x+1; if(n-ans<0) cout<<0; else cout<<n-ans; return 0; }


Judgement Protocol: