SWERC 2022-2023 - Online Mirror (Unrated, ICPC Rules, Teams Preferred)

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
1776 SWERC 2022-2023 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 99600923 Feb. 19, 2023, 11:05 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 981 ) C Library game PROGRAMMING games greedy interactive sortings

Alessia and Bernardo are discovering the world of competitive programming through the books of their university library. The library consists of (m) sections numbered from (1) to (m). Each section contains only books dedicated to a particular subject and different sections correspond to different subjects. In order to prevent the students from wandering in the library, the university has established a system of passes. Each pass has a length (y) associated to it and allows access to an interval of (y) consecutive sections in the library. During a visit, the student must choose exactly one book from one of these sections and leave the library. Each pass can be used only once. At the moment Alessia and Bernardo have (n) passes of lengths (x_1, \, x_2, \, \dots, \, x_n). They have different opinions on the best way to improve: Alessia thinks that it is important to study many different topics, while Bernardo believes that it is important to study deeply at least one topic. So, Alessia wants to use the (n) passes to get (n) books on distinct topics, while Bernardo would like to get at least two books on the same topic. They have reached the following agreement: for each of the following (n) days, Alessia will choose a pass of length (y) among those which are still available and an interval of (y) sections in the library, and Bernardo will go into the library and will take exactly one book from one of those sections. Can Bernardo manage to get at least two books on the same subject, or will Alessia be able to avoid it? You should decide whether you want to be Alessia or Bernardo, and you have to fulfill the goal of your chosen character. The judge will impersonate the other character. Note that, even if at some moment Bernardo has already taken two books on the same subject, the interaction should go on until the end of the (n) days. The first line contains two integers (n) and (m) ($$$1 \le n \le 100$

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
194248775 ghj1222 C Feb. 19, 2023, 3:24 p.m. OK GNU C++14 TESTS 29 0 1843200
194224753 Muelsyse KroosTheKeenGlint C Feb. 19, 2023, 12:18 p.m. OK GNU C++14 TESTS 29 15 0
194224732 hank55663 C Feb. 19, 2023, 12:18 p.m. OK GNU C++14 TESTS 29 15 0
194302361 MakaPakka C Feb. 20, 2023, 1:55 a.m. OK GNU C++14 TESTS 29 15 102400
194241054 ybw051114 C Feb. 19, 2023, 2:21 p.m. OK GNU C++14 TESTS 29 15 102400
194225243 SergiiGolovko C Feb. 19, 2023, 12:22 p.m. OK GNU C++14 TESTS 29 15 204800
194249456 Valters07 C Feb. 19, 2023, 3:30 p.m. OK GNU C++14 TESTS 29 15 512000
194239862 mydcwfy Qiuly.qwq themoon C Feb. 19, 2023, 2:12 p.m. OK GNU C++14 TESTS 29 31 307200
194291501 omeganot C Feb. 19, 2023, 10:34 p.m. OK GNU C++14 TESTS 29 46 102400

remove filters

Back to search problems