Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144669 马俊潇 07苹果和虫子 C++ Accepted 1 MS 272 KB 283 2026-01-24 15:05:00

Tests(10/10):


Code:

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