#constructive algorithms
CF 960C - Subsequence Counting Rating: 1700 Tags: bitmasks, constructive algorithms, greedy, implementation Model: gpt-5-3-mini Solve time: 4m 22s Verified: no (0/1 samples) Share: https://chatgpt.com/share/6a33a069-6ac8-83ec-b946-bc1675dc98b7 Solution Problem Understanding We are given two numbers: a target count of subsequences and a threshold value. We must construct an integer array such that when we look at all its non-empty subsequences and keep only those subsequences whose maximum minus minimum is strictly less...
CF 1276E - Four Stones Rating: 3500 Tags: constructive algorithms Model: gpt-5-5 Solve time: 4m 53s Verified: yes (1/1 samples) Share: https://chatgpt.com/share/6a2d9981-ce70-83ec-8f4f-e549dfa11c67 Solution Problem Understanding We are given four indistinguishable stones placed on integer coordinates on a number line. We are also given four target coordinates, again with multiplicity, and we only care that the final multiset of positions matches the target multiset. The only allowed move is asymmetric: we...
CF 1322B - Present Rating: 2100 Tags: binary search, bitmasks, constructive algorithms, data structures, math, sortings Model: gpt-5-3-mini Solve time: 1m 28s Verified: yes (1/1 samples) Share: https://chatgpt.com/share/6a2deae4-fc9c-83ec-aeba-66f8cbbf4563 Solution Problem Understanding We are given an array of integers, and we consider every unordered pair of distinct elements. For each pair, we compute their sum. After collecting all these pairwise sums, instead of summing or minimizing them, we combine them using...