Codeforces Round 210 (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
360 Codeforces Round 210 (Div. 1) FINISHED False 7200 347720399 Nov. 10, 2013, 5 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 406 ) D Levko and Sets PROGRAMMING number theory 2600

B"Levko loves all sorts of sets very much. Levko has two arrays of integers a1, xe2 x80 x89a2, xe2 x80 x89... , xe2 x80 x89an and b1, xe2 x80 x89b2, xe2 x80 x89... , xe2 x80 x89bm and a prime number p. Today he generates n sets. Let's describe the generation process for the i-th set: Levko wonders, how many numbers belong to at least one set. That is, he wants to know what size is the union of n generated sets. The first line contains three integers n, m and p (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89104, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89p xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109), p is prime. The second line contains space-separated 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 x80 x89p). The third line contains space-separated integers b1, xe2 x80 x89b2, xe2 x80 x89... , xe2 x80 x89bm (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). The single number -- the size of the union of the sets."...

Tutorials

Codeforces Round #210 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
18534262 vjudge2 D June 17, 2016, 2:04 a.m. OK FPC TESTS 102 1606 307200 2600
10909715 ljz D April 27, 2015, 1:56 p.m. OK FPC TESTS 102 2011 21606400 2600
15956486 dingzijun1999 D Feb. 11, 2016, 1:17 p.m. OK FPC TESTS 102 2386 409600 2600
18522863 jiaqiyang D June 16, 2016, 2:48 p.m. OK GNU C++ TESTS 102 46 2048000 2600
42295580 Scut82 D Aug. 31, 2018, 2:45 a.m. OK GNU C++ TESTS 102 46 178585600 2600
5051029 lgarithm D Nov. 10, 2013, 6:24 p.m. OK GNU C++ TESTS 102 62 0 2600
39210884 none44353 D June 13, 2018, 8:57 a.m. OK GNU C++ TESTS 102 62 204800 2600
5050936 Dmitry_Egorov D Nov. 10, 2013, 6:22 p.m. OK GNU C++ TESTS 102 62 1536000 2600
40989406 ReaLNero1 D July 30, 2018, 10:53 p.m. OK GNU C++ TESTS 102 62 2150400 2600
16872312 abeker D March 22, 2016, 2:28 p.m. OK GNU C++ TESTS 102 62 2969600 2600
5195516 RNS_MHB D Nov. 23, 2013, 2:23 a.m. OK GNU C++ TESTS 102 62 35328000 2600
5359569 kharzai D Dec. 6, 2013, 9:58 a.m. OK GNU C++ TESTS 102 78 819200 2600
7007638 desert97 D July 4, 2014, 1:44 a.m. OK GNU C++ TESTS 102 78 2662400 2600
5052750 Swistakk D Nov. 10, 2013, 7:15 p.m. OK GNU C++0x TESTS 102 46 1945600 2600
5050472 tomek D Nov. 10, 2013, 6:11 p.m. OK GNU C++0x TESTS 102 78 307200 2600
7376779 yutaka1999 D Aug. 8, 2014, 2:31 p.m. OK GNU C++0x TESTS 102 78 921600 2600
9963654 snuke D Feb. 22, 2015, 9:39 p.m. OK GNU C++0x TESTS 102 109 2457600 2600
8239068 soda_beta D Oct. 15, 2014, 3:56 p.m. OK GNU C++0x TESTS 102 139 1024000 2600
7503790 ztk D Aug. 18, 2014, 6:56 p.m. OK GNU C++0x TESTS 102 421 1228800 2600
5081606 Aphrotemis D Nov. 13, 2013, 6:06 a.m. OK GNU C++0x TESTS 102 748 512000 2600
5096640 mruxim D Nov. 14, 2013, 11:23 a.m. OK GNU C++0x TESTS 102 764 102400 2600
5081680 Aphrotemis D Nov. 13, 2013, 6:19 a.m. OK GNU C++0x TESTS 102 764 512000 2600
5081613 Aphrotemis D Nov. 13, 2013, 6:07 a.m. OK GNU C++0x TESTS 102 764 512000 2600
55196937 SoiMae D June 6, 2019, 8:54 a.m. OK GNU C++11 TESTS 102 46 40960000 2600
65563839 JCC_ D Nov. 23, 2019, 4:50 a.m. OK GNU C++11 TESTS 102 62 1638400 2600
55183543 SoiMae D June 6, 2019, 1:36 a.m. OK GNU C++11 TESTS 102 62 5017600 2600
63270163 vjudge1 D Oct. 24, 2019, 3:28 a.m. OK GNU C++11 TESTS 102 77 1638400 2600
57740755 weng_233 D July 25, 2019, 11:23 a.m. OK GNU C++11 TESTS 102 389 84070400 2600
25866675 Charles_Han D March 28, 2017, 6:38 a.m. OK GNU C++11 TESTS 102 405 3379200 2600
40016373 yasugongshang D July 6, 2018, 2:37 a.m. OK GNU C++11 TESTS 102 421 13312000 2600
16905065 DBradac D March 24, 2016, 11:29 a.m. OK GNU C++11 TESTS 102 436 2969600 2600
15419903 OOOotaku D Jan. 17, 2016, 11:50 p.m. OK GNU C++11 TESTS 102 623 21708800 2600
56645259 xielinhan D July 7, 2019, 6:01 a.m. OK GNU C++11 TESTS 102 717 2048000 2600
28730063 LiChenKoh D July 20, 2017, 4:58 p.m. OK GNU C++14 TESTS 102 61 2560000 2600
34264459 cyz666 D Jan. 18, 2018, 2:10 a.m. OK GNU C++14 TESTS 102 77 2457600 2600
56458488 Scut82 D July 3, 2019, 5:33 a.m. OK GNU C++14 TESTS 102 77 18022400 2600
35837688 The_Unbeatable D March 2, 2018, 1:17 p.m. OK GNU C++14 TESTS 102 608 24473600 2600
60476919 Origenes D Sept. 13, 2019, 8:39 a.m. OK GNU C++14 TESTS 102 670 1843200 2600
46633855 Marckess D Dec. 5, 2018, 5:25 a.m. OK GNU C++14 TESTS 102 748 1228800 2600
46634850 Marckess D Dec. 5, 2018, 6:01 a.m. OK GNU C++14 TESTS 102 764 1228800 2600
46635013 Marckess D Dec. 5, 2018, 6:07 a.m. OK GNU C++14 TESTS 102 780 1228800 2600
63356585 QuartZ_Z D Oct. 25, 2019, 3:03 a.m. OK GNU C++14 TESTS 102 795 2457600 2600
25798728 Egor.Lifar D March 25, 2017, 1:26 p.m. OK GNU C++14 TESTS 102 826 1945600 2600
51559811 Shayan.P D March 20, 2019, 7:30 a.m. OK GNU C++17 TESTS 102 670 0 2600
56503519 AlphaWA D July 4, 2019, 7:24 a.m. OK GNU C++17 TESTS 102 702 102400 2600
56507861 AlphaWA D July 4, 2019, 9:11 a.m. OK GNU C++17 TESTS 102 717 102400 2600
56478929 AlphaWA D July 3, 2019, 3:03 p.m. OK GNU C++17 TESTS 102 717 102400 2600
53003400 sinus_070 D April 19, 2019, 8:20 a.m. OK GNU C++17 TESTS 102 717 1126400 2600
60683981 hjk1030 D Sept. 16, 2019, 2:48 p.m. OK GNU C++17 TESTS 102 717 1228800 2600
53003447 sinus_070 D April 19, 2019, 8:22 a.m. OK GNU C++17 TESTS 102 717 1228800 2600
56518073 pkgunboat D July 4, 2019, 1:40 p.m. OK GNU C++17 TESTS 102 733 1638400 2600
57780536 vjudge4 D July 26, 2019, 5:47 a.m. OK GNU C++17 TESTS 102 811 819200 2600
55850706 ruo D June 21, 2019, 3:24 a.m. OK GNU C++17 TESTS 102 826 921600 2600
5051690 mmaxio D Nov. 10, 2013, 6:42 p.m. OK Java 7 TESTS 102 1216 102400 2600
5115494 m.radwan D Nov. 15, 2013, 9:45 a.m. OK Java 7 TESTS 102 1263 307200 2600
5048226 Egor D Nov. 10, 2013, 5:51 p.m. OK Java 7 TESTS 102 1731 0 2600
59895235 vish26 D Sept. 2, 2019, 11:53 a.m. OK Java 8 TESTS 102 2651 0 2600
10123001 azukun D March 2, 2015, 5:29 p.m. OK MS C# TESTS 102 1341 81408000 2600
5056108 RAVEman D Nov. 10, 2013, 9:54 p.m. OK MS C++ TESTS 102 1076 921600 2600
5051095 bayleef D Nov. 10, 2013, 6:26 p.m. OK MS C++ TESTS 102 1107 409600 2600
19158564 DEGwer D July 15, 2016, 5:17 p.m. OK MS C++ TESTS 102 1903 204800 2600
10994197 polequoll D May 4, 2015, 9:46 a.m. OK MS C++ TESTS 102 2199 2764800 2600

remove filters

Back to search problems