Codeforces 1061A Coins Solution
Solve in C++:
- ///**********ALLAH IS ALMIGHTY************///
- ///AH Tonmoy
- ///Department of CSE,23rd batch
- ///Islamic University,Bangladesh
- #include<iostream>
- #include<math.h>
- using namespace std;
- int main()
- {
- long long int n,s,r;
- cin>>n>>s;
- if(s%n==0)
- cout<<s/n<<endl;
- else
- cout<<(s/n)+1<<endl;
- }
No comments