0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-25 17:12:02 +00:00

P7157 「dWoi R1」Physics Problem

R44326556
This commit is contained in:
Baoshuo Ren 2020-12-27 20:34:21 +08:00 committed by Baoshuo Ren
parent 101fc7e5db
commit 7e6f998ec6
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

10
problem/P7157/P7157.cpp Normal file
View File

@ -0,0 +1,10 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n, k;
cin >> n >> k;
cout << n * (n - 1) / 2 - k << endl;
return 0;
}