Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
155 A班-黎祖彦 苹果和虫子 C++ Accepted 100 1 MS 272 KB 180 2024-11-16 11:53:23

Tests(5/5):


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


Judgement Protocol: