Home Web Board ProblemSet Standing Status Statistics
long long输出请使用 %lld服务器的python版本为3.4
Problem I: 数字变换

Problem I: 数字变换

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 180  Solved: 18
[Submit][Status][Web Board]

Description

Input

Output

Sample Input

3
2 15
52 50
1 2

Sample Output

3
2
6

HINT

[Submit][Status][Web Board]