Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
162544 曹奕晗 07苹果和虫子 C++ Accepted 1 MS 272 KB 221 2026-10-17 17:19:21

Tests(10/10):


Code:

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