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:
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
    toquyen260288  commented on Sept. 2, 2025, 7:37 a.m.

    ty <3


  • 0
    toquyen260288  commented on Sept. 2, 2025, 7:36 a.m. edited

    bài tưởng khó mà ai ngờ dễ


  • 0
    quygiaminh123  commented on Jan. 28, 2025, 10:38 a.m.

    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.


    • 0
      pika68267  commented on Aug. 16, 2025, 9:18 a.m.

      tội v :((


  • -2
    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


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

    Unofficial Solution:

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