Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
32372 王籽易 苹果和虫子2 C++ Accepted 100 0 MS 252 KB 206 2022-02-10 16:49:45

Tests(4/4):


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


Judgement Protocol: