Olympic Sinh Viên 2020 - Không chuyên - Chăn bò

View as PDF

Submit solution

Points: 0.01 (partial)
Time limit: 1.0s
Memory limit: 512M
Input: stdin
Output: stdout

Problem source:
Olympic Sinh Viên
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

Please read the guidelines before commenting.



  • 0
    zatarainbow  commented on July 13, 2024, 3:29 p.m.

    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


  • 0
    SPyofgame  commented on Sept. 6, 2021, 1:06 p.m.

    Unofficial Solution:

    https://hackmd.io/@SPyofgame/olp_kc20_cows