Untitled

Anonymous
plain_text
11/27/2024 11:21 AM
224 B
15
Indexable
#include<stdio.h>
int main ()
{
    long long  a,b,sum;
    scanf("%lld %lld",&a,&b);
    sum =(b * (b+1) - (a *(a-1)))/2;
    printf("%lld\n",sum);


    return 0;
}
Editor is loading...
Leave a Comment