Good Bye 2020

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
1466 Good Bye 2020 FINISHED False 10800 128013911 Dec. 30, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 332 ) H Finding satisfactory solutions PROGRAMMING dp graphs greedy math

B"Getting so far in this contest is not an easy feat. By solving all the previous problems, you have impressed the gods greatly. Thus, they decided to spare you the story for this problem and grant a formal statement instead. Consider n agents. Each one of them initially has exactly one item, i -th agent has the item number i . We are interested in reassignments of these items among the agents. An assignment is valid iff each item is assigned to exactly one agent, and each agent is assigned exactly one item. Each agent has a preference over the items, which can be described by a permutation p of items sorted from the most to the least desirable. In other words, the agent prefers item i to item j iff i appears earlier in the permutation p . A preference profile is a list of n permutations of length n each, such that i -th permutation describes preferences of the i -th agent. It is possible that some of the agents are not happy with the assignment of items. A set of dissatisfied agents may choose not to cooperate with other agents. In such a case, they would exchange the items they possess initially ( i -th item belongs to i -th agent) only between themselves. Agents from this group don't care about the satisfaction of agents outside of it. However, they need to exchange their items in such a way that will make at least one of them happier, and none of them less happy (in comparison to the given assignment). Formally, consider a valid assignment of items -- A . Let A(i) denote the item assigned to i -th agent. Also, consider a subset of agents. Let S be the set of their indices. We will say this subset of agents is dissatisfied iff there exists a valid assignment B(i) such that: An assignment is optimal if no subset of the agents is dissatisfied. Note that the empty subset cannot be dissatisfied. It can be proven that for each preference profile, there is"...

Tutorials

Good Bye 2020 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
102876252 RandomID7896 H Dec. 31, 2020, 2:32 a.m. OK GNU C++14 TESTS 74 2854 48742400
102849250 boboniu H Dec. 30, 2020, 5:02 p.m. OK GNU C++17 TESTS 74 155 409600
102855969 semiexp H Dec. 30, 2020, 5:26 p.m. OK GNU C++17 TESTS 74 171 2969600
102858194 lavenderwithbluish H Dec. 30, 2020, 5:32 p.m. OK GNU C++17 TESTS 74 202 2560000
102881902 HIR180 H Dec. 31, 2020, 4:59 a.m. OK GNU C++17 TESTS 74 1903 3993600
102866630 thanhan H Dec. 30, 2020, 8:36 p.m. OK GNU C++17 TESTS 74 4102 2252800
102854498 Radewoosh H Dec. 30, 2020, 5:21 p.m. OK GNU C++17 TESTS 74 4196 3174400
102872609 gisp_zjz H Dec. 30, 2020, 11:42 p.m. OK GNU C++17 TESTS 74 4227 237977600
102872452 gisp_zjz H Dec. 30, 2020, 11:35 p.m. OK GNU C++17 TESTS 74 4273 236441600
102872773 gisp_zjz H Dec. 30, 2020, 11:49 p.m. OK GNU C++17 TESTS 74 4367 238080000
102883258 frg H Dec. 31, 2020, 5:25 a.m. OK GNU C++17 TESTS 74 4461 1638400
102862180 jiangly H Dec. 30, 2020, 7:36 p.m. OK GNU C++17 (64) TESTS 74 46 1536000
102855043 I_love_chickpea H Dec. 30, 2020, 5:23 p.m. OK GNU C++17 (64) TESTS 74 109 307200
102857432 ecnerwala H Dec. 30, 2020, 5:30 p.m. OK GNU C++17 (64) TESTS 74 109 512000
102849883 ainta H Dec. 30, 2020, 5:04 p.m. OK GNU C++17 (64) TESTS 74 140 921600
102873093 risujiroh H Dec. 31, 2020, 12:04 a.m. OK GNU C++17 (64) TESTS 74 233 13312000
102855525 Cyanic H Dec. 30, 2020, 5:24 p.m. OK GNU C++17 (64) TESTS 74 841 1024000
102874122 Benq H Dec. 31, 2020, 12:54 a.m. OK GNU C++17 (64) TESTS 74 1309 2355200
102881819 HIR180 H Dec. 31, 2020, 4:57 a.m. OK GNU C++17 (64) TESTS 74 1435 4812800
102855558 aid H Dec. 30, 2020, 5:24 p.m. OK GNU C++17 (64) TESTS 74 1777 3686400

remove filters

Back to search problems