Untitled

mail@pastecode.io avatar
unknown
plain_text
5 months ago
223 B
2
Indexable
#include <iostream>
#include <cmath>
using namespace std;
int main() {
    unsigned long long a, b;
    cin >> a >> b;
    long long ssh = (b - a)/1+1;
    unsigned long long tong = (a + b)*ssh/2; 
   cout << tong ;
Leave a Comment