Submit solution
Points:
0.01 (partial)
Time limit:
1.0s
Memory limit:
512M
Input:
stdin
Output:
stdout
Problem source:
Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch
In case the statement didn't load correctly, you can download the statement here: Statement
Lưu ý: Đọc dữ liệu từ stdin, viết dữ liệu ra stdout.
Comments
include <bits/stdc++.h>
using namespace std; long long n,k; int main() { iosbase::syncwith_stdio(false); cin.tie(NULL); cin>>n>>k; cout<<n*(n+1)/2-k; return 0; } //top1zata.blogspot.com
Unofficial Solution: