Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86544 张曦 07苹果和虫子 C++ Accepted 1 MS 272 KB 235 2024-07-26 09:45:50

Tests(10/10):


Code:

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