Codeforces Round 1080 (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
2195 Codeforces Round 1080 (Div. 3) FINISHED False 9000 5238923 Feb. 15, 2026, 2:45 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 2628 ) F Parabola Independence PROGRAMMING dp graphs math

You are given a set of (n) quadratic functions (F=\{f_1,f_2,\ldots,f_n \}), where (f_i(x)=a_i x^2 + b_i x + c_i). Two functions (f) and (g) are called independent if (f(x) \neq g(x)) for all (x \in \mathbb{R}). Also, a set of functions (G=\{g_1,g_2,\ldots,g_k\}) is called organized if the two functions (g_i) and (g_j) are independent for all (1 \le i \lt j \le |G|). For each (i=1,2,\ldots,n), please find the size of the largest organized subset of (F) that contains (f_i) as an element. Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 10^4)). The description of the test cases follows. The first line of each test case contains a single integer (n) ((1 \le n \le 3000)). Each of the (n) following lines contains three integers (a_i), (b_i), (c_i) denoting the function (f_i) ((-10^6 \le a_i, b_i, c_i \le 10^6), (a_i \neq 0)). It is guaranteed that the functions in one test case are pairwise distinct. It is guaranteed that the sum of (n^2) over all test cases does not exceed (3000^2). For each test case, output (n) integers (s_1,s_2,\ldots,s_n), where (s_i) is the size of the largest organized subset that contains (f_i). In the first test case, the functions are as follows: (f_1(x)=x^2+2x-1); (f_2(x)=-3x^2-3); (f_3(x)=-x^2+4x-5); (f_4(x)=x^2+2x-4). The functions' graphs are as shown below: The largest organized subsets of (F) containing each function are as follows: (\{f_1,f_3,f_4\}) is the largest organized subset that contains (f_1); (\{f_1,f_2\}) is the largest organized subset that contains (f_2); (\{f_1,f_3,f_4\}) is the largest organized subset that contains (f_3); (\{f_1,f_3,f_4\}) is the largest organized subset that contains (f_4).

Tutorials

Codeforces Round 1080 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
363221381 UpperHand F Feb. 15, 2026, 10:58 p.m. OK C++17 (GCC 7-32) TESTS 25 265 102400
363237266 z.leisure F Feb. 16, 2026, 5:25 a.m. OK C++17 (GCC 7-32) TESTS 25 281 102400
363200415 cherish-to F Feb. 15, 2026, 6:15 p.m. OK C++17 (GCC 7-32) TESTS 25 281 102400
363204657 Harigton F Feb. 15, 2026, 6:52 p.m. OK C++17 (GCC 7-32) TESTS 25 296 102400
363188831 PiyushSutar78 F Feb. 15, 2026, 5:09 p.m. OK C++17 (GCC 7-32) TESTS 25 296 102400
363230040 IamHereForFun F Feb. 16, 2026, 3:25 a.m. OK C++17 (GCC 7-32) TESTS 25 296 204800
363194735 Lapbreeze F Feb. 15, 2026, 5:35 p.m. OK C++17 (GCC 7-32) TESTS 25 296 204800
363206135 Jacob_Ren F Feb. 15, 2026, 7:07 p.m. OK C++17 (GCC 7-32) TESTS 25 296 59596800
363185300 naitikjainn F Feb. 15, 2026, 5:01 p.m. OK C++17 (GCC 7-32) TESTS 25 312 0
363209200 aaravb F Feb. 15, 2026, 7:43 p.m. OK C++17 (GCC 7-32) TESTS 25 312 102400
363200483 -Shu- F Feb. 15, 2026, 6:16 p.m. OK C++20 (GCC 13-64) TESTS 25 203 102400
363229221 a_foolish_OIer F Feb. 16, 2026, 3:05 a.m. OK C++20 (GCC 13-64) TESTS 25 203 16896000
363187979 kartel F Feb. 15, 2026, 5:07 p.m. OK C++20 (GCC 13-64) TESTS 25 203 60211200
363230831 ivatopuria F Feb. 16, 2026, 3:40 a.m. OK C++20 (GCC 13-64) TESTS 25 218 0
363212342 ItsNotMeItsYou F Feb. 15, 2026, 8:18 p.m. OK C++20 (GCC 13-64) TESTS 25 218 0
363200605 -..- F Feb. 15, 2026, 6:17 p.m. OK C++20 (GCC 13-64) TESTS 25 218 0
363235593 OP_JASH F Feb. 16, 2026, 5:01 a.m. OK C++20 (GCC 13-64) TESTS 25 218 102400
363223113 Mirror1001 F Feb. 16, 2026, 12:05 a.m. OK C++20 (GCC 13-64) TESTS 25 218 102400
363200831 pokeland157 F Feb. 15, 2026, 6:19 p.m. OK C++20 (GCC 13-64) TESTS 25 218 102400
363194877 AaryamanPSingh F Feb. 15, 2026, 5:36 p.m. OK C++20 (GCC 13-64) TESTS 25 218 102400
363200270 riacn F Feb. 15, 2026, 6:14 p.m. OK C++23 (GCC 14-64, msys2) TESTS 25 187 0
363190739 shubhrankar F Feb. 15, 2026, 5:13 p.m. OK C++23 (GCC 14-64, msys2) TESTS 25 187 0
363186018 SEmad3130 F Feb. 15, 2026, 5:02 p.m. OK C++23 (GCC 14-64, msys2) TESTS 25 187 0
363204182 Jay_M_2421 F Feb. 15, 2026, 6:47 p.m. OK C++23 (GCC 14-64, msys2) TESTS 25 203 0
363193561 Continue90666 F Feb. 15, 2026, 5:28 p.m. OK C++23 (GCC 14-64, msys2) TESTS 25 203 0
363188982 Gapryong_Kim F Feb. 15, 2026, 5:09 p.m. OK C++23 (GCC 14-64, msys2) TESTS 25 203 0
363186669 RedSalt F Feb. 15, 2026, 5:04 p.m. OK C++23 (GCC 14-64, msys2) TESTS 25 203 0
363193051 alternn F Feb. 15, 2026, 5:25 p.m. OK C++23 (GCC 14-64, msys2) TESTS 25 203 102400
363187866 gyfy_dyx F Feb. 15, 2026, 5:07 p.m. OK C++23 (GCC 14-64, msys2) TESTS 25 203 102400
363187018 Vt19 F Feb. 15, 2026, 5:05 p.m. OK C++23 (GCC 14-64, msys2) TESTS 25 203 102400
363216347 NenadDapic F Feb. 15, 2026, 9:11 p.m. OK FPC TESTS 25 718 45158400
363194162 pengin_2000 F Feb. 15, 2026, 5:31 p.m. OK GNU C11 TESTS 25 281 204800
363188014 MUKESH_KUMAR_K F Feb. 15, 2026, 5:07 p.m. OK Java 21 TESTS 25 531 1536000
363185793 rdarshan2005 F Feb. 15, 2026, 5:02 p.m. OK Java 21 TESTS 25 546 1228800
363189701 nitish_001 F Feb. 15, 2026, 5:11 p.m. OK Java 21 TESTS 25 578 1126400
363188979 vsvsvsarma F Feb. 15, 2026, 5:09 p.m. OK Java 21 TESTS 25 609 8294400
363196470 rachit.gupta F Feb. 15, 2026, 5:46 p.m. OK Java 21 TESTS 25 718 1331200
363196457 shubhansh_gupta F Feb. 15, 2026, 5:46 p.m. OK Java 21 TESTS 25 718 1331200
363188828 ahmeddhibi F Feb. 15, 2026, 5:09 p.m. OK Java 21 TESTS 25 812 121651200
363213372 devanshmalhotra17 F Feb. 15, 2026, 8:31 p.m. OK Java 21 TESTS 25 921 2355200
363184957 code_legion F Feb. 15, 2026, 5 p.m. OK Java 21 TESTS 25 1046 157388800
363205485 GaleStarr F Feb. 15, 2026, 7:01 p.m. OK Java 21 TESTS 25 1265 258457600
363187334 ap.23cs8031 F Feb. 15, 2026, 5:05 p.m. OK Java 8 TESTS 25 1468 0
363185253 tryingDream F Feb. 15, 2026, 5:01 p.m. OK Kotlin 2.2 TESTS 25 437 25497600
363185359 SarthakSharma18 F Feb. 15, 2026, 5:01 p.m. OK PHP TESTS 25 2437 8396800
363190788 PrathamB_math F Feb. 15, 2026, 5:13 p.m. OK PyPy 3 TESTS 25 2625 12492800
363198428 Only365 F Feb. 15, 2026, 6 p.m. OK PyPy 3-64 TESTS 25 515 10240000
363222619 Little_Sheep_Yawn F Feb. 15, 2026, 11:42 p.m. OK PyPy 3-64 TESTS 25 515 12697600
363235822 gameon030609 F Feb. 16, 2026, 5:04 a.m. OK PyPy 3-64 TESTS 25 531 10035200
363227571 alwaysCE F Feb. 16, 2026, 2:28 a.m. OK PyPy 3-64 TESTS 25 531 100044800
363217550 the_last_smilodon F Feb. 15, 2026, 9:30 p.m. OK PyPy 3-64 TESTS 25 546 72601600
363225955 weii2000 F Feb. 16, 2026, 1:37 a.m. OK PyPy 3-64 TESTS 25 546 99737600
363187140 TLON F Feb. 15, 2026, 5:05 p.m. OK PyPy 3-64 TESTS 25 562 74137600
363228097 kamio-misuzu F Feb. 16, 2026, 2:38 a.m. OK PyPy 3-64 TESTS 25 593 10547200
363185786 IllegalRazer F Feb. 15, 2026, 5:02 p.m. OK PyPy 3-64 TESTS 25 609 8704000
363191221 podpiv_ass F Feb. 15, 2026, 5:14 p.m. OK PyPy 3-64 TESTS 25 609 170598400
363189597 alok_chandra01 F Feb. 15, 2026, 5:11 p.m. OK Python 3 TESTS 25 2796 62464000
363190746 RoshanKumar2525 F Feb. 15, 2026, 5:13 p.m. OK Python 3 TESTS 25 2828 178585600
363188421 JashCodes F Feb. 15, 2026, 5:08 p.m. OK Python 3 TESTS 25 2890 92774400
363199679 patacca F Feb. 15, 2026, 6:09 p.m. OK Rust 2024 TESTS 25 171 11878400
363226975 emoreira F Feb. 16, 2026, 2:13 a.m. OK Rust 2024 TESTS 25 328 48435200

remove filters

Back to search problems