Codeforces Round 215 (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
367 Codeforces Round 215 (Div. 1) FINISHED False 7200 352218597 Nov. 26, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 666 ) D Sereja and Sets PROGRAMMING bitmasks dfs and similar 2400

B"Sereja has m non-empty sets of integers A1, xe2 x80 x89A2, xe2 x80 x89..., xe2 x80 x89Am. What a lucky coincidence! The given sets are a partition of the set of all integers from 1 to n. In other words, for any integer v (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89v xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) there is exactly one set At such that . Also Sereja has integer d. Sereja decided to choose some sets from the sets he has. Let's suppose that i1, xe2 x80 x89i2, xe2 x80 x89..., xe2 x80 x89ik (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i1 xe2 x80 x89< xe2 x80 x89i2 xe2 x80 x89< xe2 x80 x89... xe2 x80 x89< xe2 x80 x89ik xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m) are indexes of the chosen sets. Then let's define an array of integers b, sorted in ascending order, as a union of the chosen sets, that is, . We'll represent the element with number j in this array (in ascending order) as bj. Sereja considers his choice of sets correct, if the following conditions are met: Sereja wants to know what is the minimum number of sets (k) that he can choose so that his choice will be correct. Help him with that. The first line contains integers n, m, d (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89d xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8920). The next m lines contain sets. The first number in the i-th line is si (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89si xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n). This number denotes the size of the i-th set. Then the line contains si distinct integers from 1 to n -- set Ai. It is guaranteed that the sets form partition of all integers from 1 to n. In a single line print the answer to the problem -- the minimum value k at the right choice."...

Tutorials

Codeforces Round #215 — tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
5260551 Gassa D Nov. 26, 2013, 6:39 p.m. OK D TESTS 70 140 1536000 2400
5255615 Alex_2oo8 D Nov. 26, 2013, 5:15 p.m. OK FPC TESTS 70 124 4710400 2400
5378069 Reventon1 D Dec. 7, 2013, 6:29 p.m. OK FPC TESTS 70 187 1945600 2400
7992904 hcmus_k14 D Sept. 28, 2014, 10:31 a.m. OK FPC TESTS 70 202 1945600 2400
5253588 Myth5 D Nov. 26, 2013, 4:51 p.m. OK GNU C++ TESTS 70 31 1433600 2400
5450505 eggeek D Dec. 16, 2013, 1:54 p.m. OK GNU C++ TESTS 70 31 5632000 2400
5286870 qinhang3 D Nov. 28, 2013, 1:45 p.m. OK GNU C++ TESTS 70 31 5632000 2400
17214429 Solaris D April 7, 2016, 3:46 p.m. OK GNU C++ TESTS 70 31 8089600 2400
5864051 HIR180 D Feb. 1, 2014, 4:54 p.m. OK GNU C++ TESTS 70 46 1433600 2400
5864067 HIR180 D Feb. 1, 2014, 4:57 p.m. OK GNU C++ TESTS 70 46 1433600 2400
5360255 mstczuo D Dec. 6, 2013, 12:22 p.m. OK GNU C++ TESTS 70 46 1433600 2400
5325244 pieprzu D Dec. 2, 2013, 2:01 a.m. OK GNU C++ TESTS 70 46 1433600 2400
5250841 PavelKunyavskiy D Nov. 26, 2013, 4:21 p.m. OK GNU C++ TESTS 70 46 1433600 2400
5263173 Yousef_Salama D Nov. 26, 2013, 9:43 p.m. OK GNU C++ TESTS 70 46 1843200 2400
5255910 tomasz.kociumaka D Nov. 26, 2013, 5:18 p.m. OK GNU C++0x TESTS 70 31 1843200 2400
5271397 MinakoKojima D Nov. 27, 2013, 12:08 p.m. OK GNU C++0x TESTS 70 46 1433600 2400
5447011 Zuza D Dec. 15, 2013, 7:41 p.m. OK GNU C++0x TESTS 70 46 2867200 2400
5266593 zcg.cs60 D Nov. 26, 2013, 11:51 p.m. OK GNU C++0x TESTS 70 46 4608000 2400
8031211 hogloid D Sept. 30, 2014, 1:13 a.m. OK GNU C++0x TESTS 70 61 5017600 2400
5568216 evima D Dec. 30, 2013, 10:39 a.m. OK GNU C++0x TESTS 70 62 4608000 2400
6508726 crazypursuer D April 30, 2014, 4:45 a.m. OK GNU C++0x TESTS 70 62 4608000 2400
7349550 delta_4d D Aug. 5, 2014, 5:52 a.m. OK GNU C++0x TESTS 70 77 11571200 2400
5600519 savinov D Jan. 1, 2014, 8:49 p.m. OK GNU C++0x TESTS 70 78 1433600 2400
5484073 White_Bear D Dec. 20, 2013, 10:38 p.m. OK GNU C++0x TESTS 70 78 2867200 2400
61508461 rainboy D Sept. 29, 2019, 3:17 p.m. OK GNU C11 TESTS 70 62 1433600 2400
20812933 eddy1021 D Sept. 22, 2016, 8:40 a.m. OK GNU C++11 TESTS 70 46 1843200 2400
29506934 ntu_vjudge_2 D Aug. 16, 2017, 1:48 p.m. OK GNU C++11 TESTS 70 46 1843200 2400
15722026 joisino D Feb. 1, 2016, 12:30 a.m. OK GNU C++11 TESTS 70 46 2560000 2400
63561228 Fister D Oct. 27, 2019, 2:19 p.m. OK GNU C++11 TESTS 70 46 5427200 2400
11177575 tanphatls987 D May 20, 2015, 12:37 p.m. OK GNU C++11 TESTS 70 46 8396800 2400
11349793 pulkitg10 D May 29, 2015, 6:58 p.m. OK GNU C++11 TESTS 70 46 10035200 2400
11768918 cq_phqg D June 26, 2015, 6:08 a.m. OK GNU C++11 TESTS 70 46 10444800 2400
57820368 py_ultron D July 26, 2019, 10:38 p.m. OK GNU C++11 TESTS 70 46 10752000 2400
57893292 lopare D July 28, 2019, 12:36 p.m. OK GNU C++11 TESTS 70 46 10752000 2400
29481795 ntu_vjudge_2 D Aug. 15, 2017, 12:52 p.m. OK GNU C++11 TESTS 70 46 13004800 2400
36087471 Artemis_Fowl D March 9, 2018, 5:29 a.m. OK GNU C++14 TESTS 70 46 4403200 2400
33382685 gkevinyen5418 D Dec. 18, 2017, 2:32 p.m. OK GNU C++14 TESTS 70 46 4710400 2400
29346032 qazwsxedcrfvtg14 D Aug. 11, 2017, 7:18 a.m. OK GNU C++14 TESTS 70 46 12800000 2400
36239952 The_Unbeatable D March 13, 2018, 6:03 a.m. OK GNU C++14 TESTS 70 61 7577600 2400
33085150 ImaniAm D Dec. 10, 2017, 7:53 p.m. OK GNU C++14 TESTS 70 62 3379200 2400
33454317 omidazadi D Dec. 20, 2017, 11:52 a.m. OK GNU C++14 TESTS 70 62 5427200 2400
37834850 erfan._.m D May 2, 2018, 8:58 a.m. OK GNU C++14 TESTS 70 62 7372800 2400
44369458 spj_29 D Oct. 15, 2018, 6:16 p.m. OK GNU C++14 TESTS 70 62 17203200 2400
58152498 RobeZH D Aug. 2, 2019, 3:26 a.m. OK GNU C++14 TESTS 70 62 22016000 2400
21886151 satyaki3794 D Oct. 30, 2016, 4:25 a.m. OK GNU C++14 TESTS 70 62 22425600 2400
66292474 Phortox D Dec. 5, 2019, 12:30 a.m. OK GNU C++17 TESTS 70 78 4608000 2400
46848107 amnesiac_dusk D Dec. 10, 2018, 10:51 a.m. OK GNU C++17 TESTS 70 78 16486400 2400
58259379 pkgunboat D Aug. 4, 2019, 11:34 a.m. OK GNU C++17 TESTS 70 93 1433600 2400
60742981 -is-this-fft- D Sept. 17, 2019, 9:51 p.m. OK GNU C++17 TESTS 70 93 1843200 2400
56020722 ruo D June 25, 2019, 3:04 a.m. OK GNU C++17 TESTS 70 93 2560000 2400
63651943 vjudge5 D Oct. 28, 2019, 11:39 a.m. OK GNU C++17 TESTS 70 93 4608000 2400
50667105 mohammadrobot D March 2, 2019, 4:56 a.m. OK GNU C++17 TESTS 70 93 12595200 2400
63659936 vjudge3 D Oct. 28, 2019, 1:46 p.m. OK GNU C++17 TESTS 70 108 4608000 2400
57858666 89264270823 D July 27, 2019, 4:25 p.m. OK GNU C++17 TESTS 70 124 10035200 2400
62779407 VodkaInTheJar D Oct. 17, 2019, 12:31 p.m. OK GNU C++17 TESTS 70 140 6656000 2400
5268755 uwi D Nov. 27, 2013, 6:28 a.m. OK Java 6 TESTS 70 109 0 2400
5256295 uwi D Nov. 26, 2013, 5:23 p.m. OK Java 6 TESTS 70 218 0 2400
5250497 Egor D Nov. 26, 2013, 4:18 p.m. OK Java 7 TESTS 70 78 0 2400
5291626 xenoslash D Nov. 29, 2013, 6:35 a.m. OK Java 7 TESTS 70 93 0 2400
5250694 cerealguy D Nov. 26, 2013, 4:19 p.m. OK Java 7 TESTS 70 93 0 2400
5251213 Petr D Nov. 26, 2013, 4:25 p.m. OK Java 7 TESTS 70 124 0 2400
12595005 free.dom D Aug. 18, 2015, 11:47 p.m. OK Java 7 TESTS 70 124 0 2400
5273902 vadimmm D Nov. 27, 2013, 3:26 p.m. OK Java 7 TESTS 70 140 0 2400
5265067 yarrr D Nov. 26, 2013, 10:21 p.m. OK Java 7 TESTS 70 140 0 2400
5252895 niyaznigmatul D Nov. 26, 2013, 4:43 p.m. OK Java 7 TESTS 70 140 0 2400
5362486 harhrayr D Dec. 6, 2013, 7 p.m. OK Java 7 TESTS 70 156 0 2400
5413956 chinh7 D Dec. 12, 2013, 9:42 a.m. OK Java 7 TESTS 70 171 0 2400
9638169 m.radwan D Jan. 31, 2015, 7:24 a.m. OK Java 8 TESTS 70 202 0 2400
61508460 Dukkha D Sept. 29, 2019, 3:17 p.m. OK Java 8 TESTS 70 296 0 2400
10160306 azukun D March 5, 2015, 12:05 p.m. OK MS C# TESTS 70 170 21299200 2400
6543745 Frivolous D May 4, 2014, 10:33 a.m. OK MS C++ TESTS 70 78 1536000 2400
5402086 cvm D Dec. 10, 2013, 8:56 a.m. OK MS C++ TESTS 70 78 2355200 2400
5323816 NALP D Dec. 1, 2013, 6:47 p.m. OK MS C++ TESTS 70 78 16076800 2400
5259106 cfy D Nov. 26, 2013, 5:57 p.m. OK MS C++ TESTS 70 78 17100800 2400
6295249 blueseen D April 7, 2014, 1:21 p.m. OK MS C++ TESTS 70 93 1740800 2400
10995637 Alex7 D May 4, 2015, 12:22 p.m. OK MS C++ TESTS 70 93 2867200 2400
5260638 kcm1700 D Nov. 26, 2013, 6:43 p.m. OK MS C++ TESTS 70 93 12492800 2400
11051813 polequoll D May 9, 2015, 5:19 a.m. OK MS C++ TESTS 70 108 36864000 2400
5252364 pjsdream D Nov. 26, 2013, 4:38 p.m. OK MS C++ TESTS 70 124 9113600 2400
5340023 oml1111 D Dec. 3, 2013, 4:03 a.m. OK MS C++ TESTS 70 140 1843200 2400

remove filters

Back to search problems