Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
118078 李茗宇 07苹果和虫子 C++ Accepted 1 MS 276 KB 285 2025-04-23 19:06:18

Tests(10/10):


Code:

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