Tìm số nguyên dương k nhỏ nhất

View as PDF

Points: 3 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Bài 9: Tìm số nguyên dương k nhỏ nhất

  • Mô tả: Tìm \(k\) nhỏ nhất sao cho \(1 + 2 + 3 + ... + k > S\).
  • Dữ liệu vào: \(1 \le S \le 10^9\).
  • Ví dụ: Vào 10 -> Ra 5 (1+2+3+4+5 = 15 > 10).

Comments

Most recent
Loading comments...

There are no comments at the moment.