Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119339 | 王培臻 | 07苹果和虫子 | C++ | Wrong Answer | 1 MS | 272 KB | 213 | 2025-05-17 14:21:04 |
#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; }
------Input------
5 1 12
------Answer-----
0
------Your output-----
-7