Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
结业考试
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KB
Total submit users: 52, Accepted users: 42
Problem 11600 : No special judgement
Problem description
  阿才的培训班要结业了,来一场结业考试。给定2个32位整数,问较小的数需要加加多少次才能变成较大的数。例如给定3和5,则答案是2。什么?你说你不会加加,重新交学费再学一遍!
如果你觉得结业考试太简单,那是当然的,太难了都不能结业以后谁还来上培训班;如果你觉得这道题很难,这也是显然的,不难一点怎么体现出培训班的成功哪。

Input
  输入有多行,每行2个32位整数。2个负数则代表输入结束,且该行不用处理。

Output
  每个输入输出一行,答案。

Sample Input
3 5
4 6
-1 -1
Sample Output
2
2
Problem Source
  HUNNU Contest 

Submit   Discuss   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2124 today,12073173 total, since 2010-05-07