SOLVE

LATER

Guess

Problem

Editorial

Analytics

Mr.Hola does not like Sameer at all and they always fight with each other. As Sammer is good in guessing the pattern so Mr. Hola gives him a pattern to guess. Help Sameer to find out the pattern.

**input**

The input file consists of several lines. The line number i contains a two positive integers a and b representing the i-th pair. [0<=a<=b<=10^6]

maximum query <=10^3

**output**

The output file should contain the same number of lines as the input file. The i-th line should contain one number – the required value of the pattern.

Input:

1 4

2 3

4 10

7 10

8 100

200 300

255 275

Output:

5

5

12

7

1043

4048

1060

Problem Setter : Avinash Gurjar

Time Limit:
5.0 sec(s)
for each input file.

Memory Limit:
256 MB

Source Limit:
1024 KB

Marking Scheme:
Marks are awarded when all the testcases pass.

Allowed Languages:
C,
C++,
C++14,
Clojure,
C#,
D,
Erlang,
F#,
Go,
Groovy,
Haskell,
Java,
Java 8,
JavaScript(Rhino),
JavaScript(Node.js),
Julia,
Kotlin,
Lisp,
Lisp (SBCL),
Lua,
Objective-C,
OCaml,
Octave,
Pascal,
Perl,
PHP,
Python,
Python 3,
R(RScript),
Racket,
Ruby,
Rust,
Scala,
Swift,
Visual Basic

Initializing Code Editor...

{"c1a1a9a": "/pagelets/problem-author-tester/algorithm/guess/", "78640d5": "/pagelets/show-submission/algorithm/guess/", "4ef5ba3": "/pagelets/suggested-problems/algorithm/guess/", "1b46732": "/pagelets/recommended-problems/algorithm/guess/", "84099c1": "/pagelets/problems-hint/algorithm/guess/"}

realtime.hackerearth.com

80

440a640ee8d5eb27bece72dcc3cf02a125da5496

58a29e5cae2309f04b28

/realtime/pusher/auth/