3 solutions
- 1
Information
- ID
- 7
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 5
- Tags
- # Submissions
- 28
- Accepted
- 15
- Uploaded By
#include<bits/stdc++.h>
using namespace std;
int main()
{
double a,b,c;
cin>>a>>b>>c;
a-=c/b;
cout<<int(a);
}
C++ :
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,x,y;
cin>>n>>x>>y;
int a=y%x,b=y/x;
if(a!=0) b++;
cout<<n-b;
return 0;
}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.