Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
119334 王培臻 07苹果和虫子 C++ Accepted 1 MS 272 KB 238 2025-05-17 14:06:45

Tests(10/10):


Code:

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