10 条题解
- 1
信息
- ID
- 2129
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 1
- 标签
- 递交数
- 706
- 已通过
- 316
- 上传者
#include <bits/stdc++.h>
#define int long long
#define endl '\n'
using namespace std;
signed main(){
int n,x,y,chi;
cin>>n>>x>>y;
if(y%x!=0){
chi=y/x+1; }
else if(y%x==0){
chi=y/x; }
cout<<n-chi;
return 0;
}
#include <bits/stdc++.h>
#define int long long
#define endl '\n'
using namespace std;
signed main(){
int n,x,y,chi;
cin>>n>>x>>y;
if(y%x!=0){
chi=y/x+1; }
else if(y%x==0){
chi=y/x; }
cout<<n-chi;
return 0;
}
#include<iostream>
using namespace std;
int main(){ int n,x,y,a,s;
cin>>n>>x>>y;
s=y/x;
if (y%x!=0){
s=s+1;
}
n = n - s;
cout<<n;
return 0;
}
#include using namespace std; int main(){ int n,x,y; cin>>n>>x>>y; if(y%x!=0){ cout<<n-(y/x+1); } if(y%x==0){ cout<<n-y/x; } return 0; }
#include using namespace std; int main(){ int n,x,y,a,s; cin>>n>>x>>y; s=y/x;
if (y%x!=0){
s=s+1;
}
n = n - s;
cout<<"n";
return 0;
}
#include using namespace std; int main(){ int n,x,y,a,s; cin>>n>>x>>y; s=y/x;
if (y%x!=0){
s=s+1;
}
n = n - s;
cout<<n;
return 0;
}
#include <bits/stdc++.h> #define int long long #define endl '\n' using namespace std; signed main(){ int n,x,y,chi; cin>>n>>x>>y; if(y%x!=0){ chi=y/x+1; } else if(y%x==0){ chi=y/x; } cout<<n-chi; return 0; }
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(c%b==0){ cout<<a-c/b; } else{ cout<<a-1-c/b; } }
#include<bits/stdc++.h> using namespace std; int main(){ int n,x,y; cin>>n>>x>>y; if(y%x==0){ cout<<n-y/x; } else{ cout<<n-1-y/x; } }
cuode
cuo de
cuo de
cuo de
cuo de
cuo de
cuo de
cuo de
cuo de
cuo de
cuo de