Untitled

Anonymous
c_cpp
11/04/2022 1:28 PM
316 B
18
Indexable
#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;
}
Editor is loading...