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

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; }