Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
|---|---|---|---|---|---|---|
| 50 | Codeforces Beta Round 47 | FINISHED | False | 7200 | 483543622 | Dec. 20, 2010, 4:20 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 430 ) | E | Square Equation Roots | PROGRAMMING | math | 2300 |
A schoolboy Petya studies square equations. The equations that are included in the school curriculum, usually look simple: Petya noticed that some equations have two real roots, some of them have only one root and some equations don't have real roots at all. Moreover it turned out that several different square equations can have a common root. Petya is interested in how many different real roots have all the equations of the type described above for all the possible pairs of numbers b and c such that 1 ≤ b ≤ n , 1 ≤ c ≤ m . Help Petya find that number. The single line contains two integers n and m . ( 1 ≤ n , m ≤ 5000000 ). Print a single number which is the number of real roots of the described set of equations. In the second test from the statement the following equations are analysed: b = 1 , c = 1 : x 2 + 2 x + 1 = 0 ; The root is x = - 1 b = 1 , c = 2 : x 2 + 2 x + 2 = 0 ; No roots Overall there's one root In the second test the following equations are analysed: b = 1 , c = 1 : x 2 + 2 x + 1 = 0 ; The root is x = - 1 b = 1 , c = 2 : x 2 + 2 x + 2 = 0 ; No roots b = 1 , c = 3 : x 2 + 2 x + 3 = 0 ; No roots b = 2 , c = 1 : x 2 + 4 x + 1 = 0 ; The roots are b = 2 , c = 2 : x 2 + 4 x + 2 = 0 ; The roots are b = 2 , c = 3 : x 2 + 4 x + 3 = 0 ; The roots are x 1 = - 3, x 2 = - 1 b = 3 , c = 1 : x 2 + 6 x + 1 = 0 ; The roots are b = 3 , c = 2 : x 2 + 6 x + 2 = 0 ; The roots are b = 3 , c = 3 : x 2 + 6 x + 3 = 0 ; The roots are Overall there are 13 roots and as the root - 1 is repeated twice, that means there are 12 different roots. |
| Codeforces #47 problem solutions |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 33594496 | AsahiKasugano | E | Dec. 24, 2017, 1:39 p.m. | OK | FPC | TESTS | 50 | 2276 | 103014400 | 2300 | |
| 40993275 | ReaLNero1 | E | July 31, 2018, 1:52 a.m. | OK | GNU C++ | TESTS | 50 | 62 | 0 | 2300 | |
| 41922939 | luogu_bot1 | E | Aug. 21, 2018, 5:48 a.m. | OK | GNU C++ | TESTS | 50 | 278 | 5017600 | 2300 | |
| 41922898 | luogu_bot5 | E | Aug. 21, 2018, 5:47 a.m. | OK | GNU C++ | TESTS | 50 | 280 | 5017600 | 2300 | |
| 41922911 | luogu_bot5 | E | Aug. 21, 2018, 5:47 a.m. | OK | GNU C++ | TESTS | 50 | 310 | 5017600 | 2300 | |
| 32518913 | vjudge3 | E | Nov. 21, 2017, 7:50 a.m. | OK | GNU C++ | TESTS | 50 | 686 | 20070400 | 2300 | |
| 60731165 | rainboy | E | Sept. 17, 2019, 3:45 p.m. | OK | GNU C11 | TESTS | 50 | 154 | 40038400 | 2300 | |
| 57906928 | lopare | E | July 28, 2019, 6:01 p.m. | OK | GNU C++11 | TESTS | 50 | 156 | 0 | 2300 | |
| 58540408 | luogu_bot5 | E | Aug. 10, 2019, 1:54 p.m. | OK | GNU C++11 | TESTS | 50 | 218 | 10035200 | 2300 | |
| 60731372 | Fan_of_IceLocke | E | Sept. 17, 2019, 3:49 p.m. | OK | GNU C++11 | TESTS | 50 | 248 | 1228800 | 2300 | |
| 58561630 | ueettttuj | E | Aug. 11, 2019, 6:02 a.m. | OK | GNU C++11 | TESTS | 50 | 248 | 10035200 | 2300 | |
| 53610739 | minhth_2002 | E | May 1, 2019, 12:55 p.m. | OK | GNU C++11 | TESTS | 50 | 310 | 113254400 | 2300 | |
| 54495919 | WOSHIGEPACHONG2 | E | May 22, 2019, 5:43 p.m. | OK | GNU C++11 | TESTS | 50 | 342 | 113254400 | 2300 | |
| 57254613 | Sodaine | E | July 18, 2019, 1:51 a.m. | OK | GNU C++11 | TESTS | 50 | 1620 | 168140800 | 2300 | |
| 45252431 | KCSC | E | Nov. 3, 2018, 5:23 p.m. | OK | GNU C++11 | TESTS | 50 | 2182 | 80179200 | 2300 | |
| 33472222 | EmanuelNrx | E | Dec. 21, 2017, 6:58 a.m. | OK | GNU C++11 | TESTS | 50 | 2338 | 82227200 | 2300 | |
| 56853796 | step_by_step | E | July 11, 2019, 5:11 p.m. | OK | GNU C++14 | TESTS | 50 | 218 | 0 | 2300 | |
| 58561590 | ueettttuj | E | Aug. 11, 2019, 6:01 a.m. | OK | GNU C++14 | TESTS | 50 | 218 | 10035200 | 2300 | |
| 33980648 | kefaa2 | E | Jan. 7, 2018, 10:24 a.m. | OK | GNU C++14 | TESTS | 50 | 280 | 1945600 | 2300 | |
| 33900587 | irkstepanov | E | Jan. 4, 2018, 10:20 a.m. | OK | GNU C++14 | TESTS | 50 | 280 | 13926400 | 2300 | |
| 54878613 | mhorst | E | May 31, 2019, 1:06 p.m. | OK | GNU C++14 | TESTS | 50 | 530 | 160358400 | 2300 | |
| 54534624 | bhargav_0085 | E | May 23, 2019, 7:10 p.m. | OK | GNU C++14 | TESTS | 50 | 1684 | 80179200 | 2300 | |
| 33905529 | Cmise | E | Jan. 4, 2018, 3 p.m. | OK | GNU C++14 | TESTS | 50 | 1808 | 82022400 | 2300 | |
| 38092622 | ruo | E | May 10, 2018, 1:42 p.m. | OK | GNU C++17 | TESTS | 50 | 312 | 43417600 | 2300 | |
| 50159035 | ivan100sic | E | Feb. 19, 2019, 11:43 a.m. | OK | GNU C++17 | TESTS | 50 | 404 | 0 | 2300 | |
| 49688336 | kenimo | E | Feb. 10, 2019, 9:28 a.m. | OK | GNU C++17 | TESTS | 50 | 404 | 80384000 | 2300 | |
| 56015901 | sorry_im_smurfing | E | June 24, 2019, 9:09 p.m. | OK | Haskell | TESTS | 50 | 1840 | 102400 | 2300 | |
| 35870176 | ______M______ | E | March 3, 2018, 6:22 a.m. | OK | Haskell | TESTS | 50 | 4304 | 54272000 | 2300 | |
| 35884261 | ______n______ | E | March 3, 2018, 1:09 p.m. | OK | Haskell | TESTS | 50 | 4304 | 54272000 | 2300 | |
| 35884353 | ______u______ | E | March 3, 2018, 1:09 p.m. | OK | Haskell | TESTS | 50 | 4304 | 54272000 | 2300 | |
| 35883514 | _____k_____ | E | March 3, 2018, 12:56 p.m. | OK | Haskell | TESTS | 50 | 4304 | 54272000 | 2300 | |
| 35883139 | _____i_____ | E | March 3, 2018, 12:50 p.m. | OK | Haskell | TESTS | 50 | 4304 | 54272000 | 2300 | |
| 35872740 | ______h______ | E | March 3, 2018, 7:16 a.m. | OK | Haskell | TESTS | 50 | 4304 | 54272000 | 2300 | |
| 35872591 | ______k______ | E | March 3, 2018, 7:14 a.m. | OK | Haskell | TESTS | 50 | 4304 | 54272000 | 2300 | |
| 35872081 | ______i______ | E | March 3, 2018, 7:04 a.m. | OK | Haskell | TESTS | 50 | 4304 | 54272000 | 2300 | |
| 60731166 | Dukkha | E | Sept. 17, 2019, 3:45 p.m. | OK | Java 8 | TESTS | 50 | 404 | 38604800 | 2300 |
Back to search problems