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 |
---|---|---|---|---|---|---|
895 | Codeforces Round 448 (Div. 2) | FINISHED | False | 7200 | 220110899 | Nov. 26, 2017, 4:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 3549 ) | B | XK Segments | PROGRAMMING | binary search math sortings two pointers | 1700 |
B'While Vasya finished eating his piece of pizza, the lesson has already started. For being late for the lesson, the teacher suggested Vasya to solve one interesting problem. Vasya has an array a and integer x. He should find the number of different ordered pairs of indexes (i, xe2 x80 x89j) such that ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89aj and there are exactly k integers y such that ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89y xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89aj and y is divisible by x. In this problem it is meant that pair (i, xe2 x80 x89j) is equal to (j, xe2 x80 x89i) only if i is equal to j. For example pair (1, xe2 x80 x892) is not the same as (2, xe2 x80 x891). The first line contains 3 integers n, xe2 x80 x89x, xe2 x80 x89k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109, xe2 x80 x890 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109), where n is the size of the array a and x and k are numbers from the statement. The second line contains n integers ai (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the elements of the array a. Print one integer -- the answer to the problem. In first sample there are only three suitable pairs of indexes -- (1, xe2 x80 x892), xe2 x80 x89(2, xe2 x80 x893), xe2 x80 x89(3, xe2 x80 x894). In second sample there are four suitable pairs of indexes(1, xe2 x80 x891), xe2 x80 x89(2, xe2 x80 x892), xe2 x80 x89(3, xe2 x80 x893), xe2 x80 x89(4, xe2 x80 x894). In third sample every pair (i, xe2 x80 x89j) is suitable, so the answer is 5 xe2 x80 x89* xe2 x80 x895 xe2 x80 x89= xe2 x80 x8925. '... |
Codeforces Round #448(Div.2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
40922736 | ruban | B | July 29, 2018, 3:56 p.m. | OK | Delphi | TESTS | 69 | 93 | 51302400 | 1700 | |
32785059 | MrLolthe1st | B | Nov. 29, 2017, 3:49 p.m. | OK | FPC | TESTS | 69 | 46 | 2048000 | 1700 | |
32753784 | __peossp | B | Nov. 28, 2017, 2:48 p.m. | OK | FPC | TESTS | 69 | 46 | 2048000 | 1700 | |
32744576 | Choppa | B | Nov. 28, 2017, 8:54 a.m. | OK | FPC | TESTS | 69 | 46 | 2048000 | 1700 | |
32697909 | ImForbiddenToSayILoveYou | B | Nov. 27, 2017, 1:44 a.m. | OK | FPC | TESTS | 69 | 46 | 2048000 | 1700 | |
32688239 | nguyenxxxxxxx | B | Nov. 26, 2017, 5:31 p.m. | OK | FPC | TESTS | 69 | 46 | 8089600 | 1700 | |
32688069 | Minh_love_Hong_Phuc | B | Nov. 26, 2017, 5:30 p.m. | OK | FPC | TESTS | 69 | 93 | 2457600 | 1700 | |
32900734 | rabbitcxk | B | Dec. 3, 2017, 2:07 p.m. | OK | FPC | TESTS | 69 | 109 | 2764800 | 1700 | |
32732703 | Voja03 | B | Nov. 27, 2017, 6:25 p.m. | OK | GNU C | TESTS | 69 | 62 | 2662400 | 1700 | |
32712331 | shivanya | B | Nov. 27, 2017, 10:56 a.m. | OK | GNU C | TESTS | 69 | 78 | 2662400 | 1700 | |
33096872 | kumar99 | B | Dec. 11, 2017, 8:10 a.m. | OK | GNU C | TESTS | 69 | 187 | 9932800 | 1700 | |
33598290 | vjudge2 | B | Dec. 24, 2017, 5:31 p.m. | OK | GNU C++ | TESTS | 69 | 31 | 2252800 | 1700 | |
32844590 | HeyByeSummerTime xxyxx | B | Dec. 2, 2017, 1:17 a.m. | OK | GNU C++ | TESTS | 69 | 31 | 2457600 | 1700 | |
32804509 | ldlsn | B | Nov. 30, 2017, 12:10 p.m. | OK | GNU C++ | TESTS | 69 | 31 | 2867200 | 1700 | |
32804231 | ldlsn | B | Nov. 30, 2017, 11:59 a.m. | OK | GNU C++ | TESTS | 69 | 31 | 2867200 | 1700 | |
32713317 | sunny_fei | B | Nov. 27, 2017, 11:38 a.m. | OK | GNU C++ | TESTS | 69 | 31 | 2867200 | 1700 | |
32777697 | Scut82 | B | Nov. 29, 2017, 10:25 a.m. | OK | GNU C++ | TESTS | 69 | 31 | 2969600 | 1700 | |
32777699 | Scut82 | B | Nov. 29, 2017, 10:25 a.m. | OK | GNU C++ | TESTS | 69 | 31 | 3072000 | 1700 | |
32857272 | bqq | B | Dec. 2, 2017, 12:06 p.m. | OK | GNU C++ | TESTS | 69 | 31 | 3686400 | 1700 | |
32830925 | L1937434926 | B | Dec. 1, 2017, 1:25 p.m. | OK | GNU C++ | TESTS | 69 | 31 | 3686400 | 1700 | |
32689580 | A_Thoughtful_Cat | B | Nov. 26, 2017, 5:43 p.m. | OK | GNU C++ | TESTS | 69 | 31 | 3686400 | 1700 | |
33022514 | alexey.orlov | B | Dec. 8, 2017, 12:40 p.m. | OK | GNU C11 | TESTS | 69 | 62 | 2662400 | 1700 | |
33591329 | 2465806616 | B | Dec. 24, 2017, 11:11 a.m. | OK | GNU C11 | TESTS | 69 | 62 | 2662400 | 1700 | |
33269051 | ILoveFancyRay | B | Dec. 15, 2017, 3:16 p.m. | OK | GNU C++11 | TESTS | 69 | 31 | 2252800 | 1700 | |
32682105 | Rajib_119 | B | Nov. 26, 2017, 4:49 p.m. | OK | GNU C++11 | TESTS | 69 | 31 | 2457600 | 1700 | |
32791365 | aj1 | B | Nov. 29, 2017, 10:02 p.m. | OK | GNU C++11 | TESTS | 69 | 31 | 2457600 | 1700 | |
33215452 | zuhiul | B | Dec. 13, 2017, 1:58 p.m. | OK | GNU C++11 | TESTS | 69 | 31 | 2457600 | 1700 | |
32784106 | ultoxtung | B | Nov. 29, 2017, 3:07 p.m. | OK | GNU C++11 | TESTS | 69 | 31 | 2867200 | 1700 | |
32751464 | Umi | B | Nov. 28, 2017, 1:22 p.m. | OK | GNU C++11 | TESTS | 69 | 31 | 2969600 | 1700 | |
32751406 | Annie2212 | B | Nov. 28, 2017, 1:20 p.m. | OK | GNU C++11 | TESTS | 69 | 31 | 3379200 | 1700 | |
54505220 | WOSHIGEPACHONG2 | B | May 23, 2019, 3:06 a.m. | OK | GNU C++11 | TESTS | 69 | 46 | 409600 | 1700 | |
40979060 | ReaLNero1 | B | July 30, 2018, 4:55 p.m. | OK | GNU C++11 | TESTS | 69 | 46 | 409600 | 1700 | |
69561759 | stratoes | B | Jan. 26, 2020, 10:53 a.m. | OK | GNU C++11 | TESTS | 69 | 46 | 819200 | 1700 | |
32700508 | naoya_t | B | Nov. 27, 2017, 5:28 a.m. | OK | GNU C++14 | TESTS | 69 | 31 | 14336000 | 1700 | |
33875404 | wanfeng_s | B | Jan. 3, 2018, 12:57 a.m. | OK | GNU C++14 | TESTS | 69 | 46 | 2252800 | 1700 | |
34534924 | am1tbh47 | B | Jan. 25, 2018, 3:59 a.m. | OK | GNU C++14 | TESTS | 69 | 46 | 2252800 | 1700 | |
35452110 | SJ99 | B | Feb. 18, 2018, 4:52 p.m. | OK | GNU C++14 | TESTS | 69 | 46 | 2252800 | 1700 | |
34731746 | TinTin122 | B | Jan. 31, 2018, 8:57 a.m. | OK | GNU C++14 | TESTS | 69 | 46 | 2252800 | 1700 | |
33081928 | colins | B | Dec. 10, 2017, 4:02 p.m. | OK | GNU C++14 | TESTS | 69 | 46 | 2252800 | 1700 | |
33070706 | HaabyHings | B | Dec. 10, 2017, 12:21 a.m. | OK | GNU C++14 | TESTS | 69 | 46 | 2252800 | 1700 | |
32999489 | zscc | B | Dec. 7, 2017, 11:52 a.m. | OK | GNU C++14 | TESTS | 69 | 46 | 2252800 | 1700 | |
34511995 | Antoine | B | Jan. 24, 2018, 9:53 a.m. | OK | GNU C++14 | TESTS | 69 | 46 | 2252800 | 1700 | |
33312641 | Lucky__Boy | B | Dec. 16, 2017, 3:38 p.m. | OK | GNU C++14 | TESTS | 69 | 46 | 2252800 | 1700 | |
54718203 | i_lower | B | May 27, 2019, 2:41 p.m. | OK | GNU C++17 | TESTS | 69 | 46 | 819200 | 1700 | |
41733322 | vjudge1 | B | Aug. 18, 2018, 12:38 a.m. | OK | GNU C++17 | TESTS | 69 | 46 | 819200 | 1700 | |
67501795 | Muskmelon_seed | B | Dec. 24, 2019, 5:08 a.m. | OK | GNU C++17 | TESTS | 69 | 61 | 1638400 | 1700 | |
51792249 | Mtaylor | B | March 24, 2019, 1:22 p.m. | OK | GNU C++17 | TESTS | 69 | 61 | 7987200 | 1700 | |
46209041 | g13 | B | Nov. 25, 2018, 4:12 p.m. | OK | GNU C++17 | TESTS | 69 | 62 | 409600 | 1700 | |
66615142 | yuhta | B | Dec. 11, 2019, 3:04 a.m. | OK | GNU C++17 | TESTS | 69 | 62 | 409600 | 1700 | |
55750965 | Baroudy | B | June 19, 2019, 12:44 p.m. | OK | GNU C++17 | TESTS | 69 | 62 | 409600 | 1700 | |
55554128 | Ahmed_Diab | B | June 14, 2019, 8:58 a.m. | OK | GNU C++17 | TESTS | 69 | 62 | 409600 | 1700 | |
48581036 | .tx | B | Jan. 19, 2019, 4:39 p.m. | OK | GNU C++17 | TESTS | 69 | 62 | 614400 | 1700 | |
38401684 | jiangyifan | B | May 18, 2018, 12:45 p.m. | OK | GNU C++17 | TESTS | 69 | 62 | 716800 | 1700 | |
68048820 | thisbeit | B | Jan. 1, 2020, 5:45 p.m. | OK | Java 11 | TESTS | 69 | 218 | 0 | 1700 | |
53226048 | prem_cse | B | April 24, 2019, 2:32 p.m. | OK | Java 8 | TESTS | 69 | 140 | 2457600 | 1700 | |
32924085 | cacophonix | B | Dec. 4, 2017, 3:09 p.m. | OK | Java 8 | TESTS | 69 | 140 | 20787200 | 1700 | |
32962607 | In_The_Name_Of_Love | B | Dec. 6, 2017, 5:58 a.m. | OK | Java 8 | TESTS | 69 | 140 | 20787200 | 1700 | |
32712356 | Musin | B | Nov. 27, 2017, 10:57 a.m. | OK | Java 8 | TESTS | 69 | 140 | 20787200 | 1700 | |
32991642 | Sagar_Savaliya | B | Dec. 7, 2017, 4:22 a.m. | OK | Java 8 | TESTS | 69 | 140 | 21094400 | 1700 | |
32906445 | cacophonix | B | Dec. 3, 2017, 7:16 p.m. | OK | Java 8 | TESTS | 69 | 155 | 20889600 | 1700 | |
68409017 | jenish9599 | B | Jan. 8, 2020, 4:13 p.m. | OK | Java 8 | TESTS | 69 | 156 | 0 | 1700 | |
32676899 | uwi | B | Nov. 26, 2017, 4:14 p.m. | OK | Java 8 | TESTS | 69 | 156 | 20684800 | 1700 | |
32693143 | coderbond007 | B | Nov. 26, 2017, 7:12 p.m. | OK | Java 8 | TESTS | 69 | 156 | 20787200 | 1700 | |
32680498 | Jeel_Vaishnav | B | Nov. 26, 2017, 4:36 p.m. | OK | Java 8 | TESTS | 69 | 170 | 21196800 | 1700 | |
45542371 | Coder_D | B | Nov. 10, 2018, 8:20 p.m. | OK | Mono C# | TESTS | 69 | 109 | 16076800 | 1700 | |
32756159 | tattosha_aptan | B | Nov. 28, 2017, 4:42 p.m. | OK | Mono C# | TESTS | 69 | 140 | 16588800 | 1700 | |
32856298 | og.kostya | B | Dec. 2, 2017, 11:30 a.m. | OK | MS C# | TESTS | 69 | 77 | 9728000 | 1700 | |
32683881 | mban259 | B | Nov. 26, 2017, 5:01 p.m. | OK | MS C# | TESTS | 69 | 93 | 20889600 | 1700 | |
32763799 | ac0222 | B | Nov. 29, 2017, 1:49 a.m. | OK | MS C# | TESTS | 69 | 124 | 28979200 | 1700 | |
32970666 | lionvs13 | B | Dec. 6, 2017, 9:25 a.m. | OK | MS C# | TESTS | 69 | 124 | 30617600 | 1700 | |
32711331 | fr0st | B | Nov. 27, 2017, 10:11 a.m. | OK | MS C# | TESTS | 69 | 139 | 33996800 | 1700 | |
32779227 | leonidvasilyev | B | Nov. 29, 2017, 11:39 a.m. | OK | MS C# | TESTS | 69 | 155 | 29798400 | 1700 | |
32755814 | leonidvasilyev | B | Nov. 28, 2017, 4:24 p.m. | OK | MS C# | TESTS | 69 | 155 | 34099200 | 1700 | |
32809231 | leonidvasilyev | B | Nov. 30, 2017, 3:14 p.m. | OK | MS C# | TESTS | 69 | 171 | 29798400 | 1700 | |
32809263 | leonidvasilyev | B | Nov. 30, 2017, 3:15 p.m. | OK | MS C# | TESTS | 69 | 171 | 29798400 | 1700 | |
33071603 | scorpiowf | B | Dec. 10, 2017, 2:47 a.m. | OK | MS C++ | TESTS | 69 | 46 | 2457600 | 1700 | |
32988865 | Loremon | B | Dec. 6, 2017, 11:06 p.m. | OK | MS C++ | TESTS | 69 | 46 | 2867200 | 1700 | |
32974862 | vjudge1 | B | Dec. 6, 2017, 12:14 p.m. | OK | MS C++ | TESTS | 69 | 46 | 2867200 | 1700 | |
34548974 | vjudge4 | B | Jan. 25, 2018, 2:20 p.m. | OK | MS C++ | TESTS | 69 | 46 | 2867200 | 1700 | |
33407049 | vjudge1 | B | Dec. 19, 2017, 12:02 p.m. | OK | MS C++ | TESTS | 69 | 46 | 3072000 | 1700 | |
32976868 | tyf0530 | B | Dec. 6, 2017, 1:20 p.m. | OK | MS C++ | TESTS | 69 | 46 | 3686400 | 1700 | |
32988870 | Loremon | B | Dec. 6, 2017, 11:06 p.m. | OK | MS C++ | TESTS | 69 | 46 | 3993600 | 1700 | |
57018626 | vjudge1 | B | July 14, 2019, 12:52 p.m. | OK | MS C++ | TESTS | 69 | 61 | 409600 | 1700 | |
57019594 | vjudge2 | B | July 14, 2019, 1:22 p.m. | OK | MS C++ | TESTS | 69 | 61 | 409600 | 1700 | |
32853422 | lzz513 | B | Dec. 2, 2017, 9:16 a.m. | OK | MS C++ | TESTS | 69 | 61 | 2867200 | 1700 | |
66136115 | AlleriaLi | B | Dec. 1, 2019, 12:18 p.m. | OK | MS C++ 2017 | TESTS | 69 | 124 | 1024000 | 1700 | |
54463221 | Still_Theory | B | May 21, 2019, 8:24 p.m. | OK | MS C++ 2017 | TESTS | 69 | 155 | 819200 | 1700 | |
66137482 | AlleriaLi | B | Dec. 1, 2019, 12:51 p.m. | OK | MS C++ 2017 | TESTS | 69 | 186 | 2662400 | 1700 | |
32697433 | Darooha | B | Nov. 27, 2017, 12:41 a.m. | OK | Ocaml | TESTS | 69 | 124 | 9932800 | 1700 | |
32732158 | Akulyat | B | Nov. 27, 2017, 5:56 p.m. | OK | PascalABC.NET | TESTS | 69 | 140 | 20684800 | 1700 | |
32681043 | tastymath75025 | B | Nov. 26, 2017, 4:41 p.m. | OK | PyPy 2 | TESTS | 69 | 171 | 37068800 | 1700 | |
32693873 | FatherofBenoni | B | Nov. 26, 2017, 7:34 p.m. | OK | PyPy 2 | TESTS | 69 | 249 | 29286400 | 1700 | |
32693990 | FatherofBenoni | B | Nov. 26, 2017, 7:39 p.m. | OK | PyPy 2 | TESTS | 69 | 249 | 29593600 | 1700 | |
32697471 | PBatch | B | Nov. 27, 2017, 12:47 a.m. | OK | PyPy 2 | TESTS | 69 | 358 | 34508800 | 1700 | |
32683125 | mdippel | B | Nov. 26, 2017, 4:57 p.m. | OK | PyPy 2 | TESTS | 69 | 654 | 33177600 | 1700 | |
32716644 | linsinn | B | Nov. 27, 2017, 1:45 p.m. | OK | PyPy 2 | TESTS | 69 | 655 | 34816000 | 1700 | |
33053269 | Aint_Stain | B | Dec. 9, 2017, 2:40 p.m. | OK | PyPy 3 | TESTS | 69 | 280 | 35020800 | 1700 | |
57120033 | mola.mola | B | July 16, 2019, midnight | OK | PyPy 3 | TESTS | 69 | 326 | 12595200 | 1700 | |
32858790 | yugle7 | B | Dec. 2, 2017, 1:12 p.m. | OK | PyPy 3 | TESTS | 69 | 389 | 36761600 | 1700 | |
32716553 | linsinn | B | Nov. 27, 2017, 1:42 p.m. | OK | PyPy 3 | TESTS | 69 | 717 | 36659200 | 1700 | |
32678826 | Lewin | B | Nov. 26, 2017, 4:27 p.m. | OK | Python 2 | TESTS | 69 | 327 | 17817600 | 1700 | |
32680626 | biltharesatyendra | B | Nov. 26, 2017, 4:37 p.m. | OK | Python 2 | TESTS | 69 | 358 | 13107200 | 1700 | |
32807788 | xlk | B | Nov. 30, 2017, 2:15 p.m. | OK | Python 2 | TESTS | 69 | 358 | 16179200 | 1700 | |
32694145 | WNG | B | Nov. 26, 2017, 7:46 p.m. | OK | Python 2 | TESTS | 69 | 373 | 11059200 | 1700 | |
38990133 | Ali_Pi | B | June 6, 2018, 9:42 a.m. | OK | Python 2 | TESTS | 69 | 499 | 5836800 | 1700 | |
37734400 | fromexptolog | B | April 29, 2018, 9:31 p.m. | OK | Python 2 | TESTS | 69 | 577 | 12083200 | 1700 | |
32682880 | ManasG | B | Nov. 26, 2017, 4:55 p.m. | OK | Python 2 | TESTS | 69 | 639 | 12697600 | 1700 | |
32690817 | holenet | B | Nov. 26, 2017, 5:55 p.m. | OK | Python 3 | TESTS | 69 | 249 | 15872000 | 1700 | |
32712740 | atryapa | B | Nov. 27, 2017, 11:13 a.m. | OK | Python 3 | TESTS | 69 | 327 | 15667200 | 1700 | |
32712834 | atryapa | B | Nov. 27, 2017, 11:17 a.m. | OK | Python 3 | TESTS | 69 | 327 | 15872000 | 1700 | |
32761608 | eugalt | B | Nov. 28, 2017, 9:49 p.m. | OK | Python 3 | TESTS | 69 | 343 | 14438400 | 1700 | |
32758861 | eugalt | B | Nov. 28, 2017, 7:08 p.m. | OK | Python 3 | TESTS | 69 | 343 | 14438400 | 1700 | |
32962474 | Vasiliy_48 | B | Dec. 6, 2017, 5:49 a.m. | OK | Python 3 | TESTS | 69 | 358 | 14438400 | 1700 | |
32759184 | eugalt | B | Nov. 28, 2017, 7:27 p.m. | OK | Python 3 | TESTS | 69 | 358 | 14438400 | 1700 | |
32758707 | eugalt | B | Nov. 28, 2017, 6:57 p.m. | OK | Python 3 | TESTS | 69 | 358 | 14438400 | 1700 | |
32757340 | eugalt | B | Nov. 28, 2017, 5:41 p.m. | OK | Python 3 | TESTS | 69 | 358 | 14438400 | 1700 | |
32859034 | yugle7 | B | Dec. 2, 2017, 1:22 p.m. | OK | Python 3 | TESTS | 69 | 373 | 14438400 | 1700 | |
32967664 | meteor | B | Dec. 6, 2017, 6:53 a.m. | OK | Rust | TESTS | 69 | 46 | 7168000 | 1700 | |
32694430 | hatoo | B | Nov. 26, 2017, 8 p.m. | OK | Rust | TESTS | 69 | 61 | 5632000 | 1700 | |
32967649 | meteor | B | Dec. 6, 2017, 6:52 a.m. | OK | Rust | TESTS | 69 | 62 | 8089600 | 1700 | |
32961196 | meteor | B | Dec. 6, 2017, 3:44 a.m. | OK | Rust | TESTS | 69 | 77 | 9728000 | 1700 | |
33573289 | sl0th | B | Dec. 23, 2017, 5:07 p.m. | OK | Rust | TESTS | 69 | 93 | 3584000 | 1700 | |
32711697 | Hillmouse | B | Nov. 27, 2017, 10:26 a.m. | OK | Rust | TESTS | 69 | 93 | 5120000 | 1700 | |
35454646 | suibaka | B | Feb. 18, 2018, 6:48 p.m. | OK | Rust | TESTS | 69 | 124 | 2048000 | 1700 | |
32834059 | limed | B | Dec. 1, 2017, 3:36 p.m. | OK | Scala | TESTS | 69 | 592 | 44441600 | 1700 |
Back to search problems