Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
70681 陈昊然 07苹果和虫子 C++ Accepted 1 MS 272 KB 203 2024-04-16 20:15:49

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int r,s,t,y,e; cin>>r>>s>>t; e=t/s; y=r-e; if(t%s!=0){ y=r-(t/s+1); } if(y<0){ cout<<0; }else{ cout<<y; } return 0; }