3 条题解
-
212239姚与露 (12239姚与露) LV 7 @ 2021-11-22 10:41:52
#include<iostream>
using namespace std;
int main()
{
int n,x,y,leap,z;
cin>>n>>x>>y;
if(y%x==0)
leap=0;
else
leap=1;
z=n-y/x-leap;
cout<<z<<endl;
return 0;
} -
22021-10-25 09:21:43@
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int n,x;
double y;
cin>>n>>x>>y;
cout<<n-ceil(y/x);
return 0;
} -
02024-02-13 22:51:36@
#include<bits/stdc++.h> using namespace std; int main() { int n,x,y; cin>>n>>x>>y; cout<<n-ceil(y*1.0/x); return 0; }
- 1
信息
- ID
- 2350
- 难度
- 1
- 分类
- (无)
- 标签
- 递交数
- 93
- 已通过
- 73
- 通过率
- 78%
- 被复制
- 4
- 上传者