Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
161416 王垚植 07苹果和虫子 C++ Accepted 1 MS 272 KB 264 2026-10-05 10:47:26

Tests(10/10):


Code:

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