Olympic Sinh Viên 2020 - Không chuyên - Chăn bò
View as PDF
Submit solution
Points:
0.03 (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
Comments
ty <3
bài tưởng khó mà ai ngờ dễ
Bài này nộp 5 lần mới biết không xài file inp,out:(((.Cẩn thận nha các bạn.
tội v :((
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: