All submissions for this problem are available.
Once, a genius guy Cristo visited NASA where he met many scientists. A young intern Mark at NASA asked Cristo to observe the strange behaviour of two
independent particles (say Alpha and Beta) moving in the free space.Cristo was astonished to see the movement of Alpha and Beta. However, he formulated a procedure
to evaluate the distance covered by the particles in given time.
The procedure calculates the distance covered by Alpha and Beta for a given time. Mark, however struggles
to evaluate the procedure manually and asks you to help him.
Cristo's Procedure :-
alpha = 0
beta = 0
Procedure CristoSutra( Ti ) :
if Ti <= 0 :
alpha = alpha + 1
else if Ti == 1 :
beta = beta + 1
Note: Print the answer by taking mod from 109+7 .
First line consists an integer t, number of Test cases.For each test case, there is an integer denoting time Ti.
For each test case, a single output line contains two space seperated numbers ,distance covered by alpha and beta in the given time.
Subtask 1 (30 points)
Subtask 2 (70 points)
Sample Input: 2 1 2 Sample Output: 0 1 2 1
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, JAVA, PYTH, PYTH 3.6|
Fetching successful submissions