MemSQL start[c]up Round 1

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
325 MemSQL start[c]up Round 1 FINISHED False 7200 363963597 July 13, 2013, 5 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1583 ) B Stadium and Games PROGRAMMING binary search math 1800

B'Daniel is organizing a football tournament. He has come up with the following tournament format: For example, if there were 20 teams initially, they would begin by playing 10 games. So, 10 teams would be eliminated, and the remaining 10 would play 5 games. Then the remaining 5 teams would play 10 games in a round robin tournament. In total there would be 10+5+10=25 games. Daniel has already booked the stadium for n games. Help him to determine how many teams he should invite so that the tournament needs exactly n games. You should print all possible numbers of teams that will yield exactly n games in ascending order, or -1 if there are no such numbers. The first line contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891018), the number of games that should be played. Please, do not use the %lld specifier to read or write 64-bit integers in xd0 xa1++. It is preferred to use the cin, cout streams or the %I64d specifier. Print all possible numbers of invited teams in ascending order, one per line. If exactly n games cannot be played, output one number: -1.'...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
55826043 rr_ B June 20, 2019, 10:54 a.m. OK D TESTS 123 62 0 1800
4080948 ruban B July 16, 2013, 12:50 p.m. OK Delphi TESTS 123 15 0 1800
4063897 IgorL B July 13, 2013, 6:22 p.m. OK Delphi TESTS 123 15 204800 1800
4065561 MrJigan1488 B July 13, 2013, 9:42 p.m. OK Delphi TESTS 123 15 31846400 1800
4065609 MrJigan1488 B July 13, 2013, 9:48 p.m. OK Delphi TESTS 123 15 31846400 1800
4133973 AleksanderBalobanov B July 22, 2013, 8:43 a.m. OK Delphi TESTS 123 78 102400 1800
4074185 Misha100896 B July 15, 2013, 8:55 a.m. OK Delphi TESTS 123 125 0 1800
4069877 3---Dd8 B July 14, 2013, 1:30 p.m. OK FPC TESTS 123 15 0 1800
4067148 y.kemaev B July 14, 2013, 5:42 a.m. OK FPC TESTS 123 15 0 1800
4063940 ZeRoGerc B July 13, 2013, 6:23 p.m. OK FPC TESTS 123 15 0 1800
4144517 herstruboy B July 24, 2013, 4:23 a.m. OK FPC TESTS 123 15 0 1800
4067925 Nik_Storm_2010 B July 14, 2013, 7:48 a.m. OK FPC TESTS 123 15 102400 1800
4171977 Omelianenko B July 26, 2013, 11:58 p.m. OK FPC TESTS 123 30 0 1800
9391384 balsa_knez B Jan. 9, 2015, 11:23 a.m. OK FPC TESTS 123 30 102400 1800
4980674 pal3 B Nov. 3, 2013, 4:06 p.m. OK FPC TESTS 123 30 102400 1800
4067056 trongdat3011 B July 14, 2013, 5:20 a.m. OK FPC TESTS 123 31 102400 1800
7201176 GiannisAntetokounmpo B July 22, 2014, 9:50 a.m. OK FPC TESTS 123 62 0 1800
4125105 rasinhas B July 21, 2013, 1:33 a.m. OK GNU C++ TESTS 123 15 0 1800
4112352 error202 B July 20, 2013, 1:23 p.m. OK GNU C++ TESTS 123 15 0 1800
4107924 Scau-Ly B July 19, 2013, 4:56 p.m. OK GNU C++ TESTS 123 15 0 1800
4107329 ddyyxx B July 19, 2013, 1:57 p.m. OK GNU C++ TESTS 123 15 0 1800
4111859 s0en1it B July 20, 2013, 11:51 a.m. OK GNU C++ TESTS 123 15 0 1800
4166197 123qws B July 26, 2013, 1:25 a.m. OK GNU C++ TESTS 123 15 0 1800
4138757 emotionles B July 23, 2013, 4:38 a.m. OK GNU C++ TESTS 123 15 0 1800
4135688 Fcdkbear B July 22, 2013, 1:02 p.m. OK GNU C++ TESTS 123 15 0 1800
4131089 sping128 B July 21, 2013, 9:05 p.m. OK GNU C++ TESTS 123 15 0 1800
4127484 1004111223 B July 21, 2013, 8:11 a.m. OK GNU C++ TESTS 123 15 0 1800
4063712 sysulby B July 13, 2013, 6:16 p.m. OK GNU C++0x TESTS 123 15 0 1800
4076479 diego_v1 B July 15, 2013, 3:46 p.m. OK GNU C++0x TESTS 123 15 0 1800
4076432 diego_v1 B July 15, 2013, 3:36 p.m. OK GNU C++0x TESTS 123 15 0 1800
4076311 ZLSYMDJ B July 15, 2013, 3:15 p.m. OK GNU C++0x TESTS 123 15 0 1800
4070968 yermak0v B July 14, 2013, 7:13 p.m. OK GNU C++0x TESTS 123 15 0 1800
4069460 PeterTong97 B July 14, 2013, 12:02 p.m. OK GNU C++0x TESTS 123 15 0 1800
4069054 A_Le_K B July 14, 2013, 10:42 a.m. OK GNU C++0x TESTS 123 15 0 1800
4067585 2011330300713 B July 14, 2013, 6:55 a.m. OK GNU C++0x TESTS 123 15 0 1800
4145241 wanbo B July 24, 2013, 7:22 a.m. OK GNU C++0x TESTS 123 15 0 1800
4067556 2011330300713 B July 14, 2013, 6:52 a.m. OK GNU C++0x TESTS 123 15 0 1800
25972165 magieNoire B March 31, 2017, 9:05 a.m. OK GNU C11 TESTS 123 30 1945600 1800
19107754 Snowdrop B July 14, 2016, 12:44 p.m. OK GNU C++11 TESTS 123 30 0 1800
22415941 i1uxa B Nov. 23, 2016, 4:16 a.m. OK GNU C++11 TESTS 123 30 0 1800
15628662 OmarHashim B Jan. 28, 2016, 12:26 p.m. OK GNU C++11 TESTS 123 30 0 1800
15417250 Fyodor B Jan. 17, 2016, 5:18 p.m. OK GNU C++11 TESTS 123 30 0 1800
15070394 shubhamgoyal__ B Dec. 28, 2015, 12:26 p.m. OK GNU C++11 TESTS 123 30 0 1800
15000401 fengsuiyan B Dec. 25, 2015, 9:34 a.m. OK GNU C++11 TESTS 123 30 0 1800
13133653 vjudge1 B Sept. 21, 2015, 11:42 p.m. OK GNU C++11 TESTS 123 30 0 1800
12390635 JohStraat B Aug. 6, 2015, 3:09 p.m. OK GNU C++11 TESTS 123 30 0 1800
11535205 shadow_hunter B June 11, 2015, 3:40 p.m. OK GNU C++11 TESTS 123 30 0 1800
34689227 Roberto41 B Jan. 29, 2018, 7:44 p.m. OK GNU C++11 TESTS 123 30 2048000 1800
26878599 harshini1998 B May 5, 2017, 10:59 a.m. OK GNU C++14 TESTS 123 30 0 1800
22289594 paruki B Nov. 17, 2016, 1:38 p.m. OK GNU C++14 TESTS 123 30 0 1800
31924840 waynetuinfor B Oct. 31, 2017, 2:47 p.m. OK GNU C++14 TESTS 123 30 0 1800
30375832 LiChenKoh B Sept. 16, 2017, 4:03 a.m. OK GNU C++14 TESTS 123 30 0 1800
30490689 Vercingetorix B Sept. 19, 2017, 7:35 a.m. OK GNU C++14 TESTS 123 30 0 1800
34077558 vjudge5 B Jan. 10, 2018, 9:20 p.m. OK GNU C++14 TESTS 123 30 1945600 1800
33853987 mredigonda B Jan. 1, 2018, 7:43 p.m. OK GNU C++14 TESTS 123 30 1945600 1800
33246913 brimix__ B Dec. 14, 2017, 5:23 p.m. OK GNU C++14 TESTS 123 30 1945600 1800
34509833 vjudge4 B Jan. 24, 2018, 8:39 a.m. OK GNU C++14 TESTS 123 30 1945600 1800
34492494 KlzX B Jan. 23, 2018, 6:21 p.m. OK GNU C++14 TESTS 123 30 1945600 1800
65790206 Ashishgup B Nov. 26, 2019, 9:40 p.m. OK GNU C++17 TESTS 123 62 0 1800
68775814 kazuki08 B Jan. 14, 2020, 1:24 p.m. OK GNU C++17 TESTS 123 62 0 1800
67610642 ujjk29 B Dec. 25, 2019, 3:15 p.m. OK GNU C++17 TESTS 123 62 0 1800
67018773 davooddkareshki B Dec. 16, 2019, 12:19 p.m. OK GNU C++17 TESTS 123 62 0 1800
67011457 amiralisalimi B Dec. 16, 2019, 10 a.m. OK GNU C++17 TESTS 123 62 0 1800
54838224 Ghost0fSparta B May 30, 2019, 11:43 a.m. OK GNU C++17 TESTS 123 62 0 1800
54353804 yuhta B May 18, 2019, 4:25 p.m. OK GNU C++17 TESTS 123 62 0 1800
52499309 ivan100sic B April 8, 2019, 3:15 p.m. OK GNU C++17 TESTS 123 62 0 1800
46409928 vjudge1 B Nov. 30, 2018, 4:33 p.m. OK GNU C++17 TESTS 123 62 0 1800
43822249 zhuomu B Oct. 5, 2018, 9:48 a.m. OK GNU C++17 TESTS 123 62 0 1800
4279718 svilen B Aug. 14, 2013, 11:57 p.m. OK Go TESTS 123 62 716800 1800
4275175 svilen B Aug. 14, 2013, 12:12 a.m. OK Go TESTS 123 62 819200 1800
4063313 autotaker B July 13, 2013, 6:05 p.m. OK Haskell TESTS 123 15 0 1800
4061801 winger B July 13, 2013, 5:25 p.m. OK Java 6 TESTS 123 93 0 1800
4061783 mkirsche B July 13, 2013, 5:25 p.m. OK Java 6 TESTS 123 93 0 1800
4061439 uwi B July 13, 2013, 5:18 p.m. OK Java 6 TESTS 123 93 0 1800
4067163 BryantMark B July 14, 2013, 5:46 a.m. OK Java 6 TESTS 123 93 2252800 1800
4062838 slycelote B July 13, 2013, 5:51 p.m. OK Java 6 TESTS 123 93 2252800 1800
4063698 gilesg B July 13, 2013, 6:16 p.m. OK Java 6 TESTS 123 93 2355200 1800
4062638 dusty.and.rusty B July 13, 2013, 5:45 p.m. OK Java 6 TESTS 123 93 2355200 1800
4061629 xiaowuc1 B July 13, 2013, 5:22 p.m. OK Java 6 TESTS 123 93 2355200 1800
4068921 Lapenkov B July 14, 2013, 10:12 a.m. OK Java 6 TESTS 123 93 2457600 1800
4061285 Cepera B July 13, 2013, 5:15 p.m. OK Java 6 TESTS 123 109 0 1800
4067011 vsb B July 14, 2013, 5:03 a.m. OK Java 7 TESTS 123 78 0 1800
4065694 Tifuera B July 13, 2013, 10:01 p.m. OK Java 7 TESTS 123 78 0 1800
4061093 Petr B July 13, 2013, 5:12 p.m. OK Java 7 TESTS 123 78 0 1800
4100827 PolarNick B July 18, 2013, 7:18 p.m. OK Java 7 TESTS 123 93 0 1800
4081321 qwerty787788 B July 16, 2013, 2:19 p.m. OK Java 7 TESTS 123 93 0 1800
4071030 NiceDay B July 14, 2013, 7:32 p.m. OK Java 7 TESTS 123 93 0 1800
4063164 svm11 B July 13, 2013, 6:01 p.m. OK Java 7 TESTS 123 93 0 1800
4063065 SergeyLazarev B July 13, 2013, 5:58 p.m. OK Java 7 TESTS 123 93 0 1800
4062339 Egor B July 13, 2013, 5:37 p.m. OK Java 7 TESTS 123 93 0 1800
4062156 Monyura B July 13, 2013, 5:33 p.m. OK Java 7 TESTS 123 93 0 1800
47338510 KulikAlex B Dec. 21, 2018, 4:13 p.m. OK Java 8 TESTS 123 248 0 1800
10521960 ralonso B March 30, 2015, 6:22 a.m. OK Java 8 TESTS 123 248 0 1800
9428252 alibaba B Jan. 14, 2015, 8:52 a.m. OK Java 8 TESTS 123 280 0 1800
11181881 I_love_Hoang_Yen B May 20, 2015, 7:43 p.m. OK Java 8 TESTS 123 310 0 1800
42682189 bhishma B Sept. 8, 2018, 5:04 p.m. OK Java 8 TESTS 123 404 0 1800
42682022 bhishma B Sept. 8, 2018, 4:59 p.m. OK Java 8 TESTS 123 496 0 1800
40840480 vjudge4 B July 27, 2018, 9:21 a.m. OK Java 8 TESTS 123 498 0 1800
6829891 zyt144 B June 7, 2014, 5:22 a.m. OK Java 8 TESTS 123 652 0 1800
4066050 Cornelius B July 13, 2013, 11:31 p.m. OK MS C# TESTS 123 46 102400 1800
4066044 Cornelius B July 13, 2013, 11:29 p.m. OK MS C# TESTS 123 46 102400 1800
4066057 Cornelius B July 13, 2013, 11:33 p.m. OK MS C# TESTS 123 46 204800 1800
4061853 chokudai B July 13, 2013, 5:27 p.m. OK MS C# TESTS 123 62 204800 1800
4069675 Guliash B July 14, 2013, 12:44 p.m. OK MS C# TESTS 123 62 409600 1800
4069204 marat.snowbear B July 14, 2013, 11:12 a.m. OK MS C# TESTS 123 62 2150400 1800
4062175 it4.kp B July 13, 2013, 5:33 p.m. OK MS C# TESTS 123 62 21811200 1800
4068411 danielcheng.cn B July 14, 2013, 8:54 a.m. OK MS C# TESTS 123 78 614400 1800
4061453 bayleef B July 13, 2013, 5:18 p.m. OK MS C# TESTS 123 78 614400 1800
4069189 marat.snowbear B July 14, 2013, 11:10 a.m. OK MS C# TESTS 123 78 2150400 1800
4159591 P___ B July 24, 2013, 11:29 p.m. OK MS C++ TESTS 123 15 0 1800
4110591 mylyanyk.ivan B July 20, 2013, 8:21 a.m. OK MS C++ TESTS 123 15 0 1800
4070417 Mark_tven B July 14, 2013, 4:03 p.m. OK MS C++ TESTS 123 15 0 1800
4070255 tomas.svab B July 14, 2013, 3:01 p.m. OK MS C++ TESTS 123 15 0 1800
4069784 dinarisio B July 14, 2013, 1:08 p.m. OK MS C++ TESTS 123 15 0 1800
4068974 felix B July 14, 2013, 10:23 a.m. OK MS C++ TESTS 123 15 0 1800
4068869 filo B July 14, 2013, 10:02 a.m. OK MS C++ TESTS 123 15 0 1800
4068173 proVIDec B July 14, 2013, 8:20 a.m. OK MS C++ TESTS 123 15 0 1800
4067075 gridnevvvit B July 14, 2013, 5:26 a.m. OK MS C++ TESTS 123 15 0 1800
4066892 Elun B July 14, 2013, 4:26 a.m. OK MS C++ TESTS 123 15 0 1800
17294508 anh1l1ator B April 12, 2016, 7:14 p.m. OK PyPy 2 TESTS 123 156 512000 1800
17294499 anh1l1ator B April 12, 2016, 7:14 p.m. OK PyPy 2 TESTS 123 186 512000 1800
24584192 shangtai B Feb. 11, 2017, 7:19 a.m. OK PyPy 2 TESTS 123 248 23142400 1800
41156549 nishank.suresh B Aug. 3, 2018, 12:35 p.m. OK PyPy 3 TESTS 123 280 204800 1800
4065588 stan B July 13, 2013, 9:45 p.m. OK Python 2 TESTS 123 46 0 1800
4067606 lyubimov.denis B July 14, 2013, 7:03 a.m. OK Python 2 TESTS 123 46 307200 1800
4071939 apia B July 15, 2013, 2:02 a.m. OK Python 2 TESTS 123 62 0 1800
4071097 uc-nuts B July 14, 2013, 7:54 p.m. OK Python 2 TESTS 123 62 0 1800
4070984 quicksilver B July 14, 2013, 7:17 p.m. OK Python 2 TESTS 123 62 0 1800
4070950 sankear B July 14, 2013, 7:06 p.m. OK Python 2 TESTS 123 62 0 1800
4070926 swissknife007 B July 14, 2013, 6:57 p.m. OK Python 2 TESTS 123 62 0 1800
4069429 sparshgunner12 B July 14, 2013, 11:55 a.m. OK Python 2 TESTS 123 62 0 1800
4068975 AHTuTTuTyX B July 14, 2013, 10:23 a.m. OK Python 2 TESTS 123 62 0 1800
4068301 QuantumKnight B July 14, 2013, 8:38 a.m. OK Python 2 TESTS 123 62 0 1800
4069554 tomlau B July 14, 2013, 12:20 p.m. OK Python 3 TESTS 123 78 102400 1800
4061695 komarov B July 13, 2013, 5:23 p.m. OK Python 3 TESTS 123 78 102400 1800
4076933 m1_k3 B July 15, 2013, 6:06 p.m. OK Python 3 TESTS 123 93 0 1800
4082795 nurzhands B July 16, 2013, 10:02 p.m. OK Python 3 TESTS 123 93 102400 1800
4069064 tomlau B July 14, 2013, 10:45 a.m. OK Python 3 TESTS 123 93 102400 1800
4066135 yejinru B July 14, 2013, 12:08 a.m. OK Python 3 TESTS 123 93 102400 1800
4065713 izban B July 13, 2013, 10:05 p.m. OK Python 3 TESTS 123 93 102400 1800
4063634 arosusti B July 13, 2013, 6:14 p.m. OK Python 3 TESTS 123 93 102400 1800
4063039 smx B July 13, 2013, 5:57 p.m. OK Python 3 TESTS 123 93 102400 1800
4061724 anton B July 13, 2013, 5:24 p.m. OK Python 3 TESTS 123 93 102400 1800
4065876 stas_sl B July 13, 2013, 10:42 p.m. OK Ruby TESTS 123 46 0 1800
4065698 takapt B July 13, 2013, 10:02 p.m. OK Ruby TESTS 123 46 0 1800
4066028 stas_sl B July 13, 2013, 11:23 p.m. OK Ruby TESTS 123 62 102400 1800
4065735 stas_sl B July 13, 2013, 10:10 p.m. OK Ruby TESTS 123 62 102400 1800
4065573 stas_sl B July 13, 2013, 9:43 p.m. OK Ruby TESTS 123 62 102400 1800
4065230 Jughead B July 13, 2013, 6:59 p.m. OK Ruby TESTS 123 62 102400 1800
4061536 watashi B July 13, 2013, 5:20 p.m. OK Ruby TESTS 123 93 102400 1800
4064729 VehicleOfPuzzle B July 13, 2013, 6:48 p.m. OK Ruby TESTS 123 171 102400 1800
4063825 limed B July 13, 2013, 6:20 p.m. OK Scala TESTS 123 421 204800 1800

remove filters

Back to search problems