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

Tests(5/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; }


Run Info:

------Input------
5 1 12
------Answer-----
0
------Your output-----
-7