2019-2020 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Teams Preferred)

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
1250 2019-2020 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) FINISHED False 18000 204236723 Oct. 27, 2019, 9:35 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 1750 ) N Wires PROGRAMMING dfs and similar graphs greedy 2200

Polycarpus has a complex electronic device. The core of this device is a circuit board. The board has (10^9) contact points which are numbered from (1) to (10^9). Also there are (n) wires numbered from (1) to (n), each connecting two distinct contact points on the board. An electric signal can pass between wires (A) and (B) if: either both wires share the same contact point; or there is a sequence of wires starting with (A) and ending with (B), and each pair of adjacent wires in the sequence share a contact point. Currently the circuit board is broken. Polycarpus thinks that the board could be fixed if the wires were re-soldered so that a signal could pass between any pair of wires. It takes (1) minute for Polycarpus to re-solder an end of a wire. I.e. it takes one minute to change one of the two contact points for a wire. Any contact point from range (1, 10^9) can be used as a new contact point. A wire's ends must always be soldered to distinct contact points. Both wire's ends can be re-solded, but that will require two actions and will take (2) minutes in total. Find the minimum amount of time Polycarpus needs to re-solder wires so that a signal can pass between any pair of wires. Also output an optimal sequence of wire re-soldering. The input contains one or several test cases. The first input line contains a single integer (t) — number of test cases. Then, (t) test cases follow. The first line of each test case contains a single integer (n) ((1 \le n \le 10^5)) — the number of wires. The following (n) lines describe wires, each line containing two space-separated integers (x_i, y_i) ((1 \le x_i, y_i \le 10^9), (x_i \neq y_i)) — contact points connected by the (i)-th wire. A couple of contact points can be connected with more than one wire. Sum of values of (n) across all test cases does not exceed (10^5). For each test case first print one line with a sing

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
63622008 lzx_zrl N Oct. 28, 2019, 12:06 a.m. OK GNU C++11 TESTS 44 93 15974400 2200
63621984 luogu_bot2 N Oct. 28, 2019, 12:05 a.m. OK GNU C++11 TESTS 44 93 15974400 2200
63621966 luogu_bot5 N Oct. 28, 2019, 12:03 a.m. OK GNU C++11 TESTS 44 93 15974400 2200
63559379 lzx_zrl Imakf N Oct. 27, 2019, 1:48 p.m. OK GNU C++11 TESTS 44 93 15974400 2200
63915886 myx12345 N Oct. 31, 2019, 10:03 a.m. OK GNU C++11 TESTS 44 108 32870400 2200
64066816 yrz 1234567891 dsvkljd N Nov. 2, 2019, 6:04 a.m. OK GNU C++11 TESTS 44 109 12185600 2200
63765123 henryrabbit ytriayggg XLor N Oct. 30, 2019, 5:53 a.m. OK GNU C++11 TESTS 44 124 6246400 2200
64444477 vjudge2 N Nov. 7, 2019, 5:58 a.m. OK GNU C++11 TESTS 44 124 11161600 2200
68926741 lzx_zrl N Jan. 16, 2020, 10:30 a.m. OK GNU C++11 TESTS 44 124 11264000 2200
63622249 lzx_zrl N Oct. 28, 2019, 12:21 a.m. OK GNU C++11 TESTS 44 124 11264000 2200
65281765 zhouhebin strawberrry shenyunhan N Nov. 18, 2019, 6:11 a.m. OK GNU C++14 TESTS 44 109 7270400 2200
63722439 tokitsukaze N Oct. 29, 2019, 11:44 a.m. OK GNU C++14 TESTS 44 109 14950400 2200
63560401 yijan w190971822 zbww N Oct. 27, 2019, 2:05 p.m. OK GNU C++14 TESTS 44 124 8294400 2200
63549507 LanrTabe N Oct. 27, 2019, 11:19 a.m. OK GNU C++14 TESTS 44 124 14438400 2200
63895892 lfw N Oct. 31, 2019, 1:56 a.m. OK GNU C++14 TESTS 44 124 16793600 2200
63649924 SingleZombie zhanggengchen xzm2020 N Oct. 28, 2019, 11:05 a.m. OK GNU C++14 TESTS 44 124 28876800 2200
63934993 xyr dhydye AnchorCat N Oct. 31, 2019, 3:33 p.m. OK GNU C++14 TESTS 44 140 17100800 2200
65280427 vjudge3 N Nov. 18, 2019, 5:16 a.m. OK GNU C++14 TESTS 44 140 24678400 2200
63548799 psc233 CaptainSlow feluamn N Oct. 27, 2019, 11:10 a.m. OK GNU C++14 TESTS 44 140 53964800 2200
63648638 Home3 LiM_256 N Oct. 28, 2019, 10:40 a.m. OK GNU C++14 TESTS 44 155 7987200 2200
64068250 ZhihuiLiu yangzijun ckxkexing N Nov. 2, 2019, 6:33 a.m. OK GNU C++17 TESTS 44 124 6656000 2200
63547607 IceLady KrK N Oct. 27, 2019, 10:54 a.m. OK GNU C++17 TESTS 44 124 7987200 2200
64777568 ls_eiau_01 bqx fanqeixi N Nov. 13, 2019, 5:27 a.m. OK GNU C++17 TESTS 44 124 17203200 2200
65994277 vjudge2 N Nov. 29, 2019, 5:17 p.m. OK GNU C++17 TESTS 44 124 18432000 2200
66495654 Magicdog_Jo N Dec. 8, 2019, 10:23 a.m. OK GNU C++17 TESTS 44 124 18636800 2200
66636816 Liquor2020 N Dec. 11, 2019, 1:14 p.m. OK GNU C++17 TESTS 44 124 24064000 2200
65695089 interestingLSY N Nov. 25, 2019, 7:34 a.m. OK GNU C++17 TESTS 44 124 30822400 2200
64139417 FFFFFFFHHHHHHH UniverseofHK 821196326 N Nov. 3, 2019, 8:06 a.m. OK GNU C++17 TESTS 44 124 37171200 2200
64139378 FFFFFFFHHHHHHH UniverseofHK 821196326 N Nov. 3, 2019, 8:05 a.m. OK GNU C++17 TESTS 44 124 37171200 2200
65994460 vjudge4 N Nov. 29, 2019, 5:19 p.m. OK GNU C++17 TESTS 44 139 18329600 2200
63709505 __ivan__ N Oct. 29, 2019, 9:32 a.m. OK Go TESTS 44 624 27955200 2200
63812973 Musin N Oct. 30, 2019, 1:16 p.m. OK Java 11 TESTS 44 577 84377600 2200
64495146 Leendertz N Nov. 7, 2019, 10:55 p.m. OK Java 8 TESTS 44 405 37888000 2200
63722627 kocko N Oct. 29, 2019, 11:47 a.m. OK Java 8 TESTS 44 498 50585600 2200
66779830 kevinpatel_20 bhautik_77 N Dec. 13, 2019, 11:34 a.m. OK Java 8 TESTS 44 514 69939200 2200
64800551 mennafadali ZeyadKhattab Nesrin N Nov. 13, 2019, 2:27 p.m. OK Java 8 TESTS 44 545 42598400 2200
63562038 BNL NMouad21 sqrtminusone N Oct. 27, 2019, 2:32 p.m. OK Java 8 TESTS 44 561 125030400 2200
63545353 spar5h Jeel_Vaishnav Ashish N Oct. 27, 2019, 10:23 a.m. OK Java 8 TESTS 44 623 38604800 2200
63739066 satya26 N Oct. 29, 2019, 4:17 p.m. OK Java 8 TESTS 44 748 73932800 2200
63966300 vjudge2 N Nov. 1, 2019, 7:19 a.m. OK Java 8 TESTS 44 826 44851200 2200
63552134 dalex N Oct. 27, 2019, 11:56 a.m. OK Java 8 TESTS 44 982 104140800 2200
65059785 Hemose O_E YahiaSherif N Nov. 15, 2019, 4:28 p.m. OK Java 8 TESTS 44 1107 84684800 2200
63896839 Spheniscine N Oct. 31, 2019, 2:36 a.m. OK Kotlin TESTS 44 607 60928000 2200
63853926 Spheniscine N Oct. 30, 2019, 4:39 p.m. OK Kotlin TESTS 44 623 103014400 2200
65749949 vjudge4 N Nov. 26, 2019, 1:39 p.m. OK MS C++ TESTS 44 202 16076800 2200
66082872 vjudge1 N Dec. 1, 2019, 1:54 a.m. OK MS C++ TESTS 44 389 24883200 2200
64626115 vjudge1 N Nov. 10, 2019, 8:35 a.m. OK MS C++ TESTS 44 795 22323200 2200
66083841 vjudge3 N Dec. 1, 2019, 2:54 a.m. OK MS C++ 2017 TESTS 44 156 76492800 2200
64886445 beautifulsmile WoodMachine Sanqer N Nov. 14, 2019, 1:16 p.m. OK MS C++ 2017 TESTS 44 452 19865600 2200
63666943 kibastian N Oct. 28, 2019, 3:39 p.m. OK MS C++ 2017 TESTS 44 1153 35635200 2200
66652982 tycyd N Dec. 11, 2019, 8:15 p.m. OK PyPy 3 TESTS 44 685 47206400 2200
63540207 N Oct. 27, 2019, 9:06 a.m. OK Unknown TESTS 0 0 0 2200
63540175 N Oct. 27, 2019, 9:06 a.m. OK Unknown TESTS 0 0 0 2200
63540126 N Oct. 27, 2019, 9:06 a.m. OK Unknown TESTS 0 0 0 2200
63540112 N Oct. 27, 2019, 9:06 a.m. OK Unknown TESTS 0 0 0 2200
63540087 N Oct. 27, 2019, 9:06 a.m. OK Unknown TESTS 0 0 0 2200
63540075 N Oct. 27, 2019, 9:06 a.m. OK Unknown TESTS 0 0 0 2200
63540074 N Oct. 27, 2019, 9:06 a.m. OK Unknown TESTS 0 0 0 2200
63540063 N Oct. 27, 2019, 9:06 a.m. OK Unknown TESTS 0 0 0 2200
63540046 N Oct. 27, 2019, 9:06 a.m. OK Unknown TESTS 0 0 0 2200
63540021 N Oct. 27, 2019, 9:06 a.m. OK Unknown TESTS 0 0 0 2200

remove filters

Back to search problems