Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
236 B
5
Indexable
Never
#include<bits/stdc++.h>
using namespace std;
long long i,c,d;
long double a,b;
int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);cout.tie(0);
    cin>>a>>b;
    c=a;
    d=b;
    if(a>c)c=c+1;
    cout<<d-c+1;
}