Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145831 冰块ee 07苹果和虫子 C++ Accepted 0 MS 272 KB 269 2026-01-25 19:10:51

Tests(10/10):


Code:

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