Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159800 饶宇皓 07苹果和虫子 C++ Accepted 1 MS 276 KB 231 2026-09-06 16:16:40

Tests(10/10):


Code:

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