DCP-251: Journey By Circle Back to All Problems

Medium Math > Number Theory


Satalite_A and Satalite_B begin their journey respectively from mark A and mark B . ![enter image description here][1] The radius of inner circle is r1 and outer circle is r2. Velocity of both satellite is **π m.s-1**. You need to find the minimum time needed for Satalite_A and Satalite_B to come at initial position at the same time after the journey start.! Input: ------ Input starts with an integer **T (T <= 10000)** denoting the number of test cases. Next T lines contain 2 integer **r1, r2 (1 <= r1 < r2 <= 10^9)**. Output: ------- For each test case, output one line containing the expected answer.See the sample I/O. Sample Input ------------ 1 1 2 Sample Output ------------- 4 [1]: https://s3-ap-southeast-1.amazonaws.com/devskillimagestorage/questionimages/d34cdb7b-87b9-cae6-2a1d-08d45639741a_c871f3f5a3bd4dcba789d7ff05f3e89d_W261xH232.png


Problem Setter:

MD Musfiqur Rahman Sanim

Please login to submit solution to this problem.

Problem Limits

Language Time Limit (seconds)
C 0.50
C++ 0.50
C++14 0.50
C# 1.00
Go 1.00
Java 1.00
JavaScript 1.00
Objective-C 1.00
Perl 1.00
PHP 1.00
Python 1.00
Python3 1.00
Ruby 1.00
VB.Net 1.00

Problem Stats

155/449

Solve/Submission

Ranking

# User Language Timing
01 rajdipsaha Cpp14 0.00s
02 MAHRahat Cpp14 0.00s
03 haasib Cpp14 0.00s
04 kitorp Cpp14 0.00s
05 ashraful_haque Cpp14 0.00s
06 evonloch Cpp14 0.00s
07 Morass Cpp14 0.00s
08 Robbinb1993 Cpp14 0.00s
09 prateepm Cpp14 0.01s
10 pentagon9 Cpp14 0.01s
11 abdulmukit Cpp 0.01s
12 smriad Cpp14 0.01s
13 mahmud2690 Cpp14 0.01s
14 monir769 Cpp 0.01s
15 trifiasco Cpp14 0.01s
16 promit_mist Cpp14 0.01s
17 HM39 Cpp14 0.01s
18 kissu_pari_na Cpp14 0.01s
19 Himul Cpp14 0.01s
20 madcoder Cpp14 0.01s
21 BlurryFace Cpp14 0.01s
22 SKL12 Cpp14 0.01s
23 mukhter2 Cpp14 0.01s
24 feodorv Cpp14 0.01s
25 AlaminJust Cpp14 0.01s
26 saurabh3240 Cpp14 0.01s
27 terminator_c Cpp14 0.01s
28 iamsadee Cpp14 0.01s
29 pulak_ict_mbstu Cpp14 0.01s
30 sakib_muhit Cpp14 0.01s
31 prantacse14 Cpp14 0.01s
32 Anubis Cpp14 0.01s
33 giash_uddin Cpp14 0.01s
34 ibrahimnsu15 Cpp14 0.01s
35 zyyxxx Cpp14 0.01s
36 emrul Cpp14 0.01s
37 shaft Cpp14 0.01s
38 as_couple Cpp14 0.01s
39 Nazmul_WUB Cpp14 0.01s
40 mhiceiuk Cpp14 0.01s
41 sazal_dev Cpp14 0.01s
42 Masum_ice Cpp14 0.01s
43 liar Cpp14 0.01s
44 orpib Cpp14 0.01s
45 Knight_King Cpp14 0.01s
46 shahincsejnu Cpp14 0.01s
47 shishir09 Cpp14 0.01s
48 robincse14 Cpp14 0.01s
49 _zErO_ Cpp14 0.01s
50 ThunderStroke Cpp14 0.01s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support