Educational Codeforces Round 20

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
803 Educational Codeforces Round 20 FINISHED False 8100 244133723 April 28, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3470 ) F Coprime Subsequences PROGRAMMING bitmasks combinatorics number theory 2100

B"Let's call a non-empty sequence of positive integers a1, xe2 x80 x89a2... ak coprime if the greatest common divisor of all elements of this sequence is equal to 1. Given an array a consisting of n positive integers, find the number of its coprime subsequences. Since the answer may be very large, print it modulo 109 xe2 x80 x89+ xe2 x80 x897. Note that two subsequences are considered different if chosen indices are different. For example, in the array [1, xe2 x80 x891] there are 3 different subsequences: [1], [1] and [1, xe2 x80 x891]. The first line contains one integer number n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100000). The second line contains n integer numbers a1, xe2 x80 x89a2... an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100000). Print the number of coprime subsequences of a modulo 109 xe2 x80 x89+ xe2 x80 x897. In the first example coprime subsequences are: In the second example all subsequences are coprime. "...

Tutorials

51768

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
26741251 heklo F April 29, 2017, 6:09 a.m. OK FPC TESTS 35 140 6451200 2100
26835282 vjudge4 F May 4, 2017, 1:13 p.m. OK FPC TESTS 35 374 3174400 2100
26727451 sgtlaugh F April 28, 2017, 4:08 p.m. OK GNU C TESTS 35 93 6860800 2100
27698898 yasugongshang F June 10, 2017, 2:34 a.m. OK GNU C++ TESTS 35 15 1740800 2100
26742246 fgvfgfg1 F April 29, 2017, 7:10 a.m. OK GNU C++ TESTS 35 15 3276800 2100
26743741 stonepage F April 29, 2017, 8:46 a.m. OK GNU C++ TESTS 35 15 5222400 2100
26958869 iamz F May 8, 2017, 2:36 p.m. OK GNU C++ TESTS 35 31 1024000 2100
40980991 ReaLNero1 F July 30, 2018, 5:47 p.m. OK GNU C++ TESTS 35 31 1228800 2100
26860257 WHzy F May 4, 2017, 4:30 p.m. OK GNU C++ TESTS 35 31 1228800 2100
27718763 halid F June 11, 2017, 9:54 a.m. OK GNU C++ TESTS 35 31 1433600 2100
26899751 vjudge3 F May 6, 2017, 11:19 a.m. OK GNU C++ TESTS 35 31 1638400 2100
26874059 SkyDec F May 5, 2017, 6:17 a.m. OK GNU C++ TESTS 35 31 1638400 2100
27698916 yasugongshang F June 10, 2017, 2:36 a.m. OK GNU C++ TESTS 35 31 1740800 2100
26729150 Chapecoense F April 28, 2017, 4:32 p.m. OK GNU C11 TESTS 35 109 3072000 2100
26803809 llgyc F May 2, 2017, 1:55 p.m. OK GNU C++11 TESTS 35 15 3276800 2100
36238391 BeNoble F March 13, 2018, 3:52 a.m. OK GNU C++11 TESTS 35 15 5529600 2100
32137573 Hany01 F Nov. 8, 2017, 11:23 a.m. OK GNU C++11 TESTS 35 15 16076800 2100
26724091 flatline F April 28, 2017, 3:31 p.m. OK GNU C++11 TESTS 35 30 4915200 2100
27905344 zcyskyaa F June 19, 2017, 1:15 p.m. OK GNU C++11 TESTS 35 30 16076800 2100
27161649 Hikari9 F May 16, 2017, 2:21 p.m. OK GNU C++11 TESTS 35 31 819200 2100
27661977 blutrex F June 8, 2017, 3 a.m. OK GNU C++11 TESTS 35 31 1024000 2100
64145814 jzh817 F Nov. 3, 2019, 9:50 a.m. OK GNU C++11 TESTS 35 31 1228800 2100
31965124 dy0607 F Nov. 2, 2017, 12:09 a.m. OK GNU C++11 TESTS 35 31 1228800 2100
69233329 jgy002 F Jan. 21, 2020, 10:21 a.m. OK GNU C++11 TESTS 35 31 1228800 2100
36208324 lionadis F March 11, 2018, 6:44 p.m. OK GNU C++14 TESTS 35 30 3174400 2100
26821331 tinca_matei F May 3, 2017, 3:30 p.m. OK GNU C++14 TESTS 35 31 3072000 2100
26755337 Egor.Lifar F April 29, 2017, 7:43 p.m. OK GNU C++14 TESTS 35 31 3584000 2100
26736780 kulych F April 28, 2017, 11:43 p.m. OK GNU C++14 TESTS 35 31 4300800 2100
34945003 __________ F Feb. 5, 2018, 1:16 p.m. OK GNU C++14 TESTS 35 31 5324800 2100
46303498 Kami02 F Nov. 28, 2018, 8:41 a.m. OK GNU C++14 TESTS 35 46 819200 2100
46303478 Kami02 F Nov. 28, 2018, 8:40 a.m. OK GNU C++14 TESTS 35 46 819200 2100
46303413 Kami02 F Nov. 28, 2018, 8:38 a.m. OK GNU C++14 TESTS 35 46 819200 2100
46181624 Yashar_H F Nov. 24, 2018, 6:18 p.m. OK GNU C++14 TESTS 35 46 819200 2100
46852148 AWfulsome F Dec. 10, 2018, 12:51 p.m. OK GNU C++14 TESTS 35 46 819200 2100
49177116 markotee F Jan. 29, 2019, 9:29 p.m. OK GNU C++17 TESTS 35 46 614400 2100
69044227 digu_J F Jan. 18, 2020, 10:43 a.m. OK GNU C++17 TESTS 35 46 819200 2100
49809464 YouKn0wWho F Feb. 11, 2019, 10:37 p.m. OK GNU C++17 TESTS 35 46 819200 2100
58057583 duzheting F July 31, 2019, 6:04 a.m. OK GNU C++17 TESTS 35 46 1228800 2100
47278474 ptrtofuture F Dec. 19, 2018, 9:07 p.m. OK GNU C++17 TESTS 35 46 1433600 2100
64200130 Siyuan F Nov. 4, 2019, 11:12 a.m. OK GNU C++17 TESTS 35 46 1433600 2100
66183887 Mitsuhaw F Dec. 2, 2019, 1:47 p.m. OK GNU C++17 TESTS 35 46 1638400 2100
53476040 AliShahali1382 F April 28, 2019, 3:37 p.m. OK GNU C++17 TESTS 35 46 1638400 2100
47336088 BlueDiamond F Dec. 21, 2018, 3:10 p.m. OK GNU C++17 TESTS 35 46 1638400 2100
67034016 golikovnik F Dec. 16, 2019, 4:47 p.m. OK GNU C++17 TESTS 35 46 1638400 2100
61095596 beginner1010 F Sept. 23, 2019, 2:40 a.m. OK Java 8 TESTS 35 124 0 2100
53317999 StayAwayFromBitches F April 26, 2019, 11:28 a.m. OK Java 8 TESTS 35 139 0 2100
52246292 icpc_loser F April 2, 2019, 7:16 p.m. OK Java 8 TESTS 35 140 0 2100
48183829 aman28rwt F Jan. 10, 2019, 1:57 p.m. OK Java 8 TESTS 35 140 0 2100
31862237 hulk_man F Oct. 29, 2017, 9:43 a.m. OK Java 8 TESTS 35 140 0 2100
26799039 JialinOuyang F May 2, 2017, 9:01 a.m. OK Java 8 TESTS 35 140 20582400 2100
26869572 tri F May 5, 2017, 12:41 a.m. OK Java 8 TESTS 35 155 0 2100
29422002 Maulik_Patel F Aug. 13, 2017, 3:51 a.m. OK Java 8 TESTS 35 155 20889600 2100
41909604 hongquanntct F Aug. 20, 2018, 4:49 p.m. OK Java 8 TESTS 35 171 0 2100
67053124 satya26 F Dec. 17, 2019, 5:25 a.m. OK Java 8 TESTS 35 171 1331200 2100
26731686 og.kostya F April 28, 2017, 5:16 p.m. OK MS C# TESTS 35 62 9728000 2100
26785994 batya_322 F May 1, 2017, 1:07 p.m. OK MS C++ TESTS 35 108 3686400 2100
56519240 vjudge1 F July 4, 2019, 2:11 p.m. OK MS C++ TESTS 35 109 2048000 2100
58429181 vjudge2 F Aug. 7, 2019, 11:08 a.m. OK MS C++ TESTS 35 156 1638400 2100
26725960 Filyan F April 28, 2017, 3:50 p.m. OK MS C++ TESTS 35 171 4096000 2100
26731798 vanvector F April 28, 2017, 5:18 p.m. OK MS C++ TESTS 35 858 4505600 2100
57813969 pseuda F July 26, 2019, 6:44 p.m. OK MS C++ 2017 TESTS 35 187 3276800 2100
57335432 BenL F July 19, 2019, 3:53 p.m. OK PyPy 2 TESTS 35 202 12390400 2100
41992752 tanghao F Aug. 23, 2018, 9:57 a.m. OK PyPy 2 TESTS 35 218 8704000 2100
53974373 pajenegod F May 11, 2019, 2:34 a.m. OK PyPy 2 TESTS 35 280 8089600 2100
27607209 sragavan F June 6, 2017, 7:09 a.m. OK PyPy 2 TESTS 35 545 50278400 2100
57335391 BenL F July 19, 2019, 3:52 p.m. OK PyPy 3 TESTS 35 264 14540800 2100
26781900 nanae1914 F May 1, 2017, 8:46 a.m. OK PyPy 3 TESTS 35 342 33484800 2100
26781848 nanae1914 F May 1, 2017, 8:44 a.m. OK PyPy 3 TESTS 35 405 33382400 2100
26781447 nanae1914 F May 1, 2017, 8:18 a.m. OK PyPy 3 TESTS 35 421 31232000 2100
54715201 artifexbm F May 27, 2019, 12:50 p.m. OK PyPy 3 TESTS 35 529 28364800 2100
26799372 0w1 F May 2, 2017, 9:28 a.m. OK PyPy 3 TESTS 35 639 40243200 2100
59779672 nagato1208 F Aug. 31, 2019, 2:19 a.m. OK PyPy 3 TESTS 35 1294 23347200 2100
40747072 Ali_Pi F July 25, 2018, 3:19 p.m. OK Python 2 TESTS 35 857 7577600 2100
27605865 sragavan F June 6, 2017, 5:45 a.m. OK Python 2 TESTS 35 1341 60620800 2100
26782840 nanae1914 F May 1, 2017, 9:44 a.m. OK Python 3 TESTS 35 732 12800000 2100
36865413 drisskhalil15 F April 1, 2018, 11:39 p.m. OK Python 3 TESTS 35 1154 15360000 2100

remove filters

Back to search problems