Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
150844 吴天辰 07苹果和虫子 C++ Accepted 1 MS 268 KB 296 2026-04-01 14:18:41

Tests(10/10):


Code:

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