Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66743 陈俊洁 07苹果和虫子 C++ Accepted 0 MS 272 KB 295 2024-03-10 13:41:04

Tests(10/10):


Code:

#include<iostream> using namespace std; int main() { //int a,b,c; //cin>>a>>b>>c; //cout<<(((a+b)>c) ?"Yes":"no")<<endl; int n,x,y,m; cin>>n>>x>>y; if(1.0*y/x>y/x) { m=y/x+1; } else{ m=y/x; } if(n>=m){ cout<<n-m<<endl; } else{ cout<<0<<endl; } return 0; }