Codeforces Round 325 (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
585 Codeforces Round 325 (Div. 1) FINISHED False 7200 287182199 Oct. 12, 2015, 9:10 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1114 ) E Present for Vitalik the Philatelist PROGRAMMING combinatorics math number theory 2800

B"Vitalik the philatelist has a birthday today! As he is a regular customer in a stamp store called 'Robin Bobin', the store management decided to make him a gift. Vitalik wants to buy one stamp and the store will give him a non-empty set of the remaining stamps, such that the greatest common divisor (GCD) of the price of the stamps they give to him is more than one. If the GCD of prices of the purchased stamp and prices of present stamps set will be equal to 1, then Vitalik will leave the store completely happy. The store management asks you to count the number of different situations in which Vitalik will leave the store completely happy. Since the required number of situations can be very large, you need to find the remainder of this number modulo 109 xe2 x80 x89+ xe2 x80 x897. The situations are different if the stamps purchased by Vitalik are different, or if one of the present sets contains a stamp that the other present does not contain. The first line of the input contains integer n (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x895 xc2 xb7105) -- the number of distinct stamps, available for sale in the 'Robin Bobin' store. The second line contains a sequence of integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89107), where ai is the price of the i-th stamp. Print a single integer -- the remainder of the sought number of situations modulo 109 xe2 x80 x89+ xe2 x80 x897. In the first sample the following situations are possible: "...

Tutorials

Разбор Codeforces Round #325

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
13583358 sgtlaugh E Oct. 12, 2015, 8:28 p.m. OK GNU C TESTS 60 717 247193600 2800
13583527 sgtlaugh E Oct. 12, 2015, 8:45 p.m. OK GNU C TESTS 60 764 202035200 2800
13583470 sgtlaugh E Oct. 12, 2015, 8:39 p.m. OK GNU C TESTS 60 795 197017600 2800
13583539 sgtlaugh E Oct. 12, 2015, 8:46 p.m. OK GNU C TESTS 60 857 202035200 2800
13583443 sgtlaugh E Oct. 12, 2015, 8:36 p.m. OK GNU C TESTS 60 872 207052800 2800
13583431 sgtlaugh E Oct. 12, 2015, 8:35 p.m. OK GNU C TESTS 60 873 207052800 2800
13583619 sgtlaugh E Oct. 12, 2015, 8:56 p.m. OK GNU C TESTS 60 888 202035200 2800
13583524 sgtlaugh E Oct. 12, 2015, 8:45 p.m. OK GNU C TESTS 60 904 202035200 2800
13583451 sgtlaugh E Oct. 12, 2015, 8:37 p.m. OK GNU C TESTS 60 920 247193600 2800
13583541 sgtlaugh E Oct. 12, 2015, 8:47 p.m. OK GNU C TESTS 60 936 202035200 2800
15968332 RNS3 E Feb. 12, 2016, 9:11 a.m. OK GNU C++ TESTS 60 701 162099200 2800
28206901 jiyutian E July 2, 2017, 8:58 a.m. OK GNU C++ TESTS 60 717 246374400 2800
13603410 ShineRain E Oct. 14, 2015, 7:53 a.m. OK GNU C++ TESTS 60 794 162304000 2800
28322482 xzyxzy E July 6, 2017, 9:33 a.m. OK GNU C++ TESTS 60 810 134348800 2800
13572183 black_horse2014 E Oct. 12, 2015, 11:09 a.m. OK GNU C++ TESTS 60 810 162816000 2800
13773244 sfiction E Oct. 21, 2015, 2:32 p.m. OK GNU C++ TESTS 60 811 130048000 2800
28206875 jiyutian E July 2, 2017, 8:57 a.m. OK GNU C++ TESTS 60 811 246374400 2800
13590907 msls E Oct. 13, 2015, 10:22 a.m. OK GNU C++ TESTS 60 826 204390400 2800
13590928 msls E Oct. 13, 2015, 10:24 a.m. OK GNU C++ TESTS 60 842 204390400 2800
13727812 Megumi233 E Oct. 19, 2015, 12:18 p.m. OK GNU C++ TESTS 60 873 204185600 2800
68340089 zhongyuwei E Jan. 7, 2020, 2:41 a.m. OK GNU C++11 TESTS 60 421 164352000 2800
65571344 PinkRabbit E Nov. 23, 2019, 7:58 a.m. OK GNU C++11 TESTS 60 436 94720000 2800
65570958 PinkRabbit E Nov. 23, 2019, 7:50 a.m. OK GNU C++11 TESTS 60 436 94720000 2800
65570578 PinkRabbit E Nov. 23, 2019, 7:42 a.m. OK GNU C++11 TESTS 60 452 94720000 2800
66313884 A.K.E.E. E Dec. 5, 2019, 12:23 p.m. OK GNU C++11 TESTS 60 452 250470400 2800
68387719 luogu_bot1 E Jan. 8, 2020, 6:54 a.m. OK GNU C++11 TESTS 60 467 94720000 2800
66373075 SuperFF E Dec. 6, 2019, 12:11 a.m. OK GNU C++11 TESTS 60 467 231526400 2800
65570751 PinkRabbit E Nov. 23, 2019, 7:46 a.m. OK GNU C++11 TESTS 60 482 94720000 2800
64718973 cuizhuyefei E Nov. 12, 2019, 1:42 a.m. OK GNU C++11 TESTS 60 545 102400000 2800
63931375 zx2003 E Oct. 31, 2019, 2:23 p.m. OK GNU C++11 TESTS 60 577 138240000 2800
63697132 yhx-12243 E Oct. 29, 2019, 5:54 a.m. OK GNU C++14 TESTS 60 514 132915200 2800
66250242 lyx_cjz E Dec. 4, 2019, 12:58 a.m. OK GNU C++14 TESTS 60 530 161689600 2800
66159536 rushcheyo E Dec. 2, 2019, 3:01 a.m. OK GNU C++14 TESTS 60 561 56012800 2800
69531322 qiqi20021026 E Jan. 25, 2020, 5:13 p.m. OK GNU C++14 TESTS 60 638 173158400 2800
63492920 Created_equal E Oct. 26, 2019, 2:48 p.m. OK GNU C++14 TESTS 60 639 218624000 2800
66016830 mayaohua2003 E Nov. 30, 2019, 5:48 a.m. OK GNU C++14 TESTS 60 686 102195200 2800
65345044 Jayce132 E Nov. 19, 2019, 12:18 p.m. OK GNU C++14 TESTS 60 764 202649600 2800
29257696 vjudge4 E Aug. 7, 2017, 7:40 a.m. OK GNU C++14 TESTS 60 967 180633600 2800
31130467 _SHENZHEBEI_ E Oct. 8, 2017, 1:18 a.m. OK GNU C++14 TESTS 60 1013 210432000 2800
29257719 cb_Adam E Aug. 7, 2017, 7:41 a.m. OK GNU C++14 TESTS 60 1060 180633600 2800
64743458 little_gift E Nov. 12, 2019, 12:45 p.m. OK GNU C++17 TESTS 60 639 200396800 2800
65296492 jiangly E Nov. 18, 2019, 11:42 a.m. OK GNU C++17 TESTS 60 670 134246400 2800
66157471 Infleaking E Dec. 2, 2019, 12:37 a.m. OK GNU C++17 TESTS 60 670 254464000 2800
67004914 hjk1030 E Dec. 16, 2019, 7:31 a.m. OK GNU C++17 TESTS 60 686 140595200 2800
66375612 Polygon-yg E Dec. 6, 2019, 2:29 a.m. OK GNU C++17 TESTS 60 826 100966400 2800
66375898 Polygon-yg E Dec. 6, 2019, 2:41 a.m. OK GNU C++17 TESTS 60 966 100966400 2800
66375650 Polygon-yg E Dec. 6, 2019, 2:31 a.m. OK GNU C++17 TESTS 60 982 100966400 2800
51427767 Shayan.P E March 17, 2019, 8:30 p.m. OK GNU C++17 TESTS 60 1045 162304000 2800
66375767 Polygon-yg E Dec. 6, 2019, 2:36 a.m. OK GNU C++17 TESTS 60 1075 100966400 2800
63028147 Elegia E Oct. 20, 2019, 5:12 p.m. OK GNU C++17 TESTS 60 1154 187596800 2800
13570762 mmaxio E Oct. 12, 2015, 10:58 a.m. OK Java 8 TESTS 60 1778 169472000 2800
13577847 uwi E Oct. 12, 2015, 3:54 p.m. OK Java 8 TESTS 60 2604 188416000 2800
13577933 uwi E Oct. 12, 2015, 3:56 p.m. OK Java 8 TESTS 60 2620 188416000 2800
13577576 uwi E Oct. 12, 2015, 3:45 p.m. OK Java 8 TESTS 60 2636 188416000 2800
13672170 marcose18 E Oct. 16, 2015, 9:44 p.m. OK Java 8 TESTS 60 4226 123392000 2800
14818358 edorundo E Dec. 15, 2015, 4:44 p.m. OK Java 8 TESTS 60 4398 144998400 2800
62764800 vjudge5 E Oct. 17, 2019, 8:15 a.m. OK Java 8 TESTS 60 4945 170803200 2800
62764734 vjudge3 E Oct. 17, 2019, 8:14 a.m. OK Java 8 TESTS 60 4945 170803200 2800
62764963 vjudge1 E Oct. 17, 2019, 8:18 a.m. OK Java 8 TESTS 60 4976 170803200 2800
62765077 aminul E Oct. 17, 2019, 8:21 a.m. OK Java 8 TESTS 60 4991 170803200 2800
23525163 sdya E Jan. 3, 2017, 10:15 p.m. OK MS C++ TESTS 60 1684 76697600 2800
13718118 Manul E Oct. 18, 2015, 6:50 p.m. OK MS C++ TESTS 60 2370 123494400 2800
13583089 AleksanderBalobanov E Oct. 12, 2015, 8:03 p.m. OK MS C++ TESTS 60 4133 212377600 2800
13583049 AleksanderBalobanov E Oct. 12, 2015, 8 p.m. OK MS C++ TESTS 60 4570 212377600 2800
13582049 AleksanderBalobanov E Oct. 12, 2015, 6:56 p.m. OK MS C++ TESTS 60 4586 212377600 2800
13583073 AleksanderBalobanov E Oct. 12, 2015, 8:02 p.m. OK MS C++ TESTS 60 4804 212377600 2800
13583026 AleksanderBalobanov E Oct. 12, 2015, 7:58 p.m. OK MS C++ TESTS 60 4928 212377600 2800

remove filters

Back to search problems