Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
71957 罗子童 07苹果和虫子 C++ Accepted 1 MS 276 KB 216 2024-04-28 20:45:34

Tests(10/10):


Code:

# include<iostream> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c; if(c%b==0){ d=a-(c/b); } else{ d=a-(c/b+1); } if(d>0){ cout<<d; } else{ cout<<0; } return 0; }