Codeforces Round 725 (Div. 3)

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
1538 Codeforces Round 725 (Div. 3) FINISHED False 8100 113844263 June 10, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4652 ) G Gift Set PROGRAMMING binary search geometry greedy math ternary search

B'Polycarp has x of red and y of blue candies. Using them, he wants to make gift sets. Each gift set contains either a red candies and b blue candies, or a blue candies and b red candies. Any candy can belong to at most one gift set. Help Polycarp to find the largest number of gift sets he can create. For example, if x = 10 , y = 12 , a = 5 , and b = 2 , then Polycarp can make three gift sets: Note that in this example there is one red candy that Polycarp does not use in any gift set. The first line contains an integer t ( 1 <= t <= 10^4 ). Then t test cases follow. Each test case consists of a single string containing four integers x , y , a , and b ( 1 <= x, y, a, b <= 10^9 ). For each test case, output one number -- the maximum number of gift sets that Polycarp can make. '...

Tutorials

Codeforces Round #725 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
119113456 et3_tsy3.0 G June 11, 2021, 4:15 a.m. OK GNU C++11 TESTS 14 31 0
119105939 Walking_streaky_pork G June 11, 2021, 1:37 a.m. OK GNU C++11 TESTS 14 31 0
119105012 et3_tsy3.0 G June 11, 2021, 1:06 a.m. OK GNU C++11 TESTS 14 31 0
119108547 zhangteer G June 11, 2021, 2:44 a.m. OK GNU C++11 TESTS 14 31 24064000
119110576 Mr.DopeSmoker G June 11, 2021, 3:24 a.m. OK GNU C++11 TESTS 14 46 0
119107795 Thanh_khong_beo G June 11, 2021, 2:27 a.m. OK GNU C++11 TESTS 14 46 0
119107603 pubgoso G June 11, 2021, 2:23 a.m. OK GNU C++11 TESTS 14 46 0
119092911 query_001 G June 10, 2021, 7:16 p.m. OK GNU C++11 TESTS 8 46 0
119087763 hritik31 G June 10, 2021, 6:17 p.m. OK GNU C++11 TESTS 8 46 0
119115872 Ryeblablabla G June 11, 2021, 4:51 a.m. OK GNU C++11 TESTS 14 62 0
119089304 racsosabe G June 10, 2021, 6:33 p.m. OK GNU C++14 TESTS 8 30 0
119088513 AlanSkarica G June 10, 2021, 6:25 p.m. OK GNU C++14 TESTS 8 30 0
119118270 From_ITK18_With_Love G June 11, 2021, 5:24 a.m. OK GNU C++14 TESTS 14 31 0
119117919 From_ITK18_With_Love G June 11, 2021, 5:19 a.m. OK GNU C++14 TESTS 14 31 0
119110121 Potassium G June 11, 2021, 3:14 a.m. OK GNU C++14 TESTS 14 31 0
119101280 stevancv G June 10, 2021, 10:11 p.m. OK GNU C++14 TESTS 8 31 0
119100110 krijgertje G June 10, 2021, 9:32 p.m. OK GNU C++14 TESTS 8 31 0
119097942 Athem G June 10, 2021, 8:40 p.m. OK GNU C++14 TESTS 8 31 0
119097622 NaimSS G June 10, 2021, 8:34 p.m. OK GNU C++14 TESTS 8 31 0
119095080 ashu_3916 G June 10, 2021, 7:48 p.m. OK GNU C++14 TESTS 8 31 0
119100066 NO-COMPETITION G June 10, 2021, 9:31 p.m. OK GNU C++17 TESTS 8 30 0
119092952 yukarikho G June 10, 2021, 7:17 p.m. OK GNU C++17 TESTS 8 30 0
119089553 parnbhatt23 G June 10, 2021, 6:35 p.m. OK GNU C++17 TESTS 8 30 0
119088214 abhinavvv306 G June 10, 2021, 6:21 p.m. OK GNU C++17 TESTS 8 30 0
119085330 yukarikho G June 10, 2021, 5:55 p.m. OK GNU C++17 TESTS 8 30 0
119085058 sharath101 G June 10, 2021, 5:53 p.m. OK GNU C++17 TESTS 8 30 0
119085035 BigChungus101 G June 10, 2021, 5:53 p.m. OK GNU C++17 TESTS 8 30 0
119084674 ZergTricky G June 10, 2021, 5:50 p.m. OK GNU C++17 TESTS 8 30 0
119090791 ash_98 G June 10, 2021, 6:49 p.m. OK GNU C++17 TESTS 8 30 1024000
119120202 zwu2019015083 G June 11, 2021, 5:47 a.m. OK GNU C++17 TESTS 14 31 0

remove filters

Back to search problems