Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _USE_MATH_DEFINES
- #include <iostream>
- #include <conio.h>
- #include <string>
- #include <set>
- #include <map>
- #include <algorithm>
- #include <string>
- #include <math.h>
- #include <vector>
- #include <cmath>
- #include <sstream>
- #include <queue>
- using namespace std;
- int main()
- {
- int p, unh;
- cin >> p >> unh;
- cout << (p*(p - 1)) / 2 - unh;
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment