Codeforces Round #FF (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
446 Codeforces Round #FF (Div. 1) FINISHED False 7200 332269223 July 13, 2014, 1 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3437 ) C DZY Loves Fibonacci Numbers PROGRAMMING data structures math number theory 2600

B'In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relation DZY loves Fibonacci numbers very much. Today DZY gives you an array consisting of n integers: a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an. Moreover, there are m queries, each query has one of the two types: Help DZY reply to all the queries. The first line of the input contains two integers n and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89300000). The second line contains n integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- initial array a. Then, m lines follow. A single line describes a single query in the format given in the statement. It is guaranteed that for each query inequality 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n holds. For each query of the second type, print the value of the sum on a single line. After the first query, a xe2 x80 x89= xe2 x80 x89[2, xe2 x80 x893, xe2 x80 x895, xe2 x80 x897]. For the second query, sum xe2 x80 x89= xe2 x80 x892 xe2 x80 x89+ xe2 x80 x893 xe2 x80 x89+ xe2 x80 x895 xe2 x80 x89+ xe2 x80 x897 xe2 x80 x89= xe2 x80 x8917. After the third query, a xe2 x80 x89= xe2 x80 x89[2, xe2 x80 x894, xe2 x80 x896, xe2 x80 x899]. For the fourth query, sum xe2 x80 x89= xe2 x80 x892 xe2 x80 x89+ xe2 x80 x894 xe2 x80 x89+ xe2 x80 x896 xe2 x80 x89= xe2 x80 x8912.'...

Tutorials

Codeforces Round #FF(255) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
7355844 hos.lyric C Aug. 5, 2014, 8:32 p.m. OK D TESTS 40 2105 87244800 2600
7097903 weizhaohui C July 14, 2014, 7:08 a.m. OK Delphi TESTS 40 3930 8396800 2600
7097793 fishpear C July 14, 2014, 6:51 a.m. OK FPC TESTS 40 967 33792000 2600
7304734 stupidcoder.vn C Aug. 1, 2014, 6:34 a.m. OK FPC TESTS 40 982 24064000 2600
7089160 popoffka C July 13, 2014, 2:51 p.m. OK FPC TESTS 40 1731 30310400 2600
7123994 Hoblovski C July 17, 2014, 12:49 p.m. OK FPC TESTS 40 2121 42393600 2600
7089279 luoruixuan C July 13, 2014, 2:52 p.m. OK GNU C TESTS 40 1450 61337600 2600
9489186 vjudge1 C Jan. 21, 2015, 3:56 a.m. OK GNU C TESTS 40 2027 52940800 2600
9489211 vjudge3 C Jan. 21, 2015, 4:05 a.m. OK GNU C TESTS 40 2089 52940800 2600
27293076 laofudasuan C May 23, 2017, 2:53 a.m. OK GNU C++ TESTS 40 139 16076800 2600
7106226 afrizal C July 15, 2014, 6:10 a.m. OK GNU C++ TESTS 40 249 6041600 2600
7114583 apia C July 16, 2014, 8:46 a.m. OK GNU C++ TESTS 40 265 4812800 2600
7779683 qwer_zcc C Sept. 13, 2014, 6:52 a.m. OK GNU C++ TESTS 40 280 9625600 2600
7462062 Rodnas C Aug. 15, 2014, 4:05 p.m. OK GNU C++ TESTS 40 280 40857600 2600
35865602 elijahqi C March 3, 2018, 12:51 a.m. OK GNU C++ TESTS 40 327 17817600 2600
7242439 SillyWu C July 25, 2014, 12:55 p.m. OK GNU C++ TESTS 40 358 9625600 2600
7100698 ubergeek C July 14, 2014, 12:44 p.m. OK GNU C++ TESTS 40 358 9625600 2600
13999314 130705009 C Nov. 1, 2015, 3:43 a.m. OK GNU C++ TESTS 40 374 19046400 2600
9489642 qingwen C Jan. 21, 2015, 6:06 a.m. OK GNU C++ TESTS 40 405 9420800 2600
7103047 ershov.stanislav C July 14, 2014, 5:46 p.m. OK GNU C++0x TESTS 40 93 11980800 2600
7102994 ershov.stanislav C July 14, 2014, 5:38 p.m. OK GNU C++0x TESTS 40 124 11980800 2600
7102967 ershov.stanislav C July 14, 2014, 5:34 p.m. OK GNU C++0x TESTS 40 234 11980800 2600
7102939 ershov.stanislav C July 14, 2014, 5:30 p.m. OK GNU C++0x TESTS 40 248 11980800 2600
7102977 ershov.stanislav C July 14, 2014, 5:35 p.m. OK GNU C++0x TESTS 40 265 11980800 2600
7100828 MrDindows C July 14, 2014, 12:59 p.m. OK GNU C++0x TESTS 40 280 14438400 2600
7102920 ershov.stanislav C July 14, 2014, 5:27 p.m. OK GNU C++0x TESTS 40 296 11980800 2600
7094162 __math C July 13, 2014, 7:22 p.m. OK GNU C++0x TESTS 40 296 14438400 2600
7102858 ershov.stanislav C July 14, 2014, 5:15 p.m. OK GNU C++0x TESTS 40 311 9625600 2600
7782060 zshi C Sept. 13, 2014, 10:59 a.m. OK GNU C++0x TESTS 40 312 9830400 2600
42788938 BumbleBee C Sept. 12, 2018, 7:01 a.m. OK GNU C11 TESTS 40 1590 34918400 2600
42788839 BumbleBee C Sept. 12, 2018, 6:56 a.m. OK GNU C11 TESTS 40 1622 34918400 2600
36607409 TISparta C March 25, 2018, 6:43 a.m. OK GNU C11 TESTS 40 2698 5734400 2600
40988272 ReaLNero1 C July 30, 2018, 9:51 p.m. OK GNU C++11 TESTS 40 124 11878400 2600
48887872 wibE C Jan. 24, 2019, 1 p.m. OK GNU C++11 TESTS 40 202 27136000 2600
53008811 codaras C April 19, 2019, 11:03 a.m. OK GNU C++11 TESTS 40 217 27136000 2600
53978464 time_interspace C May 11, 2019, 5:47 a.m. OK GNU C++11 TESTS 40 249 16896000 2600
48929798 LuoshuiTianyi C Jan. 25, 2019, 12:05 p.m. OK GNU C++11 TESTS 40 280 21606400 2600
45320184 Beginner_df016 C Nov. 5, 2018, 10:10 a.m. OK GNU C++11 TESTS 40 311 25292800 2600
42020322 LSTete C Aug. 24, 2018, 8:45 a.m. OK GNU C++11 TESTS 40 312 15667200 2600
57819283 py_ultron C July 26, 2019, 9:46 p.m. OK GNU C++11 TESTS 40 327 9420800 2600
58713394 hovny C Aug. 13, 2019, 1:07 p.m. OK GNU C++11 TESTS 40 327 16793600 2600
57346683 Louhc C July 19, 2019, 11:54 p.m. OK GNU C++11 TESTS 40 327 16793600 2600
54163969 Sait2000 C May 15, 2019, 7:51 a.m. OK GNU C++14 TESTS 40 327 6041600 2600
50574969 barni120400 C Feb. 27, 2019, 5:33 p.m. OK GNU C++14 TESTS 40 358 9625600 2600
51955795 minson123 C March 29, 2019, 2:13 a.m. OK GNU C++14 TESTS 40 421 26419200 2600
25789262 Snow_Leopard C March 25, 2017, 6:11 a.m. OK GNU C++14 TESTS 40 498 11673600 2600
53491920 CUITcoach C April 29, 2019, 9:16 a.m. OK GNU C++14 TESTS 40 499 27648000 2600
50432817 Lucky__Boy C Feb. 24, 2019, 2:58 p.m. OK GNU C++14 TESTS 40 530 16793600 2600
50098691 ImForbiddenToSayILoveYou C Feb. 18, 2019, 1:56 p.m. OK GNU C++14 TESTS 40 576 16896000 2600
31229439 FallDream C Oct. 12, 2017, 12:09 a.m. OK GNU C++14 TESTS 40 592 32460800 2600
20876160 Motarack C Sept. 23, 2016, 9:53 p.m. OK GNU C++14 TESTS 40 608 18022400 2600
56419971 walht C July 2, 2019, 6:52 a.m. OK GNU C++14 TESTS 40 608 50483200 2600
48638369 terminator C Jan. 20, 2019, 2:08 p.m. OK GNU C++17 TESTS 40 420 9625600 2600
50608031 nimphy C Feb. 28, 2019, 3:30 p.m. OK GNU C++17 TESTS 40 499 64102400 2600
50667503 vjudge1 C March 2, 2019, 5:12 a.m. OK GNU C++17 TESTS 40 514 64102400 2600
50667501 vjudge3 C March 2, 2019, 5:12 a.m. OK GNU C++17 TESTS 40 530 64102400 2600
50608865 nimphy C Feb. 28, 2019, 3:54 p.m. OK GNU C++17 TESTS 40 545 64102400 2600
50608220 nimphy C Feb. 28, 2019, 3:35 p.m. OK GNU C++17 TESTS 40 545 64102400 2600
48887637 xz153531 C Jan. 24, 2019, 12:55 p.m. OK GNU C++17 TESTS 40 577 15872000 2600
50062496 FlyJacking C Feb. 17, 2019, 1:18 p.m. OK GNU C++17 TESTS 40 608 161177600 2600
55575527 KanMergen C June 14, 2019, 11:50 p.m. OK GNU C++17 TESTS 40 624 16793600 2600
59207294 ruo C Aug. 21, 2019, 7:23 a.m. OK GNU C++17 TESTS 40 639 16896000 2600
7282847 ronaflx C July 29, 2014, 6:37 a.m. OK Go TESTS 40 2137 35942400 2600
7094142 Thomas_Ahle C July 13, 2014, 7:14 p.m. OK Go TESTS 40 3993 38604800 2600
7100025 Rubanenko C July 14, 2014, 11:33 a.m. OK Java 6 TESTS 40 1497 42291200 2600
9786188 vjudge2 C Feb. 10, 2015, 6:44 a.m. OK Java 7 TESTS 40 623 21708800 2600
7086602 Petr C July 13, 2014, 2:27 p.m. OK Java 7 TESTS 40 623 22220800 2600
9786185 Rojo C Feb. 10, 2015, 6:44 a.m. OK Java 7 TESTS 40 639 21708800 2600
7093975 antonkov C July 13, 2014, 6:46 p.m. OK Java 7 TESTS 40 1216 47001600 2600
7653026 hama-du C Aug. 31, 2014, 10:10 a.m. OK Java 7 TESTS 40 1559 52838400 2600
7123877 tanzaku C July 17, 2014, 12:34 p.m. OK Java 7 TESTS 40 1652 21504000 2600
7123866 tanzaku C July 17, 2014, 12:32 p.m. OK Java 7 TESTS 40 1684 21504000 2600
7100228 uwi C July 14, 2014, 11:55 a.m. OK Java 7 TESTS 40 1684 39424000 2600
7123778 tanzaku C July 17, 2014, 12:21 p.m. OK Java 7 TESTS 40 1700 21504000 2600
7099997 Rubanenko C July 14, 2014, 11:30 a.m. OK Java 7 TESTS 40 1700 42393600 2600
7105252 meijun C July 15, 2014, 3:19 a.m. OK Java 8 TESTS 40 935 2764800 2600
39747788 amnesiac_dusk C June 28, 2018, 3:59 p.m. OK Java 8 TESTS 40 950 40960000 2600
7118193 Ekaing C July 16, 2014, 6 p.m. OK Java 8 TESTS 40 982 64000000 2600
7084009 mmaxio C July 13, 2014, 2:03 p.m. OK Java 8 TESTS 40 1106 3276800 2600
17032070 YukimuraYukino C March 30, 2016, 10:52 a.m. OK Java 8 TESTS 40 1325 60416000 2600
7100018 Rubanenko C July 14, 2014, 11:33 a.m. OK Java 8 TESTS 40 1341 3174400 2600
7327131 fqw C Aug. 2, 2014, 9:59 a.m. OK Java 8 TESTS 40 1497 34099200 2600
7098832 KOHCTAHTIH C July 14, 2014, 9:05 a.m. OK Java 8 TESTS 40 1606 3481600 2600
7099900 Rubanenko C July 14, 2014, 11:20 a.m. OK Java 8 TESTS 40 1699 3379200 2600
7118221 Ekaing C July 16, 2014, 6:02 p.m. OK Java 8 TESTS 40 1716 64921600 2600
15624652 og.kostya C Jan. 28, 2016, 7:45 a.m. OK MS C# TESTS 40 2635 86835200 2600
7092209 zhymaoiing C July 13, 2014, 4:21 p.m. OK MS C# TESTS 40 3182 94515200 2600
15623586 og.kostya C Jan. 28, 2016, 6:07 a.m. OK MS C# TESTS 40 3540 85196800 2600
7099541 Rivx C July 14, 2014, 10:38 a.m. OK MS C++ TESTS 40 421 23142400 2600
10697535 Alex7 C April 13, 2015, 7:03 p.m. OK MS C++ TESTS 40 436 9625600 2600
35872718 ______u______ C March 3, 2018, 7:16 a.m. OK MS C++ TESTS 40 436 11673600 2600
35872480 ______n______ C March 3, 2018, 7:10 a.m. OK MS C++ TESTS 40 436 11673600 2600
35871863 _____i_____ C March 3, 2018, 6:58 a.m. OK MS C++ TESTS 40 436 11673600 2600
35871861 _____k_____ C March 3, 2018, 6:58 a.m. OK MS C++ TESTS 40 436 11673600 2600
35862998 ______k______ C March 2, 2018, 10:36 p.m. OK MS C++ TESTS 40 436 11673600 2600
35862979 ______h______ C March 2, 2018, 10:36 p.m. OK MS C++ TESTS 40 436 11673600 2600
35862432 ______i______ C March 2, 2018, 10:25 p.m. OK MS C++ TESTS 40 436 11673600 2600
35860952 ______M______ C March 2, 2018, 9:53 p.m. OK MS C++ TESTS 40 436 11673600 2600
56002039 hobgoblin23 C June 24, 2019, 1:30 p.m. OK MS C++ 2017 TESTS 40 2698 36966400 2600

remove filters

Back to search problems