Codeforces Beta Round 56

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
60 Codeforces Beta Round 56 FINISHED False 7200 433691999 Feb. 19, 2011, 4 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 327 ) E Mushroom Gnomes PROGRAMMING math matrices 2500

B"Once upon a time in the thicket of the mushroom forest lived mushroom gnomes. They were famous among their neighbors for their magic mushrooms. Their magic nature made it possible that between every two neighboring mushrooms every minute grew another mushroom with the weight equal to the sum of weights of two neighboring ones. The mushroom gnomes loved it when everything was in order, that's why they always planted the mushrooms in one line in the order of their weights' increasing. Well... The gnomes planted the mushrooms and went to eat. After x minutes they returned and saw that new mushrooms had grown up, so that the increasing order had been violated. The gnomes replanted all the mushrooms in the correct order, that is, they sorted the mushrooms in the order of the weights' increasing. And went to eat again (those gnomes were quite big eaters). What total weights modulo p will the mushrooms have in another y minutes? The first line contains four integers n, x, y, p (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106, xe2 x80 x890 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x, xe2 x80 x89y xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891018, xe2 x80 x89x xe2 x80 x89+ xe2 x80 x89y xe2 x80 x89> xe2 x80 x890, xe2 x80 x892 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89p xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) which represent the number of mushrooms, the number of minutes after the first replanting, the number of minutes after the second replanting and the module. The next line contains n integers ai which represent the mushrooms' weight in the non-decreasing order (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Please, do not use %lld specificator to read or write 64-bit integers in C++. It is preffered to use cin (also you may use %I64d). The answer should contain a single number which is the total weights of the mushrooms modulo p in the end after x xe2 x80 x89+ xe2 x80 x89y minutes."...

Tutorials

Solutions for Codeforces Beta Round #56

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
289984 tourist E Feb. 19, 2011, 5 p.m. OK Delphi TESTS 58 230 4812800 2500
1045977 suanrong E Jan. 15, 2012, 2:39 a.m. OK FPC TESTS 58 310 9011200 2500
1124779 sunweijun E Jan. 29, 2012, 5:16 a.m. OK FPC TESTS 58 310 41164800 2500
548493 vlad107 E July 16, 2011, 12:04 p.m. OK FPC TESTS 58 360 5017600 2500
1122468 waterkid E Jan. 28, 2012, 8:59 a.m. OK FPC TESTS 58 410 9011200 2500
497843 Sereja E June 19, 2011, 12:04 p.m. OK FPC TESTS 58 410 9011200 2500
1516475 sillycross E April 13, 2012, 1:51 a.m. OK FPC TESTS 58 470 1024000 2500
508893 zpl1 E June 23, 2011, 2:20 p.m. OK GNU C TESTS 58 470 9420800 2500
728140 xujie E Sept. 28, 2011, 6:11 a.m. OK GNU C++ TESTS 58 90 5734400 2500
291362 ACube E Feb. 19, 2011, 6:49 p.m. OK GNU C++ TESTS 58 90 9420800 2500
291350 ACube E Feb. 19, 2011, 6:48 p.m. OK GNU C++ TESTS 58 90 9420800 2500
291332 ACube E Feb. 19, 2011, 6:46 p.m. OK GNU C++ TESTS 58 90 9420800 2500
22459614 Jin_Haonan E Nov. 24, 2016, 5:56 a.m. OK GNU C++ TESTS 58 156 3788800 2500
40993098 ReaLNero1 E July 31, 2018, 1:45 a.m. OK GNU C++ TESTS 58 186 7987200 2500
6762558 niyuzheNO1 E June 1, 2014, 6:12 a.m. OK GNU C++ TESTS 58 186 7987200 2500
5449206 vjudge1 E Dec. 16, 2013, 9:21 a.m. OK GNU C++ TESTS 58 248 3993600 2500
7251010 ItsLastDay E July 26, 2014, 3:02 p.m. OK GNU C++ TESTS 58 278 4198400 2500
5449202 Cr0wley E Dec. 16, 2013, 9:20 a.m. OK GNU C++ TESTS 58 280 3993600 2500
8806403 MinakoKojima E Nov. 22, 2014, 7:55 p.m. OK GNU C++0x TESTS 58 122 3993600 2500
8806326 MinakoKojima E Nov. 22, 2014, 7:46 p.m. OK GNU C++0x TESTS 58 124 3993600 2500
8806099 MinakoKojima E Nov. 22, 2014, 7:20 p.m. OK GNU C++0x TESTS 58 124 3993600 2500
6970042 FancyCoder E June 27, 2014, 1:50 p.m. OK GNU C++0x TESTS 58 186 16896000 2500
6970040 orzxyz111 E June 27, 2014, 1:49 p.m. OK GNU C++0x TESTS 58 186 16896000 2500
9829303 Mr.Temirbay E Feb. 14, 2015, 2:47 p.m. OK GNU C++0x TESTS 58 404 3993600 2500
9822703 Na2a E Feb. 14, 2015, 3:27 a.m. OK GNU C++0x TESTS 58 404 3993600 2500
9814627 vjudge5 E Feb. 13, 2015, 9:13 a.m. OK GNU C++0x TESTS 58 404 3993600 2500
9816841 vjudge5 E Feb. 13, 2015, 2 p.m. OK GNU C++0x TESTS 58 404 4403200 2500
9816816 vjudge5 E Feb. 13, 2015, 1:57 p.m. OK GNU C++0x TESTS 58 436 3993600 2500
58793839 orzyyc E Aug. 14, 2019, 3:53 a.m. OK GNU C++11 TESTS 58 124 3993600 2500
34480296 bash E Jan. 23, 2018, 11:46 a.m. OK GNU C++11 TESTS 58 186 10137600 2500
57906385 lopare E July 28, 2019, 5:48 p.m. OK GNU C++11 TESTS 58 374 3788800 2500
12138358 HellKitsune E July 20, 2015, 10:54 p.m. OK GNU C++11 TESTS 58 374 3993600 2500
31632145 lawyerphx E Oct. 23, 2017, 2:21 p.m. OK GNU C++11 TESTS 58 404 2048000 2500
20094528 TheMaverick E Aug. 23, 2016, 9:37 p.m. OK GNU C++11 TESTS 58 404 2048000 2500
45252483 KCSC E Nov. 3, 2018, 5:24 p.m. OK GNU C++11 TESTS 58 404 3993600 2500
12202939 OmarHashim E July 23, 2015, 4:03 p.m. OK GNU C++11 TESTS 58 404 3993600 2500
49167809 Hiasat E Jan. 29, 2019, 5:04 p.m. OK GNU C++11 TESTS 58 404 4812800 2500
20091038 Deathly_Hallows E Aug. 23, 2016, 5:21 p.m. OK GNU C++11 TESTS 58 404 6041600 2500
21615496 2016 E Oct. 20, 2016, 11:22 a.m. OK GNU C++14 TESTS 58 434 6041600 2500
56016215 sorry_im_smurfing E June 24, 2019, 9:25 p.m. OK GNU C++14 TESTS 58 498 3993600 2500
46383753 vjudge5 E Nov. 29, 2018, 8:24 p.m. OK GNU C++14 TESTS 58 530 3993600 2500
46383742 RockyB E Nov. 29, 2018, 8:23 p.m. OK GNU C++14 TESTS 58 530 3993600 2500
46383737 RockyB E Nov. 29, 2018, 8:23 p.m. OK GNU C++14 TESTS 58 530 3993600 2500
31968676 Flash-boy E Nov. 2, 2017, 5:33 a.m. OK GNU C++14 TESTS 58 560 102400 2500
46383684 RockyB E Nov. 29, 2018, 8:19 p.m. OK GNU C++14 TESTS 58 560 7987200 2500
46382445 vjudge2 E Nov. 29, 2018, 7:19 p.m. OK GNU C++14 TESTS 58 560 12185600 2500
46372047 BThero E Nov. 29, 2018, 4:21 p.m. OK GNU C++14 TESTS 58 590 12185600 2500
22305378 SakurakoujiRuna E Nov. 18, 2016, 11:46 a.m. OK GNU C++14 TESTS 58 592 3993600 2500
49070716 Medeowex E Jan. 27, 2019, 8:33 p.m. OK GNU C++17 TESTS 58 530 8396800 2500
46469471 vjudge3 E Dec. 2, 2018, 6:37 a.m. OK GNU C++17 TESTS 58 622 8192000 2500
51223124 kenimo E March 12, 2019, 1:11 p.m. OK GNU C++17 TESTS 58 686 7987200 2500
46508485 Turysbek E Dec. 2, 2018, 12:09 p.m. OK GNU C++17 TESTS 58 716 7987200 2500
46508489 vjudge4 E Dec. 2, 2018, 12:09 p.m. OK GNU C++17 TESTS 58 748 7987200 2500
46380373 bash E Nov. 29, 2018, 7:15 p.m. OK GNU C++17 TESTS 58 936 8192000 2500
740517 kiko91_7 E Oct. 7, 2011, 11:17 a.m. OK Java 6 TESTS 58 190 35328000 2500
737872 islam-al-aarag E Oct. 5, 2011, 4:54 a.m. OK Java 6 TESTS 58 220 35225600 2500
289641 Egor E Feb. 19, 2011, 4:45 p.m. OK Java 6 TESTS 58 220 43315200 2500
307373 madkite E Feb. 25, 2011, 11:06 p.m. OK Java 6 TESTS 58 550 123392000 2500
313570 Akatsuki E March 1, 2011, 5:38 p.m. OK Java 6 TESTS 58 560 135372800 2500
307371 madkite E Feb. 25, 2011, 11:03 p.m. OK Java 6 TESTS 58 580 123392000 2500
291278 niyaznigmatul E Feb. 19, 2011, 6:42 p.m. OK Java 6 TESTS 58 660 131379200 2500
290180 winger E Feb. 19, 2011, 5:09 p.m. OK Java 6 TESTS 58 660 143360000 2500
291804 Hieu E Feb. 19, 2011, 9:28 p.m. OK Java 6 TESTS 58 810 131276800 2500
291911 ivan.popelyshev E Feb. 19, 2011, 11:42 p.m. OK Java 6 TESTS 58 830 43315200 2500
12546874 free.dom E Aug. 15, 2015, 11:46 a.m. OK Java 7 TESTS 58 684 92262400 2500
5834973 travm12 E Jan. 29, 2014, 9:39 p.m. OK Java 7 TESTS 58 810 100352000 2500
5852591 DoublePointer E Jan. 30, 2014, 10:22 p.m. OK Java 7 TESTS 58 810 100454400 2500
293568 Hadi_Asiaie E Feb. 21, 2011, 2:49 p.m. OK Mono C# TESTS 58 970 131584000 2500
293271 LinJiYuan90 E Feb. 21, 2011, 8:21 a.m. OK MS C++ TESTS 58 330 5427200 2500
293268 LinJiYuan90 E Feb. 21, 2011, 8:15 a.m. OK MS C++ TESTS 58 330 5427200 2500
293216 JalbaRu E Feb. 21, 2011, 7:03 a.m. OK MS C++ TESTS 58 340 1331200 2500
291809 Coder E Feb. 19, 2011, 9:30 p.m. OK MS C++ TESTS 58 340 5427200 2500
547984 witua E July 15, 2011, 9:03 p.m. OK MS C++ TESTS 58 340 5427200 2500
300549 ryuzmukhametov E Feb. 23, 2011, 10:49 a.m. OK MS C++ TESTS 58 340 5632000 2500
443028 maksay E May 8, 2011, 3:24 p.m. OK MS C++ TESTS 58 360 1433600 2500
290415 MBabin E Feb. 19, 2011, 5:24 p.m. OK MS C++ TESTS 58 360 5427200 2500
289844 Ripatti E Feb. 19, 2011, 4:54 p.m. OK MS C++ TESTS 58 360 5427200 2500
300563 ryuzmukhametov E Feb. 23, 2011, 11:02 a.m. OK MS C++ TESTS 58 360 5632000 2500
61275795 Ancient_mage E Sept. 25, 2019, 3:24 p.m. OK MS C++ 2017 TESTS 58 1746 3993600 2500
300724 ryuzmukhametov E Feb. 23, 2011, 1:04 p.m. OK Python 2 TESTS 58 1390 58265600 2500

remove filters

Back to search problems