Codeforces Round 185 (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
311 Codeforces Round 185 (Div. 1) FINISHED False 7200 362240999 May 26, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 673 ) D Interval Cubing PROGRAMMING data structures math 2500

B'While learning Computational Geometry, Tiny is simultaneously learning a useful data structure called segment tree or interval tree. He has scarcely grasped it when comes out a strange problem: Given an integer sequence a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an. You should run q queries of two types: For every query of type 1, output the answer to it. Tiny himself surely cannot work it out, so he asks you for help. In addition, Tiny is a prime lover. He tells you that because the answer may be too huge, you should only output it modulo 95542721 (this number is a prime number). The first line contains an integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), representing the length of the sequence. The second line contains n space-separated integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). The third line contains an integer q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), representing the number of queries. Then follow q lines. Each line contains three integers ti (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ti xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892), li, ri (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ri xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n), where ti stands for the type of the query while li and ri is the parameters of the query, correspondingly. For each 1-type query, print the answer to it per line. You should notice that each printed number should be non-negative and less than 95542721.'...

Tutorials

Codeforces Round #185 Editorial (Div.2 B&Div.1 E)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3788401 ergatis D May 28, 2013, 3:08 p.m. OK D TESTS 25 4484 55603200 2500
3788481 ergatis D May 28, 2013, 3:28 p.m. OK D TESTS 25 4500 55603200 2500
3788405 ergatis D May 28, 2013, 3:09 p.m. OK D TESTS 25 4531 55603200 2500
3785757 ergatis D May 28, 2013, 12:34 a.m. OK D TESTS 25 4718 55603200 2500
3783351 Rubanenko D May 27, 2013, 10:08 a.m. OK Delphi TESTS 25 5234 82227200 2500
7851010 1234567891 D Sept. 19, 2014, 10:28 a.m. OK FPC TESTS 25 1949 158720000 2500
3878687 janko96 D June 13, 2013, 9:55 a.m. OK FPC TESTS 25 2484 82227200 2500
4033887 PeterTong97 D July 7, 2013, 8:45 a.m. OK FPC TESTS 25 2625 82227200 2500
3793703 Andra_28 D May 30, 2013, 9:10 a.m. OK FPC TESTS 25 2687 82227200 2500
3783347 Rubanenko D May 27, 2013, 10:07 a.m. OK FPC TESTS 25 2703 82227200 2500
3783298 Rubanenko D May 27, 2013, 9:50 a.m. OK FPC TESTS 25 3046 82227200 2500
40989868 ReaLNero1 D July 30, 2018, 11:22 p.m. OK GNU C++ TESTS 25 779 87859200 2500
7826587 jiangshibiao D Sept. 18, 2014, 2:14 p.m. OK GNU C++ TESTS 25 842 62873600 2500
7826429 juan1973 D Sept. 18, 2014, 1:55 p.m. OK GNU C++ TESTS 25 904 87859200 2500
7826465 jiangshibiao D Sept. 18, 2014, 1:59 p.m. OK GNU C++ TESTS 25 935 95641600 2500
7826459 juan1973 D Sept. 18, 2014, 1:59 p.m. OK GNU C++ TESTS 25 935 95641600 2500
10516717 ikbal D March 29, 2015, 2:22 p.m. OK GNU C++ TESTS 25 951 52019200 2500
11193300 Balajiganapathi D May 21, 2015, 5:26 p.m. OK GNU C++ TESTS 25 966 78950400 2500
7815950 wwt15 D Sept. 17, 2014, 8:31 a.m. OK GNU C++ TESTS 25 967 78540800 2500
27918231 Scut82 D June 20, 2017, 6:09 a.m. OK GNU C++ TESTS 25 1013 61747200 2500
6954508 waterfall D June 24, 2014, 6:48 p.m. OK GNU C++ TESTS 25 1029 51609600 2500
10332902 matsuyama D March 18, 2015, 5:45 a.m. OK GNU C++0x TESTS 25 1247 53452800 2500
3787885 mruxim D May 28, 2013, 12:44 p.m. OK GNU C++0x TESTS 25 1296 59392000 2500
3787874 mruxim D May 28, 2013, 12:41 p.m. OK GNU C++0x TESTS 25 1390 59392000 2500
3787892 mruxim D May 28, 2013, 12:48 p.m. OK GNU C++0x TESTS 25 1531 59392000 2500
3787978 mruxim D May 28, 2013, 1:09 p.m. OK GNU C++0x TESTS 25 1609 51916800 2500
9301279 aliasadiiii D Dec. 29, 2014, 9:18 p.m. OK GNU C++0x TESTS 25 1965 78950400 2500
5767486 lisang D Jan. 22, 2014, 12:42 a.m. OK GNU C++0x TESTS 25 2120 79052800 2500
3787777 mruxim D May 28, 2013, 12:11 p.m. OK GNU C++0x TESTS 25 2406 79052800 2500
7979324 zshi D Sept. 27, 2014, 3:27 a.m. OK GNU C++0x TESTS 25 2464 250777600 2500
8074072 HandIeNeeded D Oct. 4, 2014, 4:04 a.m. OK GNU C++0x TESTS 25 2495 78950400 2500
50892746 lxhfl728 D March 6, 2019, 1:48 p.m. OK GNU C++11 TESTS 25 592 86835200 2500
53469840 time_interspace D April 28, 2019, 12:11 p.m. OK GNU C++11 TESTS 25 733 78950400 2500
49615750 LudwigVanBeethoven D Feb. 8, 2019, 6:02 a.m. OK GNU C++11 TESTS 25 748 80691200 2500
54500652 WOSHIGEPACHONG2 D May 22, 2019, 8:37 p.m. OK GNU C++11 TESTS 25 748 83353600 2500
53693219 shaojianan D May 3, 2019, 6:17 a.m. OK GNU C++11 TESTS 25 748 83353600 2500
68633072 cjoa D Jan. 12, 2020, 4:17 a.m. OK GNU C++11 TESTS 25 935 78950400 2500
27662998 noor148 D June 8, 2017, 4:35 a.m. OK GNU C++11 TESTS 25 936 80588800 2500
55110267 SoiMae D June 5, 2019, 5:49 a.m. OK GNU C++11 TESTS 25 951 78950400 2500
11517439 zld3794955 D June 10, 2015, 6:11 a.m. OK GNU C++11 TESTS 25 966 81817600 2500
16024329 SaDDaS D Feb. 14, 2016, 9:18 p.m. OK GNU C++11 TESTS 25 982 160768000 2500
48447171 I-Love-Islam D Jan. 16, 2019, 8:07 a.m. OK GNU C++14 TESTS 25 841 163737600 2500
43612113 w446506278 D Sept. 30, 2018, 2:38 p.m. OK GNU C++14 TESTS 25 1013 78540800 2500
36431242 renegade_warrior D March 20, 2018, 11:38 a.m. OK GNU C++14 TESTS 25 1075 82329600 2500
35151776 ascchrvalstr D Feb. 11, 2018, 11:48 a.m. OK GNU C++14 TESTS 25 1076 53350400 2500
49519818 KATATONIA D Feb. 6, 2019, 7:01 a.m. OK GNU C++14 TESTS 25 1122 97792000 2500
51927962 NotNight D March 28, 2019, 8:47 a.m. OK GNU C++14 TESTS 25 1170 78540800 2500
31138572 Len D Oct. 8, 2017, 9:15 a.m. OK GNU C++14 TESTS 25 1200 78950400 2500
51928280 NotNight D March 28, 2019, 8:56 a.m. OK GNU C++14 TESTS 25 1216 78540800 2500
33503552 FizzyDavid D Dec. 22, 2017, 11:23 a.m. OK GNU C++14 TESTS 25 1231 81100800 2500
61286349 BamiTorabi D Sept. 25, 2019, 6:37 p.m. OK GNU C++14 TESTS 25 1263 78950400 2500
57011674 _HossamYehia_ D July 14, 2019, 9:35 a.m. OK GNU C++17 TESTS 25 857 71168000 2500
57011407 _HossamYehia_ D July 14, 2019, 9:27 a.m. OK GNU C++17 TESTS 25 857 71168000 2500
57011645 _HossamYehia_ D July 14, 2019, 9:34 a.m. OK GNU C++17 TESTS 25 889 71168000 2500
64798918 Hoshi08 D Nov. 13, 2019, 1:53 p.m. OK GNU C++17 TESTS 25 1045 52531200 2500
65113303 Phortox D Nov. 16, 2019, 1:20 a.m. OK GNU C++17 TESTS 25 1107 82124800 2500
45898679 jah_melon D Nov. 18, 2018, 2:04 a.m. OK GNU C++17 TESTS 25 1169 85606400 2500
42024952 karasek D Aug. 24, 2018, 11:49 a.m. OK GNU C++17 TESTS 25 1466 80998400 2500
42347900 GCC314 D Sept. 2, 2018, 12:32 a.m. OK GNU C++17 TESTS 25 1482 78950400 2500
62795617 VodkaInTheJar D Oct. 17, 2019, 2:03 p.m. OK GNU C++17 TESTS 25 1512 80588800 2500
42956169 Reventon D Sept. 16, 2018, 4:26 p.m. OK GNU C++17 TESTS 25 1778 80588800 2500
3783656 uwi D May 27, 2013, 11:26 a.m. OK Java 6 TESTS 25 2995 57446400 2500
3777641 HAL9000 D May 26, 2013, 4:41 p.m. OK Java 6 TESTS 25 3484 131481600 2500
3783635 uwi D May 27, 2013, 11:21 a.m. OK Java 6 TESTS 25 4500 57446400 2500
3783498 uwi D May 27, 2013, 10:47 a.m. OK Java 6 TESTS 25 4578 105472000 2500
3780050 cerealguy D May 26, 2013, 5:45 p.m. OK Java 7 TESTS 25 3406 124825600 2500
12595738 free.dom D Aug. 19, 2015, 2:07 a.m. OK Java 7 TESTS 25 3463 105062400 2500
6149819 hama-du D March 26, 2014, 4:45 p.m. OK Java 7 TESTS 25 4351 127180800 2500
3780728 Jokser D May 26, 2013, 6:20 p.m. OK Java 7 TESTS 25 4734 138649600 2500
3793016 xenoslash D May 30, 2013, 4:57 a.m. OK Java 7 TESTS 25 5343 113561600 2500
3793003 xenoslash D May 30, 2013, 4:52 a.m. OK Java 7 TESTS 25 5656 115916800 2500
3792955 xenoslash D May 30, 2013, 4:27 a.m. OK Java 7 TESTS 25 5890 114995200 2500
12485834 marcose18 D Aug. 13, 2015, 1:44 a.m. OK Java 8 TESTS 25 3244 261222400 2500
54752335 ko_osaga D May 28, 2019, 1:26 p.m. OK Kotlin TESTS 25 3509 123084800 2500
35581183 lukagvritishvili12345 D Feb. 22, 2018, 6:44 p.m. OK MS C++ TESTS 25 1497 80998400 2500
3778715 RAVEman D May 26, 2013, 5:04 p.m. OK MS C++ TESTS 25 1500 45465600 2500
6196472 Nakochi D March 31, 2014, 9:13 a.m. OK MS C++ TESTS 25 1575 91136000 2500
3784855 Shapo D May 27, 2013, 3:41 p.m. OK MS C++ TESTS 25 1734 41472000 2500
3784041 alpc104 D May 27, 2013, 12:56 p.m. OK MS C++ TESTS 25 1859 51916800 2500
10997478 Alex7 D May 4, 2015, 4:12 p.m. OK MS C++ TESTS 25 1902 155545600 2500
3783988 alpc104 D May 27, 2013, 12:45 p.m. OK MS C++ TESTS 25 2078 39731200 2500
3794749 Nargiza D May 30, 2013, 2:44 p.m. OK MS C++ TESTS 25 2390 45465600 2500
3778512 RAD D May 26, 2013, 4:59 p.m. OK MS C++ TESTS 25 2390 88166400 2500
3778930 NALP D May 26, 2013, 5:09 p.m. OK MS C++ TESTS 25 2496 52326400 2500

remove filters

Back to search problems