Codeforces 124 A - The number of positions Solution
Solution in C++:
///La ilaha illellahu muhammadur rasulullah
///******Bismillahir-Rahmanir-Rahim******///
///AH Tonmoy
///Department of CSE,23rd batch
///Islamic University,Bangladesh
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- long long n,a,b;
- cin>>n>>a>>b;
- cout<<min(n-a,b+1)<<endl;
- }
No comments