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

158/452

Solve/Submission

Ranking

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

Your feedback is our precious!



Or call +88 02 9853138 for support