Nebius Welcome Round (Div. 1 + 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
1804 Nebius Welcome Round (Div. 1 + Div. 2) FINISHED False 7200 58634662 March 12, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 976 ) F Approximate Diameter PROGRAMMING binary search divide and conquer graphs shortest paths

B'Jack has a graph of n vertices and m edges. All edges are bidirectional and of unit length. The graph is connected, i. e. there exists a path between any two of its vertices. There can be more than one edge connecting the same pair of vertices. The graph can contain self-loops, i. e. edges connecting a node to itself. The distance between vertices u and v is denoted as rho(u, v) and equals the minimum possible number of edges on a path between u and v . The diameter of graph G is defined as the maximum possible distance between some pair of its vertices. We denote it as d(G) . In other words, d(G) = max_{1 <= u, v <= n}{ rho(u, v)}. Jack plans to consecutively apply q updates to his graph. Each update adds exactly one edge to the graph. Denote as G_i the graph after exactly i updates are made. Jack wants to calculate q + 1 values d(G_0), d(G_1), d(G_2), ldots, d(G_q) . However, Jack suspects that finding the exact diameters of q + 1 graphs might be a difficult task, so he is fine with approximate answers that differ from the correct answers no more than twice. Formally, Jack wants to find a sequence of positive integers a_0, a_1, a_2, ldots, a_q such that <= ft lceil frac{d(G_i)}{2} right rceil <= a_i <= 2 cdot d(G_i) for each i . Hacks You cannot make hacks in this problem. The first line of the input contains three integers n , m , and q ( 2 <= q n <= q 10^5 , n - 1 <= q m <= q 10^5 , 0 <= q q <= q 10^5 ), the number of vertices in the given graph, the number of edges and the number of updates, respectively. Then follow m lines describing the initial edges of the graph. The i -th of these lines contains two integers u_i and v_i ( 1 <= q u_i, v_i <= q n ), the indexes of the vertices connected by the i -th edge. Then follow q lines describing the updates. '...

Tutorials

Nebius Welcome Round Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
197169123 ITworker_Z F March 12, 2023, 11:44 p.m. OK GNU C++14 TESTS 80 576 9830400
197174598 cyh_toby F March 13, 2023, 2:05 a.m. OK GNU C++14 TESTS 80 748 8192000
197176466 hima_varshini7 F March 13, 2023, 2:45 a.m. OK GNU C++14 TESTS 80 1138 8704000
197176436 sai_neeraj F March 13, 2023, 2:45 a.m. OK GNU C++14 TESTS 80 1138 8704000
197174510 grass8sheep F March 13, 2023, 2:03 a.m. OK GNU C++14 TESTS 80 1138 8704000
197174563 cyb1010 F March 13, 2023, 2:04 a.m. OK GNU C++14 TESTS 80 1216 7884800
197173581 LXH-cat F March 13, 2023, 1:40 a.m. OK GNU C++14 TESTS 80 1216 8704000
197133950 Chinese_zjc_ F March 12, 2023, 5:23 p.m. OK GNU C++14 TESTS 80 1403 10649600
197176439 hydd F March 13, 2023, 2:45 a.m. OK GNU C++14 TESTS 80 1435 10240000
197179551 for_sx_e_1 F March 13, 2023, 3:44 a.m. OK GNU C++14 TESTS 80 1590 10240000
197126082 AngusRitossa F March 12, 2023, 4:26 p.m. OK GNU C++17 TESTS 80 468 9728000
197127580 tokusakurai F March 12, 2023, 4:30 p.m. OK GNU C++17 TESTS 80 514 9830400
197162679 PurpleCrayon F March 12, 2023, 9:20 p.m. OK GNU C++17 TESTS 80 546 9830400
197177178 ABBAS_ALI_SHAIK F March 13, 2023, 2:59 a.m. OK GNU C++17 TESTS 80 592 10342400
197176955 zas111lll F March 13, 2023, 2:55 a.m. OK GNU C++17 TESTS 80 608 11366400
197163141 omar_fesal F March 12, 2023, 9:28 p.m. OK GNU C++17 TESTS 80 732 10342400
197143032 peltorator F March 12, 2023, 6:13 p.m. OK GNU C++17 TESTS 80 733 9932800
197129603 AliShahali1382 F March 12, 2023, 4:33 p.m. OK GNU C++17 TESTS 80 748 8499200
197125796 zemen F March 12, 2023, 4:26 p.m. OK GNU C++17 TESTS 80 779 10956800
197184727 chen_zexing F March 13, 2023, 5 a.m. OK GNU C++17 TESTS 80 780 7884800
197174654 353cerega F March 13, 2023, 2:06 a.m. OK GNU C++17 (64) TESTS 80 467 9728000
197126227 K-H F March 12, 2023, 4:27 p.m. OK GNU C++17 (64) TESTS 80 655 10240000
197122900 receed F March 12, 2023, 4:19 p.m. OK GNU C++17 (64) TESTS 80 686 12697600
197146975 Nero F March 12, 2023, 6:41 p.m. OK GNU C++17 (64) TESTS 80 701 12595200
197137063 kotatsugame F March 12, 2023, 5:36 p.m. OK GNU C++17 (64) TESTS 80 701 13721600
197176251 BeyondHeaven F March 13, 2023, 2:40 a.m. OK GNU C++17 (64) TESTS 80 748 12595200
197134263 rniya F March 12, 2023, 5:24 p.m. OK GNU C++17 (64) TESTS 80 763 12697600
197139402 Rubikun F March 12, 2023, 5:51 p.m. OK GNU C++17 (64) TESTS 80 857 10752000
197133730 zihouzhong F March 12, 2023, 5:23 p.m. OK GNU C++17 (64) TESTS 80 935 9728000
197138337 Rubikun F March 12, 2023, 5:44 p.m. OK GNU C++17 (64) TESTS 80 966 10752000
197122404 BalintR F March 12, 2023, 4:18 p.m. OK GNU C++20 (64) TESTS 80 296 5222400
197133834 DimaTomsk F March 12, 2023, 5:23 p.m. OK GNU C++20 (64) TESTS 80 358 9728000
197124276 happy.potato F March 12, 2023, 4:22 p.m. OK GNU C++20 (64) TESTS 80 389 9830400
197126007 risujiroh F March 12, 2023, 4:26 p.m. OK GNU C++20 (64) TESTS 80 405 9625600
197136054 bashkort F March 12, 2023, 5:32 p.m. OK GNU C++20 (64) TESTS 80 530 10956800
197141677 Mark2012 F March 12, 2023, 6:05 p.m. OK GNU C++20 (64) TESTS 80 592 12595200
197130420 fedoseev.timofey F March 12, 2023, 4:34 p.m. OK GNU C++20 (64) TESTS 80 639 12697600
197125333 Endagorion F March 12, 2023, 4:25 p.m. OK GNU C++20 (64) TESTS 80 654 13516800
197126625 elazarkoren F March 12, 2023, 4:28 p.m. OK GNU C++20 (64) TESTS 80 670 9523200
197136858 fmota F March 12, 2023, 5:35 p.m. OK GNU C++20 (64) TESTS 80 670 13516800
197144766 arvindf232 F March 12, 2023, 6:25 p.m. OK Kotlin 1.6 TESTS 80 763 28364800
197142428 sansen F March 12, 2023, 6:10 p.m. OK Rust 2021 TESTS 80 904 20480000
197141892 sansen F March 12, 2023, 6:06 p.m. OK Rust 2021 TESTS 80 1201 19968000
197142102 sansen F March 12, 2023, 6:08 p.m. OK Rust 2021 TESTS 80 1450 20480000

remove filters

Back to search problems