AT_abc443_b.Setsubun
入门
官方
通过率:0%
AC君温馨提醒
该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
At the annual Setsubun festival, one eats the same number of beans as their age. Takahashi-kun does not eat beans at any other time.
He is N years old at this year's Setsubun (0 years later).
At the earliest, how many years later will he have eaten a total of K or more beans from this year onward (including this year)?
He is immortal, so he will eventually have eaten a total of K or more beans from this year onward.
输入格式
The input is given from Standard Input in the following format:
N
K
输出格式
Print the answer.
输入输出样例
输入#1
4 43
输出#1
6
说明/提示
- All input values are integers.
- 1 ≤ N, K ≤ 10^8
输入解题思路,AI测评打分。不知道怎么写?