-->
当前位置:首页 > 题库 > 正文内容

PROGRAMMING:ACM Lab

Luz3年前 (2021-05-10)题库287
After hard work, little C was admitted to Yuanpei College of Shaoxing University of Arts and Sciences. In the first semester, there was a course called C language, In order to learn C language well, I joined ACM society under the introduction of elder martial brothers and sisters. The club has C language lectures and exercises every weekend. In order to learn C language well and enter ACM laboratory, little c wants to rank first in the number of questions in OJ. It is known that the number of questions that small C does in YP OJ is n, and the maximum number of questions that small C does in the same grade is m. how many questions does small C need to do at least in order to be the first.
###Input format:
Multiple groups of test data, each group of test data input 2 integers n, M.
(1<=n<=m<=1000)
###Output format:
Output at least the number of questions to do first. Each output occupies one line.
###Input example:
Here is a set of inputs. For example:
```in
5 5
3 5
```
###Output example:
The corresponding output is given here. For example:
```out
0
two
```







answer:If there is no answer, please comment

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。