Educational Codeforces Round 89 (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
1366 Educational Codeforces Round 89 (Rated for Div. 2) FINISHED False 7200 139937099 June 11, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 817 ) F Jog Around The Graph PROGRAMMING binary search dp geometry graphs

B'You are given a simple weighted connected undirected graph, consisting of n vertices and m edges. A path in the graph of length k is a sequence of k+1 vertices v_1, v_2, ... , v_{k+1} such that for each i (1 <= i <= k) the edge (v_i, v_{i+1}) is present in the graph. A path from some vertex v also has vertex v_1=v . Note that edges and vertices are allowed to be included in the path multiple times. The weight of the path is the total weight of edges in it. For each i from 1 to q consider a path from vertex 1 of length i of the maximum weight. What is the sum of weights of these q paths? Answer can be quite large, so print it modulo 10^9+7 . The first line contains a three integers n , m , q ( 2 <= n <= 2000 ; n - 1 <= m <= 2000 ; m <= q <= 10^9 ) -- the number of vertices in the graph, the number of edges in the graph and the number of lengths that should be included in the answer. Each of the next m lines contains a description of an edge: three integers v , u , w ( 1 <= v, u <= n ; 1 <= w <= 10^6 ) -- two vertices v and u are connected by an undirected edge with weight w . The graph contains no loops and no multiple edges. It is guaranteed that the given edges form a connected graph. Print a single integer -- the sum of the weights of the paths from vertex 1 of maximum weights of lengths 1, 2, ... , q modulo 10^9+7 . Here is the graph for the first example: Some maximum weight paths are: So the answer is the sum of 25 terms: 3+11+24+39+ ... In the second example the maximum weight paths have weights 4 , 8 , 12 , 16 and 20 . '...

Tutorials

Educational Codeforces Round 89 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
83460601 Gassa F June 11, 2020, 4:34 p.m. OK D TESTS 39 156 4300800
83485492 vinhntndu F June 11, 2020, 10:49 p.m. OK D TESTS 39 171 4300800
83451597 rainboy F June 11, 2020, 4:20 p.m. OK GNU C11 TESTS 39 61 102400
83535260 serotonin F June 12, 2020, 1:35 p.m. OK GNU C++11 TESTS 39 31 102400
83535597 serotonin F June 12, 2020, 1:39 p.m. OK GNU C++11 TESTS 39 46 102400
83466386 Nson F June 11, 2020, 5:08 p.m. OK GNU C++11 TESTS 39 46 204800
83514171 JJLeo F June 12, 2020, 8:59 a.m. OK GNU C++11 TESTS 39 46 204800
83491024 Prabowo F June 12, 2020, 2:27 a.m. OK GNU C++11 TESTS 39 62 16281600
83506357 Frame233 F June 12, 2020, 7:10 a.m. OK GNU C++11 TESTS 39 78 16281600
83465756 21_din_me_paisa_double F June 11, 2020, 5:03 p.m. OK GNU C++11 TESTS 39 93 204800
83545966 oyqy1203 F June 12, 2020, 3:41 p.m. OK GNU C++11 TESTS 39 93 32051200
83450097 Bruteforceman F June 11, 2020, 4:16 p.m. OK GNU C++11 TESTS 39 108 32358400
83507360 yasugongshang F June 12, 2020, 7:23 a.m. OK GNU C++11 TESTS 39 108 32358400
83540638 abeker F June 12, 2020, 2:39 p.m. OK GNU C++14 TESTS 39 61 16486400
83451300 GonHxH F June 11, 2020, 4:19 p.m. OK GNU C++14 TESTS 39 62 409600
83540510 abeker F June 12, 2020, 2:38 p.m. OK GNU C++14 TESTS 39 62 16486400
83497972 marcOS F June 12, 2020, 4:58 a.m. OK GNU C++14 TESTS 39 78 409600
83498056 marcOS F June 12, 2020, 5 a.m. OK GNU C++14 TESTS 39 78 409600
83568381 mayiyang F June 12, 2020, 11:54 p.m. OK GNU C++14 TESTS 39 93 16588800
83489083 yukihana0416 F June 12, 2020, 1:21 a.m. OK GNU C++14 TESTS 39 93 17510400
83470007 NaimSS F June 11, 2020, 5:44 p.m. OK GNU C++14 TESTS 39 108 102400
83510205 emoairx F June 12, 2020, 8:03 a.m. OK GNU C++14 TESTS 39 108 409600
83562372 pendulum F June 12, 2020, 8:32 p.m. OK GNU C++14 TESTS 39 108 32563200
83565752 VirtualInsanity F June 12, 2020, 10 p.m. OK GNU C++17 TESTS 39 46 102400
83570975 -messi- F June 13, 2020, 1:59 a.m. OK GNU C++17 TESTS 39 46 307200
83565733 VirtualInsanity F June 12, 2020, 9:59 p.m. OK GNU C++17 TESTS 39 46 409600
83521634 Golovanov399 F June 12, 2020, 10:40 a.m. OK GNU C++17 TESTS 39 61 512000
83470581 wiwitrifai F June 11, 2020, 5:50 p.m. OK GNU C++17 TESTS 39 62 409600
83495659 kjnh10 F June 12, 2020, 4:13 a.m. OK GNU C++17 TESTS 39 78 512000
83550586 Newtech66 F June 12, 2020, 5:26 p.m. OK GNU C++17 TESTS 39 78 512000
83480857 D.Pavlenko F June 11, 2020, 8:29 p.m. OK GNU C++17 TESTS 39 78 819200
83460965 dreamoon_love_AA F June 11, 2020, 4:37 p.m. OK GNU C++17 TESTS 39 78 17203200
83550795 Newtech66 F June 12, 2020, 5:29 p.m. OK GNU C++17 TESTS 39 93 409600
83495817 Elegia F June 12, 2020, 4:17 a.m. OK GNU C++17 (64) TESTS 39 46 102400
83487526 MZuenni F June 12, 2020, 12:24 a.m. OK GNU C++17 (64) TESTS 39 46 204800
83536720 serotonin F June 12, 2020, 1:54 p.m. OK GNU C++17 (64) TESTS 39 46 204800
83540985 GoldenLord F June 12, 2020, 2:44 p.m. OK GNU C++17 (64) TESTS 39 46 307200
83447806 Temotoloraia F June 11, 2020, 4:12 p.m. OK GNU C++17 (64) TESTS 39 46 307200
83564722 dorijanlendvaj F June 12, 2020, 9:28 p.m. OK GNU C++17 (64) TESTS 39 46 409600
83484773 Marckess F June 11, 2020, 10:22 p.m. OK GNU C++17 (64) TESTS 39 46 32358400
83442353 Kuroni F June 11, 2020, 4:01 p.m. OK GNU C++17 (64) TESTS 39 46 32460800
83530531 Mastre F June 12, 2020, 12:35 p.m. OK GNU C++17 (64) TESTS 39 61 32665600
83549814 timf1089 F June 12, 2020, 5:15 p.m. OK GNU C++17 (64) TESTS 39 62 16281600
83561873 Oopsimbad F June 12, 2020, 8:21 p.m. OK Java 11 TESTS 39 280 0
83463260 insert_cool_handle F June 11, 2020, 4:47 p.m. OK Java 11 TESTS 39 327 39936000
83463040 insert_cool_handle F June 11, 2020, 4:46 p.m. OK Java 11 TESTS 39 327 39936000
83572512 Spheniscine F June 13, 2020, 2:50 a.m. OK Kotlin TESTS 39 311 1126400
83562565 BpeMeHHa91_TryDHocTb F June 12, 2020, 8:36 p.m. OK MS C++ 2017 TESTS 39 62 204800
83530058 pajenegod F June 12, 2020, 12:29 p.m. OK PyPy 2 TESTS 39 421 20172800
83539258 pajenegod F June 12, 2020, 2:23 p.m. OK PyPy 2 TESTS 39 452 20172800
83529598 pajenegod F June 12, 2020, 12:23 p.m. OK PyPy 2 TESTS 39 483 20172800
83451448 qwertz73355a F June 11, 2020, 4:19 p.m. OK PyPy 3 TESTS 39 655 12083200
83465878 sh1194 F June 11, 2020, 5:04 p.m. OK PyPy 3 TESTS 39 655 12185600
83466345 sh1194 F June 11, 2020, 5:08 p.m. OK PyPy 3 TESTS 39 670 12185600
83466904 sh1194 F June 11, 2020, 5:13 p.m. OK PyPy 3 TESTS 39 716 12800000
83466718 sh1194 F June 11, 2020, 5:11 p.m. OK PyPy 3 TESTS 39 717 12902400
83470172 sansen F June 11, 2020, 5:46 p.m. OK Rust TESTS 39 78 307200

remove filters

Back to search problems