Codeforces Round 330 (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
594 Codeforces Round 330 (Div. 1) FINISHED False 7200 290525423 Nov. 8, 2015, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1683 ) D REQ PROGRAMMING data structures number theory 2500

B"Today on a math lesson the teacher told Vovochka that the Euler function of a positive integer xcf x86(n) is an arithmetic function that counts the positive integers less than or equal to n that are relatively prime to n. The number 1 is coprime to all the positive integers and xcf x86(1) xe2 x80 x89= xe2 x80 x891. Now the teacher gave Vovochka an array of n positive integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an and a task to process q queries li ri -- to calculate and print modulo 109 xe2 x80 x89+ xe2 x80 x897. As it is too hard for a second grade school student, you've decided to help Vovochka. The first line of the input contains number n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89200 xe2 x80 x89000) -- the length of the array given to Vovochka. 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 x89106). The third line contains integer q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89200 xe2 x80 x89000) -- the number of queries. Next q lines contain the queries, one per line. Each query is defined by the boundaries of the segment li and 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). Print q numbers -- the value of the Euler function for each query, calculated modulo 109 xe2 x80 x89+ xe2 x80 x897. In the second sample the values are calculated like that:"...

Tutorials

Codeforces Round #330 (Div.1 + Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
16844430 StarCuriosity D March 20, 2016, 6:19 p.m. OK D TESTS 74 826 32972800 2500
27715667 12190140 D June 11, 2017, 5:55 a.m. OK GNU C++ TESTS 74 421 14745600 2500
25818401 vjudge5 D March 26, 2017, 12:06 p.m. OK GNU C++ TESTS 74 436 40243200 2500
16276866 vjudge2 D Feb. 22, 2016, 12:46 p.m. OK GNU C++ TESTS 74 467 21913600 2500
27733168 12190140 D June 12, 2017, 7:33 a.m. OK GNU C++ TESTS 74 483 14745600 2500
27721637 zx2003 D June 11, 2017, 1:27 p.m. OK GNU C++ TESTS 74 514 176742400 2500
22088895 zhan8855 D Nov. 7, 2016, 6:09 a.m. OK GNU C++ TESTS 74 561 20684800 2500
14166472 _Eren_ D Nov. 9, 2015, 7:30 a.m. OK GNU C++ TESTS 74 576 43417600 2500
14217458 creatnx D Nov. 12, 2015, 5:24 p.m. OK GNU C++ TESTS 74 576 64102400 2500
14172281 kapcha D Nov. 9, 2015, 2:30 p.m. OK GNU C++ TESTS 74 577 43417600 2500
14155030 chffy D Nov. 8, 2015, 5:56 p.m. OK GNU C++ TESTS 74 592 57036800 2500
52349247 luogu_bot2 D April 5, 2019, 1:54 p.m. OK GNU C++11 TESTS 74 389 56115200 2500
52349188 Fubuki D April 5, 2019, 1:52 p.m. OK GNU C++11 TESTS 74 389 56115200 2500
40985822 ReaLNero1 D July 30, 2018, 8:11 p.m. OK GNU C++11 TESTS 74 405 13926400 2500
14178593 ShingRay D Nov. 9, 2015, 11:30 p.m. OK GNU C++11 TESTS 74 405 13926400 2500
14174374 ShingRay D Nov. 9, 2015, 4:40 p.m. OK GNU C++11 TESTS 74 405 14745600 2500
16281194 jinzhao D Feb. 22, 2016, 5:19 p.m. OK GNU C++11 TESTS 74 420 21913600 2500
50783304 SGColin D March 4, 2019, 12:21 p.m. OK GNU C++11 TESTS 74 452 25702400 2500
62390604 asuldb D Oct. 12, 2019, 1:36 a.m. OK GNU C++11 TESTS 74 452 27648000 2500
62405284 luogu_bot1 D Oct. 12, 2019, 8:46 a.m. OK GNU C++11 TESTS 74 452 28774400 2500
62405085 ctz45562 D Oct. 12, 2019, 8:42 a.m. OK GNU C++11 TESTS 74 498 27545600 2500
32513036 FallDream D Nov. 20, 2017, 11:31 p.m. OK GNU C++14 TESTS 74 530 93491200 2500
50090192 TomOwO D Feb. 18, 2019, 9:52 a.m. OK GNU C++14 TESTS 74 577 29696000 2500
50169116 vanbang9710 D Feb. 19, 2019, 2:41 p.m. OK GNU C++14 TESTS 74 607 24473600 2500
34430386 zhanglexing D Jan. 22, 2018, 3:03 a.m. OK GNU C++14 TESTS 74 608 22732800 2500
36510848 kuppu D March 22, 2018, 5:22 p.m. OK GNU C++14 TESTS 74 623 20992000 2500
49128179 tusg25 D Jan. 29, 2019, 1:34 a.m. OK GNU C++14 TESTS 74 639 40243200 2500
24153890 Hujiwara D Jan. 26, 2017, 5:14 p.m. OK GNU C++14 TESTS 74 639 60416000 2500
36523775 KATATONIA D March 23, 2018, 7:47 a.m. OK GNU C++14 TESTS 74 670 36556800 2500
32916852 Los_Angelos_Laycurse D Dec. 4, 2017, 9:25 a.m. OK GNU C++14 TESTS 74 685 69222400 2500
32190783 namai D Nov. 10, 2017, 10 a.m. OK GNU C++14 TESTS 74 686 33382400 2500
52549523 Romeolong D April 10, 2019, 2:29 a.m. OK GNU C++17 TESTS 74 327 37683200 2500
50097422 Kuroni D Feb. 18, 2019, 1:21 p.m. OK GNU C++17 TESTS 74 483 26009600 2500
49181227 vjudge4 D Jan. 30, 2019, 1:56 a.m. OK GNU C++17 TESTS 74 530 22118400 2500
66027516 AlexLuchianov D Nov. 30, 2019, 9:07 a.m. OK GNU C++17 TESTS 74 545 16281600 2500
65304835 coffee_machine D Nov. 18, 2019, 2:30 p.m. OK GNU C++17 TESTS 74 560 37683200 2500
65304775 coffee_machine D Nov. 18, 2019, 2:29 p.m. OK GNU C++17 TESTS 74 561 37683200 2500
65304728 coffee_machine D Nov. 18, 2019, 2:28 p.m. OK GNU C++17 TESTS 74 576 37683200 2500
42495929 TomOwO D Sept. 5, 2018, 2:24 p.m. OK GNU C++17 TESTS 74 608 29900800 2500
59938247 AliShahali1382 D Sept. 3, 2019, 10:22 a.m. OK GNU C++17 TESTS 74 748 71680000 2500
38809540 naruto D May 31, 2018, 5:23 p.m. OK GNU C++17 TESTS 74 780 25907200 2500
16846289 StarCuriosity D March 20, 2016, 8:38 p.m. OK Go TESTS 74 1357 31027200 2500
14152898 pashka D Nov. 8, 2015, 5:35 p.m. OK Java 7 TESTS 74 1949 68812800 2500
14152769 uwi D Nov. 8, 2015, 5:34 p.m. OK Java 8 TESTS 74 935 119808000 2500
14199046 AndreiNet D Nov. 11, 2015, 4:28 p.m. OK Java 8 TESTS 74 1543 30003200 2500
19976634 hama-du D Aug. 20, 2016, 7:01 a.m. OK Java 8 TESTS 74 1575 39731200 2500
14159575 Sumeet.Varma D Nov. 8, 2015, 7:01 p.m. OK Java 8 TESTS 74 1715 177459200 2500
14251308 nmakarov D Nov. 14, 2015, 9:07 a.m. OK Java 8 TESTS 74 1778 192819200 2500
14162579 AlexFetisov D Nov. 8, 2015, 11:34 p.m. OK Java 8 TESTS 74 1809 182886400 2500
14152196 niyaznigmatul D Nov. 8, 2015, 5:29 p.m. OK Java 8 TESTS 74 1887 12800000 2500
14192048 Ruins D Nov. 11, 2015, 4:13 a.m. OK Java 8 TESTS 74 2089 61952000 2500
15190093 antonkov D Jan. 5, 2016, 10:38 a.m. OK Java 8 TESTS 74 2105 158924800 2500
14198385 AndreiNet D Nov. 11, 2015, 3:40 p.m. OK Java 8 TESTS 74 2183 30003200 2500
65762410 Spheniscine D Nov. 26, 2019, 4:24 p.m. OK Kotlin TESTS 74 1107 60416000 2500
65761680 Spheniscine D Nov. 26, 2019, 4:05 p.m. OK Kotlin TESTS 74 1123 59187200 2500
65793661 Spheniscine D Nov. 27, 2019, 1:58 a.m. OK Kotlin TESTS 74 1201 54272000 2500
66507418 Spheniscine D Dec. 8, 2019, 2:59 p.m. OK Kotlin TESTS 74 1216 59187200 2500
66506114 Spheniscine D Dec. 8, 2019, 2:28 p.m. OK Kotlin TESTS 74 1232 63385600 2500
66506769 Spheniscine D Dec. 8, 2019, 2:44 p.m. OK Kotlin TESTS 74 1247 63283200 2500
65761114 Spheniscine D Nov. 26, 2019, 3:53 p.m. OK Kotlin TESTS 74 1247 72294400 2500
65793636 Spheniscine D Nov. 27, 2019, 1:56 a.m. OK Kotlin TESTS 74 1278 60006400 2500
65760425 Spheniscine D Nov. 26, 2019, 3:37 p.m. OK Kotlin TESTS 74 1310 100044800 2500
65793611 Spheniscine D Nov. 27, 2019, 1:53 a.m. OK Kotlin TESTS 74 1356 62668800 2500
14297012 AnatolyTolstobrov D Nov. 16, 2015, 11:55 a.m. OK MS C# TESTS 74 951 50073600 2500
14296919 AnatolyTolstobrov D Nov. 16, 2015, 11:47 a.m. OK MS C# TESTS 74 1169 53964800 2500
32916838 Los_Angelos_Laycurse D Dec. 4, 2017, 9:25 a.m. OK MS C++ TESTS 74 795 67584000 2500
14153522 RAD D Nov. 8, 2015, 5:41 p.m. OK MS C++ TESTS 74 811 58470400 2500
20314543 yangxinthu D Sept. 1, 2016, 3:21 a.m. OK MS C++ TESTS 74 1325 96768000 2500
14158300 AleksanderBalobanov D Nov. 8, 2015, 6:20 p.m. OK MS C++ TESTS 74 1855 204390400 2500
14156918 RomaWhite D Nov. 8, 2015, 6:06 p.m. OK MS C++ TESTS 74 2121 29491200 2500
14302471 Adhambek D Nov. 16, 2015, 6:36 p.m. OK MS C++ TESTS 74 2324 123392000 2500
23535272 sdya D Jan. 4, 2017, 12:28 p.m. OK MS C++ TESTS 74 2745 37478400 2500
20316089 yangxinthu D Sept. 1, 2016, 7:05 a.m. OK MS C++ TESTS 74 2947 61337600 2500

remove filters

Back to search problems