Educational Codeforces Round 58 (Rated for Div. 2)

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
1101 Educational Codeforces Round 58 (Rated for Div. 2) FINISHED False 7200 184605899 Jan. 11, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8198 ) C Division and Union PROGRAMMING sortings 1600

B"There are n segments [l_i, r_i] for 1 <= i <= n . You should divide all segments into two non-empty groups in such way that there is no pair of segments from different groups which have at least one common point, or say that it's impossible to do it. Each segment should belong to exactly one group. To optimize testing process you will be given multitest. The first line contains one integer T ( 1 <= T <= 50000 ) -- the number of queries. Each query contains description of the set of segments. Queries are independent. First line of each query contains single integer n ( 2 <= n <= 10^5 ) -- number of segments. It is guaranteed that sum{n} over all queries does not exceed 10^5 . The next n lines contains two integers l_i , r_i per line ( 1 <= l_i <= r_i <= 2 cdot 10^5 ) -- the i -th segment. For each query print n integers t_1, t_2, ... , t_n ( t_i in {1, 2 } ) -- for each segment (in the same order as in the input) t_i equals 1 if the i -th segment will belongs to the first group and 2 otherwise. If there are multiple answers, you can print any of them. If there is no answer, print -1 . In the first query the first and the second segments should be in different groups, but exact numbers don't matter. In the second query the third segment intersects with the first and the second segments, so they should be in the same group, but then the other group becomes empty, so answer is -1 . In the third query we can distribute segments in any way that makes groups non-empty, so any answer of 6 possible is correct. "...

Tutorials

64483

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
57837554 vjudge5 C July 27, 2019, 8:07 a.m. OK Clang++17 Diagnostics TESTS 75 218 0 1600
57838227 vjudge4 C July 27, 2019, 8:21 a.m. OK Clang++17 Diagnostics TESTS 75 218 1536000 1600
57837926 vjudge1 C July 27, 2019, 8:15 a.m. OK Clang++17 Diagnostics TESTS 75 233 1536000 1600
57837541 vjudge2 C July 27, 2019, 8:07 a.m. OK Clang++17 Diagnostics TESTS 75 233 1536000 1600
57838972 vjudge4 C July 27, 2019, 8:36 a.m. OK Clang++17 Diagnostics TESTS 75 233 1536000 1600
57837847 vjudge2 C July 27, 2019, 8:13 a.m. OK Clang++17 Diagnostics TESTS 75 233 1536000 1600
48447279 grape97 C Jan. 16, 2019, 8:10 a.m. OK Clang++17 Diagnostics TESTS 75 249 0 1600
57831334 vjudge2 C July 27, 2019, 6:07 a.m. OK Clang++17 Diagnostics TESTS 75 311 1536000 1600
48300042 dars C Jan. 12, 2019, 4:25 p.m. OK Clang++17 Diagnostics TESTS 75 1310 5324800 1600
48297738 dars C Jan. 12, 2019, 3:21 p.m. OK Clang++17 Diagnostics TESTS 75 1387 5324800 1600
48274385 ruban C Jan. 12, 2019, 4:51 a.m. OK Delphi TESTS 75 108 160460800 1600
51753358 Raikels C March 23, 2019, 10:31 a.m. OK FPC TESTS 75 467 3891200 1600
52217739 sansen C April 2, 2019, 3:55 a.m. OK GNU C11 TESTS 75 46 1638400 1600
50148893 Moozzaart_23 C Feb. 19, 2019, 6:18 a.m. OK GNU C11 TESTS 75 468 2764800 1600
50146237 Nikhil_Medam C Feb. 19, 2019, 4:21 a.m. OK GNU C11 TESTS 75 483 2764800 1600
48281819 akshat_goyal C Jan. 12, 2019, 8:22 a.m. OK GNU C11 TESTS 75 483 10444800 1600
48270630 Bramble C Jan. 12, 2019, 1:44 a.m. OK GNU C11 TESTS 75 498 2048000 1600
48305524 hscpy C Jan. 12, 2019, 7:31 p.m. OK GNU C11 TESTS 75 499 1638400 1600
50149119 dhruvil_11 C Feb. 19, 2019, 6:28 a.m. OK GNU C11 TESTS 75 499 2764800 1600
49034086 Mahmud_Mostafa_Al_Maruf C Jan. 27, 2019, 1:44 a.m. OK GNU C11 TESTS 75 1372 819200 1600
48858355 Mahmud_Mostafa_Al_Maruf C Jan. 23, 2019, 8:05 p.m. OK GNU C11 TESTS 75 1372 819200 1600
49943998 fa_555 C Feb. 15, 2019, 11:12 a.m. OK GNU C++11 TESTS 75 31 1024000 1600
48381967 _CZH C Jan. 14, 2019, 10:57 a.m. OK GNU C++11 TESTS 75 31 1433600 1600
48281895 luogu_bot5 C Jan. 12, 2019, 8:24 a.m. OK GNU C++11 TESTS 75 46 1638400 1600
48275229 Dilute C Jan. 12, 2019, 5:18 a.m. OK GNU C++11 TESTS 75 46 1638400 1600
48493613 djh123 C Jan. 17, 2019, 12:02 p.m. OK GNU C++11 TESTS 75 46 1638400 1600
48773761 x_faraway_x C Jan. 23, 2019, 2:29 a.m. OK GNU C++11 TESTS 75 46 1638400 1600
48954017 xqbf C Jan. 26, 2019, 3:12 a.m. OK GNU C++11 TESTS 75 46 1638400 1600
48316972 phantomI C Jan. 13, 2019, 7:07 a.m. OK GNU C++11 TESTS 75 46 1740800 1600
48368787 msuwakow C Jan. 14, 2019, 1:57 a.m. OK GNU C++11 TESTS 75 46 1740800 1600
57943354 swqeaaa C July 29, 2019, 1:22 p.m. OK GNU C++11 TESTS 75 46 1843200 1600
50039727 jonathansilver C Feb. 17, 2019, 12:21 a.m. OK GNU C++14 TESTS 75 62 1638400 1600
48329455 Ataur387 C Jan. 13, 2019, 1:37 p.m. OK GNU C++14 TESTS 75 62 6451200 1600
62117035 idxcalcal C Oct. 8, 2019, 1:38 p.m. OK GNU C++14 TESTS 75 62 6656000 1600
50061992 HouZAJ C Feb. 17, 2019, 1:05 p.m. OK GNU C++14 TESTS 75 77 1536000 1600
49856598 yangshuang C Feb. 13, 2019, 7:31 a.m. OK GNU C++14 TESTS 75 77 1536000 1600
51757742 rohijulislam C March 23, 2019, 12:19 p.m. OK GNU C++14 TESTS 75 77 1638400 1600
51568630 vjudge5 C March 20, 2019, 10:46 a.m. OK GNU C++14 TESTS 75 77 1638400 1600
50034447 newbie_10 C Feb. 16, 2019, 8:02 p.m. OK GNU C++14 TESTS 75 77 1638400 1600
49401469 vjudge3 C Feb. 3, 2019, 2:59 p.m. OK GNU C++14 TESTS 75 77 1638400 1600
48602013 Bilguunzen C Jan. 20, 2019, 8:49 a.m. OK GNU C++14 TESTS 75 77 1638400 1600
61959775 disposrestfuIly C Oct. 6, 2019, 7:05 a.m. OK GNU C++17 TESTS 75 61 10035200 1600
48524669 hansc0320 C Jan. 18, 2019, 8:31 a.m. OK GNU C++17 TESTS 75 62 1536000 1600
48493771 kidddddddddddddddddddddd C Jan. 17, 2019, 12:05 p.m. OK GNU C++17 TESTS 75 62 1843200 1600
48317589 Mynesis C Jan. 13, 2019, 7:26 a.m. OK GNU C++17 TESTS 75 62 2252800 1600
50147141 Nikhil_Medam C Feb. 19, 2019, 5:06 a.m. OK GNU C++17 TESTS 75 62 2764800 1600
50146263 Nikhil_Medam C Feb. 19, 2019, 4:22 a.m. OK GNU C++17 TESTS 75 62 2764800 1600
48782951 vjudge5 C Jan. 23, 2019, 7:35 a.m. OK GNU C++17 TESTS 75 62 3174400 1600
48390135 w4ynebbcola C Jan. 14, 2019, 2:54 p.m. OK GNU C++17 TESTS 75 77 1433600 1600
48319516 Kirito C Jan. 13, 2019, 8:28 a.m. OK GNU C++17 TESTS 75 77 1433600 1600
52259497 kostyanf14 C April 3, 2019, 7:55 a.m. OK GNU C++17 TESTS 75 77 1638400 1600
54811823 efimmanevich C May 29, 2019, 5:19 p.m. OK Go TESTS 75 187 5427200 1600
48715198 Hillmouse C Jan. 22, 2019, 10:51 a.m. OK Haskell TESTS 75 748 55910400 1600
48535600 mihassan C Jan. 18, 2019, 2:05 p.m. OK Haskell TESTS 75 810 52736000 1600
48535467 mihassan C Jan. 18, 2019, 2:02 p.m. OK Haskell TESTS 75 904 52736000 1600
67314384 CodAR C Dec. 21, 2019, 5:12 a.m. OK Java 11 TESTS 75 483 0 1600
48294183 avijit_agarwal C Jan. 12, 2019, 1:54 p.m. OK Java 8 TESTS 75 140 0 1600
48426798 Srinivasa_Ramanujan C Jan. 15, 2019, 3:19 p.m. OK Java 8 TESTS 75 155 0 1600
48315655 Jay_13 C Jan. 13, 2019, 6:24 a.m. OK Java 8 TESTS 75 155 0 1600
48278862 xodiac C Jan. 12, 2019, 7:02 a.m. OK Java 8 TESTS 75 155 0 1600
60775956 mufaddalnaya C Sept. 18, 2019, 2:22 p.m. OK Java 8 TESTS 75 171 0 1600
48331087 poketred12 C Jan. 13, 2019, 2:28 p.m. OK Java 8 TESTS 75 171 0 1600
48317174 r_sutaria C Jan. 13, 2019, 7:12 a.m. OK Java 8 TESTS 75 171 0 1600
48313255 Faizan C Jan. 13, 2019, 4:33 a.m. OK Java 8 TESTS 75 171 0 1600
48283369 sanketmakani C Jan. 12, 2019, 9:01 a.m. OK Java 8 TESTS 75 171 0 1600
54886628 azhar556 C May 31, 2019, 5:41 p.m. OK Java 8 TESTS 75 186 0 1600
64668087 Spheniscine C Nov. 11, 2019, 3:59 a.m. OK Kotlin TESTS 75 218 716800 1600
59912205 LinaInverse C Sept. 2, 2019, 5:40 p.m. OK Kotlin TESTS 75 498 7270400 1600
60056873 Skybytskyi.Nikita C Sept. 5, 2019, 4:47 a.m. OK Kotlin TESTS 75 686 10137600 1600
54899823 kantuni C June 1, 2019, 5:57 a.m. OK Kotlin TESTS 75 702 14233600 1600
54667625 vadzimka C May 26, 2019, 2:19 p.m. OK Kotlin TESTS 75 732 2150400 1600
54555078 Farwent C May 24, 2019, 11:13 a.m. OK Kotlin TESTS 75 810 1433600 1600
55926004 og.kostya C June 22, 2019, 9:20 a.m. OK Mono C# TESTS 75 109 4198400 1600
53812237 treasuryonly C May 6, 2019, 7:42 a.m. OK Mono C# TESTS 75 156 9625600 1600
51954497 nemars C March 29, 2019, 12:18 a.m. OK Mono C# TESTS 75 311 14233600 1600
50893322 toysheeyeyraku C March 6, 2019, 2 p.m. OK Mono C# TESTS 75 592 10035200 1600
48497256 vjudge2 C Jan. 17, 2019, 1:29 p.m. OK MS C++ TESTS 75 62 1638400 1600
48783861 vjudge3 C Jan. 23, 2019, 8:01 a.m. OK MS C++ TESTS 75 62 1638400 1600
48498425 vjudge5 C Jan. 17, 2019, 1:56 p.m. OK MS C++ TESTS 75 62 1638400 1600
50666822 wjfwjfwjf C March 2, 2019, 4:45 a.m. OK MS C++ TESTS 75 62 1638400 1600
58862984 vjudge4 C Aug. 15, 2019, 12:21 p.m. OK MS C++ TESTS 75 62 1638400 1600
48895918 XDKalia C Jan. 24, 2019, 3:54 p.m. OK MS C++ TESTS 75 62 1740800 1600
58867622 vjudge1 C Aug. 15, 2019, 2 p.m. OK MS C++ TESTS 75 62 3174400 1600
48775035 vjudge5 C Jan. 23, 2019, 3:19 a.m. OK MS C++ TESTS 75 62 7270400 1600
48962097 vjudge4 C Jan. 26, 2019, 6:34 a.m. OK MS C++ TESTS 75 62 7270400 1600
67207382 platter C Dec. 19, 2019, 12:54 p.m. OK MS C++ TESTS 75 77 1638400 1600
58361494 ZSTU-2018329621261 C Aug. 6, 2019, 12:57 a.m. OK MS C++ 2017 TESTS 75 93 1638400 1600
56024789 petko_mitkov C June 25, 2019, 6:21 a.m. OK MS C++ 2017 TESTS 75 93 3174400 1600
58867595 zcb C Aug. 15, 2019, 1:59 p.m. OK MS C++ 2017 TESTS 75 93 3174400 1600
58867886 vjudge5 C Aug. 15, 2019, 2:06 p.m. OK MS C++ 2017 TESTS 75 93 16076800 1600
58867601 2462478392 C Aug. 15, 2019, 1:59 p.m. OK MS C++ 2017 TESTS 75 93 16076800 1600
60264998 vjudge2 C Sept. 8, 2019, 1:07 p.m. OK MS C++ 2017 TESTS 75 93 16076800 1600
48937702 Still_Theory C Jan. 25, 2019, 3 p.m. OK MS C++ 2017 TESTS 75 218 1638400 1600
59089370 yorky C Aug. 19, 2019, 12:14 p.m. OK MS C++ 2017 TESTS 75 249 9113600 1600
63720449 sladkayaKlubnichka C Oct. 29, 2019, 11:12 a.m. OK MS C++ 2017 TESTS 75 358 2048000 1600
59955305 sladkayaKlubnichka C Sept. 3, 2019, 3:56 p.m. OK MS C++ 2017 TESTS 75 389 2048000 1600
48284375 mayakin C Jan. 12, 2019, 9:34 a.m. OK PHP TESTS 75 327 27340800 1600
49401392 c1729 C Feb. 3, 2019, 2:57 p.m. OK PyPy 2 TESTS 75 405 11161600 1600
49369831 Mukundan314 C Feb. 2, 2019, 4:47 p.m. OK PyPy 2 TESTS 75 405 12492800 1600
49370394 Mukundan314 C Feb. 2, 2019, 5:01 p.m. OK PyPy 2 TESTS 75 405 14028800 1600
49371101 Mukundan314 C Feb. 2, 2019, 5:21 p.m. OK PyPy 2 TESTS 75 405 15155200 1600
49369240 Mukundan314 C Feb. 2, 2019, 4:33 p.m. OK PyPy 2 TESTS 75 420 10956800 1600
49371495 Mukundan314 C Feb. 2, 2019, 5:33 p.m. OK PyPy 2 TESTS 75 420 15052800 1600
49370576 Mukundan314 C Feb. 2, 2019, 5:06 p.m. OK PyPy 2 TESTS 75 420 15155200 1600
49370472 Mukundan314 C Feb. 2, 2019, 5:04 p.m. OK PyPy 2 TESTS 75 420 16588800 1600
49354576 Mukundan314 C Feb. 2, 2019, 10:24 a.m. OK PyPy 2 TESTS 75 421 11264000 1600
49371003 Mukundan314 C Feb. 2, 2019, 5:18 p.m. OK PyPy 2 TESTS 75 421 15052800 1600
49369728 Mukundan314 C Feb. 2, 2019, 4:45 p.m. OK PyPy 3 TESTS 75 436 14233600 1600
49370480 Mukundan314 C Feb. 2, 2019, 5:04 p.m. OK PyPy 3 TESTS 75 436 18124800 1600
49401848 c1729 C Feb. 3, 2019, 3:10 p.m. OK PyPy 3 TESTS 75 452 16281600 1600
49371011 Mukundan314 C Feb. 2, 2019, 5:18 p.m. OK PyPy 3 TESTS 75 452 18124800 1600
49390569 c1729 C Feb. 3, 2019, 9:38 a.m. OK PyPy 3 TESTS 75 452 20070400 1600
49401471 c1729 C Feb. 3, 2019, 2:59 p.m. OK PyPy 3 TESTS 75 467 14233600 1600
49355176 Mukundan314 C Feb. 2, 2019, 10:42 a.m. OK PyPy 3 TESTS 75 467 15155200 1600
49365056 Mukundan314 C Feb. 2, 2019, 2:40 p.m. OK PyPy 3 TESTS 75 467 15872000 1600
49386893 c1729 C Feb. 3, 2019, 7:27 a.m. OK PyPy 3 TESTS 75 467 17920000 1600
49371157 Mukundan314 C Feb. 2, 2019, 5:23 p.m. OK PyPy 3 TESTS 75 467 18124800 1600
48548198 gatsko C Jan. 18, 2019, 9:38 p.m. OK Python 2 TESTS 75 561 11366400 1600
48698352 claramm C Jan. 22, 2019, 1 a.m. OK Python 2 TESTS 75 592 14438400 1600
48266445 ssk497 C Jan. 11, 2019, 8:35 p.m. OK Python 2 TESTS 75 655 24064000 1600
48541785 Mohammed_52 C Jan. 18, 2019, 5:06 p.m. OK Python 2 TESTS 75 779 14336000 1600
48283682 SoSooding C Jan. 12, 2019, 9:10 a.m. OK Python 2 TESTS 75 780 13619200 1600
48477236 nealzane C Jan. 17, 2019, 3:41 a.m. OK Python 2 TESTS 75 795 12492800 1600
52229192 Leendertz C April 2, 2019, 11:10 a.m. OK Python 3 TESTS 75 421 15462400 1600
48450429 Firepaw C Jan. 16, 2019, 10 a.m. OK Python 3 TESTS 75 530 14643200 1600
48316263 varun_raj C Jan. 13, 2019, 6:44 a.m. OK Python 3 TESTS 75 530 15360000 1600
52228827 Leendertz C April 2, 2019, 11:01 a.m. OK Python 3 TESTS 75 561 12595200 1600
48300494 adshin21 C Jan. 12, 2019, 4:39 p.m. OK Python 3 TESTS 75 592 13004800 1600
69242646 Annvv C Jan. 21, 2020, 11:56 a.m. OK Python 3 TESTS 75 638 19558400 1600
59382737 FlyingBag65 C Aug. 24, 2019, 4:31 a.m. OK Python 3 TESTS 75 748 9011200 1600
53009981 v.y C April 19, 2019, 11:37 a.m. OK Python 3 TESTS 75 904 13004800 1600
48521368 julianferres C Jan. 18, 2019, 6:47 a.m. OK Python 3 TESTS 75 936 10547200 1600
53085611 Thaumer C April 21, 2019, 8:46 a.m. OK Python 3 TESTS 75 951 12800000 1600
48529856 rahdpp C Jan. 18, 2019, 11:10 a.m. OK Ruby TESTS 75 436 15872000 1600
48275435 hr567 C Jan. 12, 2019, 5:25 a.m. OK Rust TESTS 75 607 1740800 1600
48265406 old_boo C Jan. 11, 2019, 7:49 p.m. OK Rust TESTS 75 623 3481600 1600
48327793 rustaurance C Jan. 13, 2019, 12:46 p.m. OK Rust TESTS 75 686 5324800 1600
48604071 yakamoto C Jan. 20, 2019, 9:50 a.m. OK Scala TESTS 75 514 3788800 1600
48604464 yakamoto C Jan. 20, 2019, 10:04 a.m. OK Scala TESTS 75 655 3686400 1600
49032214 dandersonw C Jan. 26, 2019, 11:40 p.m. OK Scala TESTS 75 1216 15052800 1600

remove filters

Back to search problems