mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-26 04:52:00 +00:00
P7157 「dWoi R1」Physics Problem
R44326556
This commit is contained in:
parent
101fc7e5db
commit
7e6f998ec6
10
problem/P7157/P7157.cpp
Normal file
10
problem/P7157/P7157.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user