Codeforces Round 125 (Div. 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
198 Codeforces Round 125 (Div. 1) FINISHED False 7200 397492186 June 22, 2012, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3176 ) A About Bacteria PROGRAMMING implementation math 1700

B"Qwerty the Ranger took up a government job and arrived on planet Mars. He should stay in the secret lab and conduct some experiments on bacteria that have funny and abnormal properties. The job isn't difficult, but the salary is high. At the beginning of the first experiment there is a single bacterium in the test tube. Every second each bacterium in the test tube divides itself into k bacteria. After that some abnormal effects create b more bacteria in the test tube. Thus, if at the beginning of some second the test tube had x bacteria, then at the end of the second it will have kx xe2 x80 x89+ xe2 x80 x89b bacteria. The experiment showed that after n seconds there were exactly z bacteria and the experiment ended at this point. For the second experiment Qwerty is going to sterilize the test tube and put there t bacteria. He hasn't started the experiment yet but he already wonders, how many seconds he will need to grow at least z bacteria. The ranger thinks that the bacteria will divide by the same rule as in the first experiment. Help Qwerty and find the minimum number of seconds needed to get a tube with at least z bacteria in the second experiment. The first line contains four space-separated integers k, b, n and t (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k, xe2 x80 x89b, xe2 x80 x89n, xe2 x80 x89t xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106) -- the parameters of bacterial growth, the time Qwerty needed to grow z bacteria in the first experiment and the initial number of bacteria in the second experiment, correspondingly. Print a single number -- the minimum number of seconds Qwerty needs to grow at least z bacteria in the tube."...

Tutorials

Solutions for Codeforces Round #125

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
2100897 vilcheuski A Sept. 6, 2012, 4:57 p.m. OK Delphi TESTS 114 30 8908800 1700
1821375 ruban A June 22, 2012, 6:11 p.m. OK Delphi TESTS 114 30 9420800 1700
1822040 Misha100896 A June 22, 2012, 7:21 p.m. OK Delphi TESTS 114 30 9420800 1700
1814240 tourist A June 22, 2012, 3:37 p.m. OK Delphi TESTS 114 30 9420800 1700
1830275 Ramp A June 24, 2012, 6:15 p.m. OK Delphi TESTS 114 30 9420800 1700
1824619 Progerr A June 23, 2012, 6:10 p.m. OK Delphi TESTS 114 30 9523200 1700
1821907 Rimdalf A June 22, 2012, 6:57 p.m. OK Delphi TESTS 114 30 9523200 1700
1814840 Frommi A June 22, 2012, 3:44 p.m. OK Delphi TESTS 114 30 9523200 1700
1823775 BTix A June 23, 2012, 10:58 a.m. OK Delphi TESTS 114 50 9523200 1700
1836110 AleksanderBalobanov A June 28, 2012, 9:52 a.m. OK Delphi TESTS 114 50 9523200 1700
2767652 Anastasiya.Zhyr A Dec. 14, 2012, 6:54 p.m. OK FPC TESTS 114 15 102400 1700
4214302 Nik_Storm_2010 A Aug. 1, 2013, 1:57 p.m. OK FPC TESTS 114 30 0 1700
1822875 waterkid A June 23, 2012, 3:13 a.m. OK FPC TESTS 114 30 1228800 1700
1918570 songsymbol A July 21, 2012, 1:35 a.m. OK FPC TESTS 114 30 1228800 1700
1825497 thongnon1996 A June 24, 2012, 1:44 p.m. OK FPC TESTS 114 30 1228800 1700
1824877 scorpion A June 23, 2012, 9:36 p.m. OK FPC TESTS 114 30 1228800 1700
1821952 Recus A June 22, 2012, 7:03 p.m. OK FPC TESTS 114 30 1228800 1700
1814518 ts09 A June 22, 2012, 3:40 p.m. OK FPC TESTS 114 30 1228800 1700
1823686 SccsAtmtn A June 23, 2012, 10:10 a.m. OK FPC TESTS 114 30 1331200 1700
2731832 Seriy_Vol4ishe_ A Dec. 8, 2012, 8:58 p.m. OK FPC TESTS 114 31 0 1700
4039674 nour_galaby A July 8, 2013, 4:44 p.m. OK GNU C TESTS 114 15 0 1700
4035589 Zaafarany A July 7, 2013, 4:44 p.m. OK GNU C TESTS 114 15 0 1700
4007544 akram71093 A July 3, 2013, 5:03 p.m. OK GNU C TESTS 114 15 0 1700
3807766 zshf1zhang A May 31, 2013, 3:08 p.m. OK GNU C TESTS 114 15 0 1700
3805256 zshf1zhang A May 31, 2013, 4:07 a.m. OK GNU C TESTS 114 15 0 1700
3805115 zshf1zhang A May 31, 2013, 3:28 a.m. OK GNU C TESTS 114 15 0 1700
3012482 vjudge1 A Jan. 26, 2013, 2:13 p.m. OK GNU C TESTS 114 15 0 1700
9705146 Hamada14 A Feb. 3, 2015, 6:34 p.m. OK GNU C TESTS 114 30 0 1700
9690822 gehad_fathy A Feb. 2, 2015, 7:35 p.m. OK GNU C TESTS 114 30 0 1700
9626224 mOhameDaTef A Jan. 30, 2015, 12:34 p.m. OK GNU C TESTS 114 30 0 1700
4028198 Hamid_36 A July 5, 2013, 6:08 p.m. OK GNU C++ TESTS 114 15 0 1700
4075553 csuchenan A July 15, 2013, 1:03 p.m. OK GNU C++ TESTS 114 15 0 1700
4042908 visanr A July 9, 2013, 2:47 p.m. OK GNU C++ TESTS 114 15 0 1700
4042749 ttiplea A July 9, 2013, 2:05 p.m. OK GNU C++ TESTS 114 15 0 1700
4038184 picc A July 8, 2013, 9:53 a.m. OK GNU C++ TESTS 114 15 0 1700
4038172 picc A July 8, 2013, 9:52 a.m. OK GNU C++ TESTS 114 15 0 1700
4036519 Goblin A July 7, 2013, 11:32 p.m. OK GNU C++ TESTS 114 15 0 1700
4036135 lamia.elmorsy A July 7, 2013, 7:44 p.m. OK GNU C++ TESTS 114 15 0 1700
4031865 Ayman.Geneidy A July 6, 2013, 4:55 p.m. OK GNU C++ TESTS 114 15 0 1700
4028197 Hamid_36 A July 5, 2013, 6:06 p.m. OK GNU C++ TESTS 114 15 0 1700
3581743 1tthinking A April 20, 2013, 3:56 p.m. OK GNU C++0x TESTS 114 15 0 1700
4992902 No_stop A Nov. 5, 2013, 12:09 p.m. OK GNU C++0x TESTS 114 30 0 1700
4992314 JayYe A Nov. 5, 2013, 10:45 a.m. OK GNU C++0x TESTS 114 30 0 1700
4946498 Orfest A Oct. 31, 2013, 4:58 p.m. OK GNU C++0x TESTS 114 30 0 1700
4434477 A_Le_K A Sept. 9, 2013, 7:17 a.m. OK GNU C++0x TESTS 114 30 0 1700
4396444 Mark_Fan A Sept. 2, 2013, 10:28 a.m. OK GNU C++0x TESTS 114 30 0 1700
2045233 stan A Aug. 23, 2012, 7:04 p.m. OK GNU C++0x TESTS 114 30 1433600 1700
1967090 mengpq A Aug. 1, 2012, 6:55 a.m. OK GNU C++0x TESTS 114 30 1433600 1700
1833619 VC15 A June 26, 2012, 7:04 p.m. OK GNU C++0x TESTS 114 30 1433600 1700
1823805 ChaRiL A June 23, 2012, 11:13 a.m. OK GNU C++0x TESTS 114 30 1433600 1700
34079374 TZillion A Jan. 11, 2018, 1:14 a.m. OK GNU C11 TESTS 114 30 1843200 1700
24270980 mohamedhabila A Jan. 30, 2017, 3:34 p.m. OK GNU C11 TESTS 114 60 1843200 1700
61570664 giolekva A Sept. 30, 2019, 6:33 p.m. OK GNU C11 TESTS 114 92 0 1700
27091264 Superstorm4242 A May 13, 2017, 2:19 p.m. OK GNU C++11 TESTS 114 30 0 1700
23051049 NoonChi A Dec. 17, 2016, 3:37 p.m. OK GNU C++11 TESTS 114 30 0 1700
22156950 giorgizaqariadze A Nov. 11, 2016, 2:24 a.m. OK GNU C++11 TESTS 114 30 0 1700
22035639 schovkla A Nov. 4, 2016, 1:49 p.m. OK GNU C++11 TESTS 114 30 0 1700
22035521 schovkla A Nov. 4, 2016, 1:43 p.m. OK GNU C++11 TESTS 114 30 0 1700
21801842 n_pkhaladze1 A Oct. 26, 2016, 5:11 p.m. OK GNU C++11 TESTS 114 30 0 1700
21768411 DeadPillow A Oct. 25, 2016, 10:13 a.m. OK GNU C++11 TESTS 114 30 0 1700
27304847 Bengal_Tiger A May 23, 2017, 4:01 p.m. OK GNU C++11 TESTS 114 30 0 1700
31231302 pr3pony A Oct. 12, 2017, 3:16 a.m. OK GNU C++11 TESTS 114 30 0 1700
31280507 nonamefour0210 A Oct. 13, 2017, 4:55 p.m. OK GNU C++11 TESTS 114 30 0 1700
32114159 cryptomanic A Nov. 7, 2017, 9:53 a.m. OK GNU C++14 TESTS 114 30 0 1700
32563345 kataki A Nov. 22, 2017, 11:07 p.m. OK GNU C++14 TESTS 114 30 0 1700
32227319 cryptomanic A Nov. 11, 2017, 6 p.m. OK GNU C++14 TESTS 114 30 0 1700
32112527 alechuang98 A Nov. 7, 2017, 8:03 a.m. OK GNU C++14 TESTS 114 30 0 1700
31852397 mochow A Oct. 28, 2017, 10:50 p.m. OK GNU C++14 TESTS 114 30 0 1700
31264891 LiChenKoh A Oct. 13, 2017, 4:14 a.m. OK GNU C++14 TESTS 114 30 0 1700
31241290 ihave33cm A Oct. 12, 2017, 12:56 p.m. OK GNU C++14 TESTS 114 30 0 1700
30696043 sigefried A Sept. 25, 2017, 5:43 a.m. OK GNU C++14 TESTS 114 30 0 1700
30381226 k3nz0 A Sept. 16, 2017, 10:40 a.m. OK GNU C++14 TESTS 114 30 0 1700
30125200 ayushsinha1996 A Sept. 6, 2017, 7:30 a.m. OK GNU C++14 TESTS 114 30 0 1700
35557443 3agwa A Feb. 21, 2018, 7:04 p.m. OK GNU C++17 TESTS 114 30 1945600 1700
35557486 3agwa A Feb. 21, 2018, 7:05 p.m. OK GNU C++17 TESTS 114 30 1945600 1700
40710243 Bogdanisar A July 24, 2018, 3:31 p.m. OK GNU C++17 TESTS 114 60 0 1700
56468732 mehuld A July 3, 2019, 10:04 a.m. OK GNU C++17 TESTS 114 60 0 1700
69001943 no_one_07 A Jan. 17, 2020, 8:04 p.m. OK GNU C++17 TESTS 114 62 0 1700
66215025 amankrsingh A Dec. 3, 2019, 8:32 a.m. OK GNU C++17 TESTS 114 62 0 1700
66214442 amankrsingh A Dec. 3, 2019, 8:19 a.m. OK GNU C++17 TESTS 114 62 0 1700
68772558 ABSTERGO A Jan. 14, 2020, 12:24 p.m. OK GNU C++17 TESTS 114 62 0 1700
69953755 sawhil A Feb. 1, 2020, 9:37 a.m. OK GNU C++17 TESTS 114 62 0 1700
69566553 kaisergod1 A Jan. 26, 2020, 12:38 p.m. OK GNU C++17 TESTS 114 62 0 1700
35902240 ahmedhamadacoder A March 3, 2018, 9:24 p.m. OK GNU C++17 Diagnostics TESTS 114 1840 99430400 1700
2867887 AstroConjecture A Jan. 2, 2013, 11:37 p.m. OK Haskell TESTS 114 15 0 1700
1822878 cojna A June 23, 2012, 3:14 a.m. OK Haskell TESTS 114 50 2150400 1700
4136170 mkirsche A July 22, 2013, 2:24 p.m. OK Java 6 TESTS 114 93 0 1700
4001235 DegredRommel A July 1, 2013, 8:55 p.m. OK Java 6 TESTS 114 93 2252800 1700
4023884 some_body A July 4, 2013, 10:38 p.m. OK Java 6 TESTS 114 93 2457600 1700
4005315 OKA_1010 A July 3, 2013, 2:23 a.m. OK Java 6 TESTS 114 109 0 1700
3070558 BaHiE A Feb. 4, 2013, 11:47 a.m. OK Java 6 TESTS 114 109 0 1700
2659783 todo A Nov. 26, 2012, 2:29 p.m. OK Java 6 TESTS 114 109 0 1700
4004308 BaHiE A July 2, 2013, 6:08 p.m. OK Java 6 TESTS 114 109 102400 1700
4005259 shimaa_saeed A July 3, 2013, 1:57 a.m. OK Java 6 TESTS 114 109 2457600 1700
5969038 alibaba A March 9, 2014, 1:05 p.m. OK Java 6 TESTS 114 124 0 1700
2266882 slax A Sept. 28, 2012, 3:39 p.m. OK Java 6 TESTS 114 125 0 1700
4008238 OmarYousry A July 3, 2013, 8:48 p.m. OK Java 7 TESTS 114 78 0 1700
3072664 mohamednabil00000 A Feb. 4, 2013, 10:35 p.m. OK Java 7 TESTS 114 78 0 1700
3070885 hananahmad114 A Feb. 4, 2013, 1:04 p.m. OK Java 7 TESTS 114 78 0 1700
4023730 shoshaaa A July 4, 2013, 9:53 p.m. OK Java 7 TESTS 114 93 0 1700
4008533 AbdulrahmanYosry A July 3, 2013, 10:35 p.m. OK Java 7 TESTS 114 93 0 1700
4008446 mina_makary A July 3, 2013, 10:10 p.m. OK Java 7 TESTS 114 93 0 1700
4007780 hamo210 A July 3, 2013, 6:13 p.m. OK Java 7 TESTS 114 93 0 1700
4006118 yaramohamed1 A July 3, 2013, 9:33 a.m. OK Java 7 TESTS 114 93 0 1700
4005136 MahmoudAGawad A July 3, 2013, 12:43 a.m. OK Java 7 TESTS 114 93 0 1700
4004298 hananahmad114 A July 2, 2013, 6:05 p.m. OK Java 7 TESTS 114 93 0 1700
49294051 mandark27 A Jan. 31, 2019, 9:03 p.m. OK Java 8 TESTS 114 218 0 1700
10688986 poikniok A April 13, 2015, 2:42 a.m. OK Java 8 TESTS 114 218 0 1700
28656076 juacar01 A July 18, 2017, 5:16 a.m. OK Java 8 TESTS 114 218 20582400 1700
25746726 Petruchcho A March 23, 2017, 4:15 p.m. OK Java 8 TESTS 114 218 20582400 1700
59638092 sarthakmanna A Aug. 28, 2019, 10:32 p.m. OK Java 8 TESTS 114 248 0 1700
39801443 KulikAlex A June 30, 2018, 3:17 p.m. OK Java 8 TESTS 114 248 0 1700
32280682 ShafinKhadem A Nov. 13, 2017, 9:46 a.m. OK Java 8 TESTS 114 248 0 1700
32214185 Kammola A Nov. 11, 2017, 8:19 a.m. OK Java 8 TESTS 114 248 0 1700
12244204 sweiss A July 27, 2015, 7:14 p.m. OK Java 8 TESTS 114 248 0 1700
11989151 pikaynu A July 9, 2015, 5:55 p.m. OK Java 8 TESTS 114 248 0 1700
1824413 Universez A June 23, 2012, 4:32 p.m. OK Mono C# TESTS 114 670 9932800 1700
1815322 fiver A June 22, 2012, 3:51 p.m. OK Mono C# TESTS 114 840 14643200 1700
15754223 og.kostya A Feb. 2, 2016, 4:32 p.m. OK MS C# TESTS 114 124 102400 1700
3788309 Reshetnikov_Ivan Barsuk_Alexey atnurgaliev A May 28, 2013, 2:43 p.m. OK MS C++ TESTS 114 15 0 1700
3265444 vjudge1 A March 8, 2013, 11:18 a.m. OK MS C++ TESTS 114 15 0 1700
3012307 vjudge2 A Jan. 26, 2013, 1:28 p.m. OK MS C++ TESTS 114 15 0 1700
2854962 Dabek A Dec. 29, 2012, 7:27 p.m. OK MS C++ TESTS 114 15 0 1700
4048512 Mosyagin A July 11, 2013, 12:43 a.m. OK MS C++ TESTS 114 15 0 1700
4141429 Silent_coder A July 23, 2013, 1:53 p.m. OK MS C++ TESTS 114 15 0 1700
6561945 RiKang A May 6, 2014, 11:39 a.m. OK MS C++ TESTS 114 30 0 1700
6547022 BalloonphiliaR A May 5, 2014, 1:20 a.m. OK MS C++ TESTS 114 30 0 1700
15162895 NVAL A Jan. 2, 2016, 9:29 p.m. OK MS C++ TESTS 114 30 0 1700
12244980 AU.Bahosain A July 27, 2015, 8:51 p.m. OK MS C++ TESTS 114 30 0 1700
49534745 Huyt A Feb. 6, 2019, 3:25 p.m. OK MS C++ 2017 TESTS 114 62 0 1700
1823467 wisterik A June 23, 2012, 8:03 a.m. OK Ocaml TESTS 114 80 2764800 1700
1814259 alexey.shchepin A June 22, 2012, 3:38 p.m. OK Ocaml TESTS 114 200 2764800 1700
13998187 m7mdbadawy A Nov. 1, 2015, 2:04 a.m. OK PyPy 2 TESTS 114 154 102400 1700
21759572 Yash_ A Oct. 24, 2016, 9:06 p.m. OK PyPy 2 TESTS 114 218 0 1700
38482609 pavankatta A May 21, 2018, 12:05 p.m. OK PyPy 2 TESTS 114 218 1228800 1700
30947748 arpitkath A Oct. 2, 2017, 4:06 p.m. OK Python 2 TESTS 114 92 0 1700
1978436 eucho A Aug. 5, 2012, 3:31 p.m. OK Python 2 TESTS 114 110 2969600 1700
1838537 nishant4 A June 29, 2012, 2:35 p.m. OK Python 2 TESTS 114 110 2969600 1700
1822828 UESTC_Defense A June 23, 2012, 2:52 a.m. OK Python 2 TESTS 114 140 2969600 1700
1824239 eucho A June 23, 2012, 3:17 p.m. OK Python 2 TESTS 114 140 2969600 1700
1817100 Escapist A June 22, 2012, 4:20 p.m. OK Python 2 TESTS 114 160 19148800 1700
2511824 tian A Nov. 5, 2012, 4:04 p.m. OK Python 2 TESTS 114 296 0 1700
1822798 ankitgupta A June 23, 2012, 2:43 a.m. OK Python 2 TESTS 114 330 2969600 1700
11395605 brodo A June 2, 2015, 11:28 p.m. OK Python 2 TESTS 114 372 0 1700
2225074 nealzane A Sept. 21, 2012, 1:40 a.m. OK Python 2 TESTS 114 437 2867200 1700
3693866 neko13 A May 8, 2013, 11:50 a.m. OK Python 3 TESTS 114 78 102400 1700
21070066 inoryy A Oct. 1, 2016, 1:26 p.m. OK Python 3 TESTS 114 124 0 1700
5626962 yugle7 A Jan. 6, 2014, 11:38 a.m. OK Python 3 TESTS 114 124 307200 1700
34055347 2390_ A Jan. 9, 2018, 5:56 p.m. OK Python 3 TESTS 114 124 5632000 1700
14750728 merolish A Dec. 10, 2015, 9:25 p.m. OK Python 3 TESTS 114 154 0 1700
31539335 Dannywang A Oct. 20, 2017, 4:06 p.m. OK Python 3 TESTS 114 154 5529600 1700
45529097 LintuStorm A Nov. 10, 2018, 3:58 p.m. OK Python 3 TESTS 114 530 0 1700
48322234 rishabh_sethi A Jan. 13, 2019, 9:58 a.m. OK Python 3 TESTS 114 778 0 1700
28661381 Oswalman1 A July 18, 2017, 8:05 a.m. OK Python 3 TESTS 114 840 4710400 1700
30761322 Yusufawzy44 A Sept. 26, 2017, 7:27 p.m. OK Python 3 TESTS 114 872 0 1700
35843963 ______u______ A March 2, 2018, 3:21 p.m. OK Ruby TESTS 114 154 6451200 1700
35843933 ______n______ A March 2, 2018, 3:21 p.m. OK Ruby TESTS 114 154 6451200 1700
35843759 _____i_____ A March 2, 2018, 3:17 p.m. OK Ruby TESTS 114 154 6451200 1700
35843756 _____k_____ A March 2, 2018, 3:17 p.m. OK Ruby TESTS 114 154 6451200 1700
35838932 ______k______ A March 2, 2018, 1:43 p.m. OK Ruby TESTS 114 154 6451200 1700
35838918 ______h______ A March 2, 2018, 1:43 p.m. OK Ruby TESTS 114 154 6451200 1700
35838594 ______i______ A March 2, 2018, 1:35 p.m. OK Ruby TESTS 114 154 6451200 1700
35836347 ______M______ A March 2, 2018, 12:53 p.m. OK Ruby TESTS 114 154 6451200 1700
1822916 camper A June 23, 2012, 3:32 a.m. OK Ruby TESTS 114 190 5734400 1700

remove filters

Back to search problems