Codeforces Round 306 (Div. 2)

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
550 Codeforces Round 306 (Div. 2) FINISHED False 7200 298387799 June 4, 2015, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 21598 ) B Preparing Olympiad PROGRAMMING bitmasks brute force 1500

B"You have n problems. You have estimated the difficulty of the i-th one as integer ci. Now you want to prepare a problemset for a contest, using some of the problems you've made. A problemset for the contest must consist of at least two problems. You think that the total difficulty of the problems of the contest must be at least l and at most r. Also, you think that the difference between difficulties of the easiest and the hardest of the chosen problems must be at least x. Find the number of ways to choose a problemset for the contest. The first line contains four integers n, l, r, x (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8915, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106) -- the number of problems you have, the minimum and maximum value of total difficulty of the problemset and the minimum difference in difficulty between the hardest problem in the pack and the easiest one, respectively. The second line contains n integers c1, xe2 x80 x89c2, xe2 x80 x89..., xe2 x80 x89cn (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ci xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106) -- the difficulty of each problem. Print the number of ways to choose a suitable problemset for the contest. In the first example two sets are suitable, one consisting of the second and third problem, another one consisting of all three problems. In the second example, two sets of problems are suitable -- the set of problems with difficulties 10 and 30 as well as the set of problems with difficulties 20 and 30. In the third example any set consisting of one problem of difficulty 10 and one problem of difficulty 20 is suitable."...

Tutorials

Разбор задач Codeforces Round #306 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
56691712 vjudge4 B July 8, 2019, 4:26 a.m. OK Clang++17 Diagnostics TESTS 30 421 13619200 1500
33663922 Juse8 B Dec. 27, 2017, 8:19 a.m. OK FPC TESTS 30 15 1638400 1500
33664680 Deniskekk B Dec. 27, 2017, 9:01 a.m. OK FPC TESTS 30 15 1638400 1500
33671994 KOVAL_ B Dec. 27, 2017, 3:09 p.m. OK FPC TESTS 30 15 1638400 1500
33642712 olga_s2004 B Dec. 26, 2017, 9:35 a.m. OK FPC TESTS 30 15 1638400 1500
33640621 kiok B Dec. 26, 2017, 8:54 a.m. OK FPC TESTS 30 15 1638400 1500
33663905 Heymeka B Dec. 27, 2017, 8:17 a.m. OK FPC TESTS 30 15 1638400 1500
33664894 Andrey34 B Dec. 27, 2017, 9:11 a.m. OK FPC TESTS 30 15 6656000 1500
33642351 sokirko_2003 B Dec. 26, 2017, 9:20 a.m. OK FPC TESTS 30 15 9625600 1500
44623514 vjudge3 B Oct. 21, 2018, 7:51 a.m. OK FPC TESTS 30 30 0 1500
58955029 Craspedacusta B Aug. 17, 2019, 12:36 p.m. OK FPC TESTS 30 31 0 1500
41417023 vjudge5 B Aug. 10, 2018, 4:10 a.m. OK GNU C++ TESTS 30 15 0 1500
39746887 wdc214514867 B June 28, 2018, 3:15 p.m. OK GNU C++ TESTS 30 15 0 1500
39688322 starnight B June 27, 2018, 1:14 a.m. OK GNU C++ TESTS 30 15 0 1500
36249341 vjudge1 B March 13, 2018, 1:02 p.m. OK GNU C++ TESTS 30 15 1843200 1500
34081344 IceCab B Jan. 11, 2018, 5:05 a.m. OK GNU C++ TESTS 30 15 1843200 1500
35972871 AuroraPrz1809 B March 5, 2018, 5:12 p.m. OK GNU C++ TESTS 30 15 1945600 1500
36261220 Ehsan_sShuvo B March 13, 2018, 9:17 p.m. OK GNU C++ TESTS 30 15 2048000 1500
36243365 vjudge3 B March 13, 2018, 9:25 a.m. OK GNU C++ TESTS 30 15 2048000 1500
36153971 pg_81 B March 10, 2018, 2:51 p.m. OK GNU C++ TESTS 30 15 2048000 1500
36133089 vjudge3 B March 10, 2018, 12:29 a.m. OK GNU C++ TESTS 30 15 2048000 1500
61582101 vjudge2 B Oct. 1, 2019, 2:33 a.m. OK GNU C11 TESTS 30 30 0 1500
45563200 dhuacm10 B Nov. 11, 2018, 12:54 p.m. OK GNU C11 TESTS 30 31 0 1500
46330440 pydu69 B Nov. 28, 2018, 3:45 p.m. OK GNU C11 TESTS 30 31 0 1500
57746134 naro_ttam B July 25, 2019, 1:05 p.m. OK GNU C11 TESTS 30 31 0 1500
65888583 kaiboy B Nov. 28, 2019, 1:38 a.m. OK GNU C11 TESTS 30 31 0 1500
45584364 yrk317 B Nov. 12, 2018, 7:21 a.m. OK GNU C11 TESTS 30 31 0 1500
39187028 MoHafez11 B June 12, 2018, 9:47 a.m. OK GNU C++11 TESTS 30 15 0 1500
39511223 colintian B June 22, 2018, 9:14 a.m. OK GNU C++11 TESTS 30 15 0 1500
39663529 Control_xl B June 26, 2018, 2:41 a.m. OK GNU C++11 TESTS 30 15 0 1500
48586021 Amir_Diab B Jan. 19, 2019, 7:44 p.m. OK GNU C++11 TESTS 30 15 0 1500
38451603 arqum123 B May 20, 2018, 7:58 a.m. OK GNU C++11 TESTS 30 15 0 1500
36067487 Abanob_Emad66 B March 8, 2018, 10:38 a.m. OK GNU C++11 TESTS 30 15 2048000 1500
36212114 Arrow97 B March 11, 2018, 11:31 p.m. OK GNU C++11 TESTS 30 15 2048000 1500
36205578 Nadaessam B March 11, 2018, 4:30 p.m. OK GNU C++11 TESTS 30 15 2048000 1500
36183740 cristhian3798 B March 11, 2018, 2:59 a.m. OK GNU C++11 TESTS 30 15 2048000 1500
36181092 Zular. B March 10, 2018, 11:09 p.m. OK GNU C++11 TESTS 30 15 2048000 1500
58148699 Ciafrino B Aug. 2, 2019, 12:52 a.m. OK GNU C++14 TESTS 30 15 0 1500
57560986 Mohammed_Saad B July 23, 2019, 12:36 a.m. OK GNU C++14 TESTS 30 15 0 1500
60160745 lybzscyzb B Sept. 6, 2019, 8:53 a.m. OK GNU C++14 TESTS 30 15 0 1500
57297905 eslam733 B July 18, 2019, 8:31 p.m. OK GNU C++14 TESTS 30 15 0 1500
68853112 siddhant1 B Jan. 15, 2020, 9:43 a.m. OK GNU C++14 TESTS 30 15 0 1500
66403060 NajmAdin B Dec. 6, 2019, 12:51 p.m. OK GNU C++14 TESTS 30 15 0 1500
60390564 Ola.Abdallah B Sept. 11, 2019, 1:09 p.m. OK GNU C++14 TESTS 30 15 0 1500
60390712 Ola.Abdallah B Sept. 11, 2019, 1:12 p.m. OK GNU C++14 TESTS 30 15 0 1500
60902973 mysterious_user B Sept. 19, 2019, 11:49 p.m. OK GNU C++14 TESTS 30 15 0 1500
65482863 hhttu B Nov. 21, 2019, 12:14 p.m. OK GNU C++14 TESTS 30 15 0 1500
63540914 Prosperity B Oct. 27, 2019, 9:17 a.m. OK GNU C++17 TESTS 30 15 0 1500
69529388 vjudge3 B Jan. 25, 2020, 4:27 p.m. OK GNU C++17 TESTS 30 15 0 1500
68583494 nirjhorJU B Jan. 11, 2020, 10:40 a.m. OK GNU C++17 TESTS 30 15 0 1500
68376481 hopeandlearn B Jan. 7, 2020, 8:14 p.m. OK GNU C++17 TESTS 30 15 0 1500
67575451 vjudge3 B Dec. 25, 2019, 1:36 a.m. OK GNU C++17 TESTS 30 15 0 1500
66290611 Khostiqa B Dec. 4, 2019, 10:12 p.m. OK GNU C++17 TESTS 30 15 0 1500
66240546 Ebiarat B Dec. 3, 2019, 5:58 p.m. OK GNU C++17 TESTS 30 15 0 1500
66204005 Ma7moud.7amdy B Dec. 3, 2019, 12:16 a.m. OK GNU C++17 TESTS 30 15 0 1500
64324612 Mr_Frodo B Nov. 5, 2019, 4:50 p.m. OK GNU C++17 TESTS 30 15 0 1500
63075134 vjudge1 B Oct. 21, 2019, 1:30 p.m. OK GNU C++17 TESTS 30 15 0 1500
40533763 vjudge2 B July 19, 2018, 4:54 a.m. OK GNU C++17 Diagnostics TESTS 30 1107 2150400 1500
40078132 anniddleston B July 8, 2018, 7:15 a.m. OK GNU C++17 Diagnostics TESTS 30 1138 3072000 1500
60452290 AmmarKayaliite B Sept. 12, 2019, 4:26 p.m. OK Java 8 TESTS 30 108 0 1500
51809867 KevinLiu1006 B March 25, 2019, 4:21 a.m. OK Java 8 TESTS 30 108 0 1500
68983470 Shetewi B Jan. 17, 2020, 11:37 a.m. OK Java 8 TESTS 30 109 0 1500
68453671 sakt_coder B Jan. 9, 2020, 3:17 p.m. OK Java 8 TESTS 30 109 0 1500
68424312 HashHakim B Jan. 9, 2020, 1:52 a.m. OK Java 8 TESTS 30 109 0 1500
67023519 Apurva021 B Dec. 16, 2019, 1:40 p.m. OK Java 8 TESTS 30 109 0 1500
64755598 an09mous B Nov. 12, 2019, 4:48 p.m. OK Java 8 TESTS 30 109 0 1500
62945139 Azakarka B Oct. 19, 2019, 5:02 p.m. OK Java 8 TESTS 30 109 0 1500
60578214 vjudge2 B Sept. 14, 2019, 5:22 p.m. OK Java 8 TESTS 30 109 0 1500
59677627 Jarik B Aug. 29, 2019, 6:51 p.m. OK Java 8 TESTS 30 109 0 1500
68486303 Killer45 B Jan. 10, 2020, 9:52 a.m. OK Kotlin TESTS 30 155 512000 1500
62941419 david_varela B Oct. 19, 2019, 3:44 p.m. OK Kotlin TESTS 30 171 1228800 1500
40263660 Mosyagin B July 13, 2018, 1:54 p.m. OK Mono C# TESTS 30 46 0 1500
66305162 dobrydin45 B Dec. 5, 2019, 9:02 a.m. OK Mono C# TESTS 30 61 1331200 1500
69475115 speed439 B Jan. 24, 2020, 3:53 p.m. OK Mono C# TESTS 30 62 0 1500
61218780 dobrydin45 B Sept. 24, 2019, 1:25 p.m. OK Mono C# TESTS 30 62 6656000 1500
44093545 nemars B Oct. 10, 2018, 9:10 p.m. OK Mono C# TESTS 30 77 6758400 1500
61202400 dobrydin45 B Sept. 24, 2019, 8:18 a.m. OK Mono C# TESTS 30 93 10547200 1500
39739001 245489633 B June 28, 2018, 9:57 a.m. OK MS C++ TESTS 30 15 0 1500
38391840 vjudge1 B May 18, 2018, 6:48 a.m. OK MS C++ TESTS 30 15 307200 1500
34228283 GMNY B Jan. 16, 2018, 5:17 p.m. OK MS C++ TESTS 30 15 2048000 1500
33657858 axwell B Dec. 26, 2017, 9:50 p.m. OK MS C++ TESTS 30 15 2048000 1500
35906271 Volpe B March 4, 2018, 3:52 a.m. OK MS C++ TESTS 30 15 2048000 1500
38326026 vjudge5 B May 16, 2018, 2:52 p.m. OK MS C++ TESTS 30 15 3481600 1500
39330259 Yedoost B June 17, 2018, 8:58 a.m. OK MS C++ TESTS 30 30 0 1500
40155000 karroy B July 10, 2018, 2:13 a.m. OK MS C++ TESTS 30 30 0 1500
43558224 vjudge5 B Sept. 29, 2018, 7:26 a.m. OK MS C++ TESTS 30 30 0 1500
43518634 vjudge5 B Sept. 28, 2018, 6:51 a.m. OK MS C++ TESTS 30 30 307200 1500
58193961 CtrlAlt B Aug. 2, 2019, 9:50 p.m. OK MS C++ 2017 TESTS 30 30 0 1500
49694250 Gladius_Smerch B Feb. 10, 2019, 12:56 p.m. OK MS C++ 2017 TESTS 30 31 0 1500
69792945 vjudge3 B Jan. 29, 2020, 7:05 p.m. OK MS C++ 2017 TESTS 30 31 0 1500
69563041 vjudge5 B Jan. 26, 2020, 11:21 a.m. OK MS C++ 2017 TESTS 30 31 0 1500
61033764 poormate B Sept. 21, 2019, 6:46 p.m. OK MS C++ 2017 TESTS 30 31 0 1500
59840723 vjudge4 B Sept. 1, 2019, 7:06 a.m. OK MS C++ 2017 TESTS 30 31 0 1500
59055753 vjudge3 B Aug. 18, 2019, 6:51 p.m. OK MS C++ 2017 TESTS 30 31 0 1500
54799416 VladKozin B May 29, 2019, 11:16 a.m. OK MS C++ 2017 TESTS 30 31 0 1500
53977511 zhuiyi B May 11, 2019, 5:14 a.m. OK MS C++ 2017 TESTS 30 31 0 1500
50318380 jianqi777 B Feb. 22, 2019, 1:20 p.m. OK MS C++ 2017 TESTS 30 31 0 1500
62142230 dronev02 B Oct. 8, 2019, 3:51 p.m. OK PyPy 3 TESTS 30 155 2867200 1500
58676443 Leendertz B Aug. 12, 2019, 4:44 p.m. OK PyPy 3 TESTS 30 155 3072000 1500
64492992 PavelChadnov B Nov. 7, 2019, 9:08 p.m. OK PyPy 3 TESTS 30 156 2560000 1500
54790724 iamprayush B May 29, 2019, 6:58 a.m. OK PyPy 3 TESTS 30 171 1228800 1500
69471731 fruithead123 B Jan. 24, 2020, 2:45 p.m. OK PyPy 3 TESTS 30 171 3072000 1500
60579351 vjudge1 B Sept. 14, 2019, 5:48 p.m. OK PyPy 3 TESTS 30 171 5120000 1500
67420317 hjq000 B Dec. 22, 2019, 11:25 a.m. OK PyPy 3 TESTS 30 171 6451200 1500
54790641 iamprayush B May 29, 2019, 6:56 a.m. OK PyPy 3 TESTS 30 186 2048000 1500
56404319 ananya17020 B July 1, 2019, 6:31 p.m. OK PyPy 3 TESTS 30 187 3072000 1500
68875128 nethish B Jan. 15, 2020, 4:39 p.m. OK PyPy 3 TESTS 30 218 3584000 1500
39976101 franckmy B July 5, 2018, 7:16 a.m. OK Python 2 TESTS 30 187 0 1500
45789168 FlyingBag65 B Nov. 16, 2018, 5:29 a.m. OK Python 2 TESTS 30 265 2150400 1500
58928167 vjudge2 B Aug. 16, 2019, 9:04 p.m. OK Python 2 TESTS 30 280 0 1500
50055095 ashok123 B Feb. 17, 2019, 9:53 a.m. OK Python 2 TESTS 30 296 0 1500
37557240 ngtien2 B April 23, 2018, 6:31 p.m. OK Python 2 TESTS 30 327 6041600 1500
35887541 ______u______ B March 3, 2018, 2:06 p.m. OK Python 3 TESTS 30 109 5632000 1500
35887520 ______n______ B March 3, 2018, 2:06 p.m. OK Python 3 TESTS 30 109 5632000 1500
35887127 _____k_____ B March 3, 2018, 1:58 p.m. OK Python 3 TESTS 30 109 5632000 1500
35886181 _____i_____ B March 3, 2018, 1:42 p.m. OK Python 3 TESTS 30 109 5632000 1500
35875231 ______h______ B March 3, 2018, 8:09 a.m. OK Python 3 TESTS 30 109 5632000 1500
35874984 ______k______ B March 3, 2018, 8:03 a.m. OK Python 3 TESTS 30 109 5632000 1500
35874613 ______i______ B March 3, 2018, 7:57 a.m. OK Python 3 TESTS 30 109 5632000 1500
35872778 ______M______ B March 3, 2018, 7:16 a.m. OK Python 3 TESTS 30 109 5632000 1500
38810347 kireto B May 31, 2018, 5:58 p.m. OK Python 3 TESTS 30 109 9011200 1500
40151117 Efve B July 9, 2018, 8:58 p.m. OK Python 3 TESTS 30 124 0 1500
58551848 vjudge2 B Aug. 10, 2019, 8:38 p.m. OK Rust TESTS 30 31 0 1500

remove filters

Back to search problems