Codeforces Round 247 (Div. 2)

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
431 Codeforces Round 247 (Div. 2) FINISHED False 7200 336925804 May 21, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2444 ) D Random Task PROGRAMMING binary search bitmasks combinatorics dp math 2200

B'One day, after a difficult lecture a diligent student Sasha saw a graffitied desk in the classroom. She came closer and read: "Find such positive integer n, that among numbers n xe2 x80 x89+ xe2 x80 x891, n xe2 x80 x89+ xe2 x80 x892, ..., 2 xc2 xb7n there are exactly m numbers which binary representation contains exactly k digits one". The girl got interested in the task and she asked you to help her solve it. Sasha knows that you are afraid of large numbers, so she guaranteed that there is an answer that doesn 't exceed 1018. The first line contains two space-separated integers, m and k (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891018; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8964). Print the required number n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891018). If there are multiple answers, print any of them.'...

Tutorials

Editorial Codeforces Round #247 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
59349115 jcgzs D Aug. 23, 2019, 11:03 a.m. OK Clang++17 Diagnostics TESTS 65 46 0 2200
7014167 cpy D July 5, 2014, 6:28 a.m. OK D TESTS 65 30 102400 2200
10532963 AHTuTTuTyX D March 31, 2015, 12:22 p.m. OK Delphi TESTS 65 31 1740800 2200
10532957 AHTuTTuTyX D March 31, 2015, 12:20 p.m. OK Delphi TESTS 65 31 1740800 2200
6950783 phankhai D June 24, 2014, 5:28 a.m. OK FPC TESTS 65 15 0 2200
7855160 pqhuy98 D Sept. 19, 2014, 3:09 p.m. OK FPC TESTS 65 15 0 2200
7816612 ongvuacon D Sept. 17, 2014, 10:09 a.m. OK FPC TESTS 65 15 0 2200
7191320 DaibaNana D July 21, 2014, 6:15 a.m. OK FPC TESTS 65 15 0 2200
19496482 irevt D July 29, 2016, 4:43 p.m. OK FPC TESTS 65 15 102400 2200
32748815 AsahiKasugano D Nov. 28, 2017, 11:59 a.m. OK FPC TESTS 65 15 1638400 2200
32748780 KagamiharaNadeshiko D Nov. 28, 2017, 11:58 a.m. OK FPC TESTS 65 15 1638400 2200
12406392 igdor99 D Aug. 7, 2015, 7:44 p.m. OK FPC TESTS 65 30 0 2200
9007567 lazycatz D Dec. 7, 2014, 8:41 a.m. OK FPC TESTS 65 30 0 2200
6735340 vuonghy2442 D May 29, 2014, 3:03 p.m. OK FPC TESTS 65 30 0 2200
8344148 sr_k D Oct. 21, 2014, 4:18 p.m. OK GNU C TESTS 65 15 0 2200
6738651 vis10326 D May 30, 2014, 7:13 a.m. OK GNU C TESTS 65 15 102400 2200
35548084 samraat1 D Feb. 21, 2018, 1:06 p.m. OK GNU C TESTS 65 15 1945600 2200
35540360 vishalcross D Feb. 21, 2018, 7:24 a.m. OK GNU C TESTS 65 15 2048000 2200
35539578 V_GA D Feb. 21, 2018, 6:40 a.m. OK GNU C TESTS 65 15 2048000 2200
8343978 sr_k D Oct. 21, 2014, 4 p.m. OK GNU C TESTS 65 30 0 2200
35548043 samraat1 D Feb. 21, 2018, 1:05 p.m. OK GNU C TESTS 65 30 1945600 2200
35464312 sharvin2187 D Feb. 19, 2018, 7:30 a.m. OK GNU C TESTS 65 31 2048000 2200
38381528 Jonothor_Darry D May 17, 2018, 8:13 p.m. OK GNU C++ TESTS 65 15 0 2200
27177287 bhaag_milkha D May 17, 2017, 10:42 a.m. OK GNU C++ TESTS 65 15 0 2200
26834668 thevuong8000 D May 4, 2017, 12:47 p.m. OK GNU C++ TESTS 65 15 0 2200
21844089 collins D Oct. 28, 2016, 10:39 a.m. OK GNU C++ TESTS 65 15 0 2200
21843970 collins D Oct. 28, 2016, 10:32 a.m. OK GNU C++ TESTS 65 15 0 2200
21842101 chbug D Oct. 28, 2016, 8:38 a.m. OK GNU C++ TESTS 65 15 0 2200
21840005 bryant03 D Oct. 28, 2016, 6:06 a.m. OK GNU C++ TESTS 65 15 0 2200
21839334 chbug D Oct. 28, 2016, 5:14 a.m. OK GNU C++ TESTS 65 15 0 2200
21838705 594753969 D Oct. 28, 2016, 4:18 a.m. OK GNU C++ TESTS 65 15 0 2200
19597683 altruist D Aug. 3, 2016, 12:43 p.m. OK GNU C++ TESTS 65 15 0 2200
7452826 stanislav-morozov D Aug. 15, 2014, 11:38 a.m. OK GNU C++0x TESTS 65 15 0 2200
7926646 togatoga D Sept. 23, 2014, 12:39 p.m. OK GNU C++0x TESTS 65 15 0 2200
7360317 amanjain110893 D Aug. 6, 2014, 11:44 a.m. OK GNU C++0x TESTS 65 15 0 2200
6998729 wx2486 D July 2, 2014, 5:12 p.m. OK GNU C++0x TESTS 65 15 0 2200
6998721 wx2486 D July 2, 2014, 5:12 p.m. OK GNU C++0x TESTS 65 15 0 2200
6940513 Farimart D June 22, 2014, 4:33 a.m. OK GNU C++0x TESTS 65 15 0 2200
6869284 stan D June 12, 2014, 3 p.m. OK GNU C++0x TESTS 65 15 0 2200
6740276 mayukuner D May 30, 2014, 12:46 p.m. OK GNU C++0x TESTS 65 15 0 2200
6726687 shimomire yosupo assy D May 28, 2014, 11:07 a.m. OK GNU C++0x TESTS 65 15 0 2200
9789857 akashdeep D Feb. 10, 2015, 2:10 p.m. OK GNU C++0x TESTS 65 15 102400 2200
15566554 stdio2016 D Jan. 25, 2016, 4:15 a.m. OK GNU C11 TESTS 65 15 102400 2200
35520314 vishalcross D Feb. 20, 2018, 12:05 p.m. OK GNU C11 TESTS 65 15 1843200 2200
59874284 rainboy D Sept. 1, 2019, 9:34 p.m. OK GNU C11 TESTS 65 30 0 2200
30332989 Shawkivich D Sept. 14, 2017, 4:09 p.m. OK GNU C++11 TESTS 65 15 0 2200
30332972 Shawkivich D Sept. 14, 2017, 4:08 p.m. OK GNU C++11 TESTS 65 15 0 2200
29595421 Hamzqq9 D Aug. 19, 2017, 10:20 a.m. OK GNU C++11 TESTS 65 15 0 2200
27613570 AWCXV D June 6, 2017, 12:31 p.m. OK GNU C++11 TESTS 65 15 0 2200
27613378 vjudge5 D June 6, 2017, 12:22 p.m. OK GNU C++11 TESTS 65 15 0 2200
26882727 pkien D May 5, 2017, 2:28 p.m. OK GNU C++11 TESTS 65 15 0 2200
26882528 pkien D May 5, 2017, 2:18 p.m. OK GNU C++11 TESTS 65 15 0 2200
31166046 zzorz D Oct. 9, 2017, 11:49 a.m. OK GNU C++11 TESTS 65 15 0 2200
32348274 cartmancodes D Nov. 16, 2017, 6:18 a.m. OK GNU C++11 TESTS 65 15 0 2200
32348380 cartmancodes D Nov. 16, 2017, 6:27 a.m. OK GNU C++11 TESTS 65 15 0 2200
39413649 dothanhdatben100 D June 19, 2018, 2:20 p.m. OK GNU C++14 TESTS 65 15 0 2200
30182527 waynetuinfor D Sept. 7, 2017, 1:34 p.m. OK GNU C++14 TESTS 65 15 0 2200
30173703 StaticFlux D Sept. 7, 2017, 6:40 a.m. OK GNU C++14 TESTS 65 15 0 2200
29935009 boook D Aug. 31, 2017, 4:50 a.m. OK GNU C++14 TESTS 65 15 0 2200
29851802 j316chuck D Aug. 28, 2017, 6:07 p.m. OK GNU C++14 TESTS 65 15 0 2200
27795805 s1ddharth3 D June 15, 2017, 2:43 p.m. OK GNU C++14 TESTS 65 15 0 2200
27778192 yobro1 D June 14, 2017, 6:16 p.m. OK GNU C++14 TESTS 65 15 0 2200
32144934 MEMET_KAGAN_BILGILI D Nov. 8, 2017, 6:55 p.m. OK GNU C++14 TESTS 65 15 0 2200
48300937 brimix__ D Jan. 12, 2019, 4:52 p.m. OK GNU C++14 TESTS 65 15 0 2200
39516523 alfadel D June 22, 2018, 12:34 p.m. OK GNU C++14 TESTS 65 15 0 2200
39021651 customer101 D June 7, 2018, 12:46 p.m. OK GNU C++17 TESTS 65 15 102400 2200
39408714 thenymphsofdelphi D June 19, 2018, 11:28 a.m. OK GNU C++17 TESTS 65 30 0 2200
65155473 vjudge5 D Nov. 16, 2019, 9:09 a.m. OK GNU C++17 TESTS 65 30 0 2200
59356656 vjudge3 D Aug. 23, 2019, 1:46 p.m. OK GNU C++17 TESTS 65 30 0 2200
58240217 _Samir D Aug. 3, 2019, 11:46 p.m. OK GNU C++17 TESTS 65 30 0 2200
40203861 Ashishgup D July 11, 2018, 2:14 p.m. OK GNU C++17 TESTS 65 30 102400 2200
65923428 Bohun D Nov. 28, 2019, 5:14 p.m. OK GNU C++17 TESTS 65 30 102400 2200
36897406 dhruvsomani D April 3, 2018, 9:14 a.m. OK GNU C++17 TESTS 65 30 3379200 2200
36897435 dhruvsomani D April 3, 2018, 9:16 a.m. OK GNU C++17 TESTS 65 30 3379200 2200
68972186 Koosha_Mv D Jan. 17, 2020, 7:26 a.m. OK GNU C++17 TESTS 65 31 0 2200
68568632 jakejase2 D Jan. 11, 2020, 12:01 a.m. OK Java 11 TESTS 65 186 0 2200
8048396 sweiss D Oct. 1, 2014, 2:44 p.m. OK Java 7 TESTS 65 77 0 2200
10103206 alibaba D March 2, 2015, 3:52 a.m. OK Java 7 TESTS 65 78 0 2200
10763070 Hari_Sridhar D April 18, 2015, 2:19 a.m. OK Java 7 TESTS 65 93 0 2200
10161109 vjudge1 D March 5, 2015, 1:09 p.m. OK Java 7 TESTS 65 93 0 2200
7861709 nickbuelich D Sept. 20, 2014, 3:56 a.m. OK Java 7 TESTS 65 93 0 2200
7411604 Naitonium D Aug. 10, 2014, 7:15 a.m. OK Java 7 TESTS 65 93 0 2200
10799792 Sandmann D April 20, 2015, 3:22 p.m. OK Java 7 TESTS 65 93 47616000 2200
6977740 mohamednabil00000 D June 29, 2014, 12:01 a.m. OK Java 7 TESTS 65 108 0 2200
10161096 Yukii D March 5, 2015, 1:08 p.m. OK Java 7 TESTS 65 109 0 2200
14186701 akdent D Nov. 10, 2015, 3:46 p.m. OK Java 7 TESTS 65 109 11366400 2200
27452445 U_Square D May 30, 2017, 4:51 p.m. OK Java 8 TESTS 65 109 0 2200
12694941 fiter D Aug. 25, 2015, 11:31 a.m. OK Java 8 TESTS 65 109 0 2200
10037739 essar D Feb. 26, 2015, 9:16 p.m. OK Java 8 TESTS 65 109 0 2200
55496642 ZeyadKhattab D June 12, 2019, 12:54 p.m. OK Java 8 TESTS 65 124 0 2200
48702103 mTvTm D Jan. 22, 2019, 3:25 a.m. OK Java 8 TESTS 65 124 0 2200
45544618 Ahmed_Diab D Nov. 10, 2018, 10:27 p.m. OK Java 8 TESTS 65 124 0 2200
45544593 Ahmed_Diab D Nov. 10, 2018, 10:25 p.m. OK Java 8 TESTS 65 124 0 2200
41824924 hongquanntct D Aug. 19, 2018, 11:33 a.m. OK Java 8 TESTS 65 124 0 2200
27425373 kunalk D May 29, 2017, 8:03 a.m. OK Java 8 TESTS 65 124 0 2200
20551507 donli D Sept. 12, 2016, 3:12 p.m. OK Java 8 TESTS 65 124 0 2200
10033407 camypaper D Feb. 26, 2015, 2:20 p.m. OK MS C# TESTS 65 62 102400 2200
16682129 Mem D March 12, 2016, 9:23 p.m. OK MS C# TESTS 65 62 2560000 2200
6722333 ivailok1 D May 27, 2014, 3:17 p.m. OK MS C# TESTS 65 109 204800 2200
7237861 iblacksun D July 25, 2014, 4:35 a.m. OK MS C++ TESTS 65 15 0 2200
15065718 filthycasual D Dec. 28, 2015, 5:54 a.m. OK MS C++ TESTS 65 15 0 2200
8552458 F.H.N.98 D Nov. 4, 2014, 10:23 p.m. OK MS C++ TESTS 65 15 0 2200
7204511 glebushka98 D July 22, 2014, 7:32 p.m. OK MS C++ TESTS 65 15 0 2200
7198098 rtriangle D July 21, 2014, 9:48 p.m. OK MS C++ TESTS 65 15 0 2200
7109309 Vercingetorix D July 15, 2014, 1:17 p.m. OK MS C++ TESTS 65 15 0 2200
7073846 WYOCMWYH D July 13, 2014, 11:35 a.m. OK MS C++ TESTS 65 15 0 2200
6993755 72VanVector_SevNTU D July 1, 2014, 7:48 p.m. OK MS C++ TESTS 65 15 0 2200
6724570 tangchuanxin D May 28, 2014, 3:13 a.m. OK MS C++ TESTS 65 15 0 2200
11532236 GoToCoding D June 11, 2015, 11:29 a.m. OK MS C++ TESTS 65 15 102400 2200
61682698 zhzhsan D Oct. 2, 2019, 2:11 a.m. OK MS C++ 2017 TESTS 65 31 102400 2200
63670136 csu-caiji D Oct. 28, 2019, 4:36 p.m. OK MS C++ 2017 TESTS 65 31 307200 2200
63763900 vjudge1 D Oct. 30, 2019, 5:22 a.m. OK MS C++ 2017 TESTS 65 31 409600 2200
45511743 Mulx10 D Nov. 10, 2018, 1:24 p.m. OK PyPy 2 TESTS 65 156 2764800 2200
14337017 carlostrevino D Nov. 19, 2015, 5:30 a.m. OK Python 2 TESTS 65 46 0 2200
10727693 jadesym D April 15, 2015, 7:43 a.m. OK Python 2 TESTS 65 61 0 2200
7350531 synapse D Aug. 5, 2014, 8:25 a.m. OK Python 2 TESTS 65 61 0 2200
18054089 vikrambishnoi D May 24, 2016, 11:03 a.m. OK Python 2 TESTS 65 62 4812800 2200
35871781 ______u______ D March 3, 2018, 6:58 a.m. OK Python 2 TESTS 65 77 4608000 2200
35871536 ______n______ D March 3, 2018, 6:52 a.m. OK Python 2 TESTS 65 77 4608000 2200
35870957 _____i_____ D March 3, 2018, 6:40 a.m. OK Python 2 TESTS 65 77 4608000 2200
35870951 _____k_____ D March 3, 2018, 6:40 a.m. OK Python 2 TESTS 65 77 4608000 2200
35862234 ______k______ D March 2, 2018, 10:21 p.m. OK Python 2 TESTS 65 77 4608000 2200
35862215 ______h______ D March 2, 2018, 10:21 p.m. OK Python 2 TESTS 65 77 4608000 2200
10727981 jadesym D April 15, 2015, 8:12 a.m. OK Python 3 TESTS 65 61 0 2200
10728038 jadesym D April 15, 2015, 8:18 a.m. OK Python 3 TESTS 65 62 0 2200
10727977 jadesym D April 15, 2015, 8:12 a.m. OK Python 3 TESTS 65 62 0 2200
10727095 jadesym D April 15, 2015, 6:26 a.m. OK Python 3 TESTS 65 62 0 2200
10728090 jadesym D April 15, 2015, 8:22 a.m. OK Python 3 TESTS 65 77 0 2200
6720375 rasto D May 27, 2014, 9:29 a.m. OK Python 3 TESTS 65 77 409600 2200
26676423 TISparta D April 26, 2017, 5:51 a.m. OK Python 3 TESTS 65 93 5529600 2200
59275065 vjudge4 D Aug. 22, 2019, 2:18 p.m. OK Python 3 TESTS 65 109 307200 2200
55174913 rishabh.ranjan D June 5, 2019, 6:13 p.m. OK Python 3 TESTS 65 233 4300800 2200

remove filters

Back to search problems