Dasha Code Championship - SPb Finals Round (only for onsite-finalists)

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
1210 Dasha Code Championship - SPb Finals Round (only for onsite-finalists) FINISHED False 9000 162680099 Sept. 22, 2019, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1518 ) D Konrad and Company Evaluation PROGRAMMING graphs 2300

B"Konrad is a Human Relations consultant working for VoltModder, a large electrical equipment producer. Today, he has been tasked with evaluating the level of happiness in the company. There are n people working for VoltModder, numbered from 1 to n . Each employee earns a different amount of money in the company -- initially, the i -th person earns i rubles per day. On each of q following days, the salaries will be revised. At the end of the i -th day, employee v_i will start earning n+i rubles per day and will become the best-paid person in the company. The employee will keep his new salary until it gets revised again. Some pairs of people don't like each other. This creates a great psychological danger in the company. Formally, if two people a and b dislike each other and a earns more money than b , employee a will brag about this to b . A dangerous triple is a triple of three employees a , b and c , such that a brags to b , who in turn brags to c . If a dislikes b , then b dislikes a . At the beginning of each day, Konrad needs to evaluate the number of dangerous triples in the company. Can you help him do it? The first line contains two integers n and m ( 1 <= n <= 100 ,000 , 0 <= m <= 100 ,000 ) -- the number of employees in the company and the number of pairs of people who don't like each other. Each of the following m lines contains two integers a_i , b_i ( 1 <= a_i, b_i <= n , a_i neq b_i ) denoting that employees a_i and b_i hate each other (that is, a_i dislikes b_i and b_i dislikes a_i ). Each such relationship will be mentioned exactly once. The next line contains an integer q ( 0 <= q <= 100 ,000 ) -- the number of salary revisions. The i -th of the following q lines contains a single integer "...

Tutorials

Dasha Code Championship Finals and Mirror Round 588 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
63917096 szm_ D Oct. 31, 2019, 10:27 a.m. OK GNU C++11 TESTS 69 342 10444800 2300
63294013 vantoan_19 D Oct. 24, 2019, 12:29 p.m. OK GNU C++11 TESTS 69 451 4403200 2300
61189672 AutumnKite D Sept. 24, 2019, 1:53 a.m. OK GNU C++11 TESTS 69 452 3993600 2300
62403878 tsingcbx D Oct. 12, 2019, 8:19 a.m. OK GNU C++11 TESTS 69 483 5222400 2300
61594650 Adelard D Oct. 1, 2019, 8:20 a.m. OK GNU C++11 TESTS 69 514 5222400 2300
64435918 Dream-chasing_Juvenile D Nov. 7, 2019, 1:17 a.m. OK GNU C++11 TESTS 69 592 4403200 2300
62373896 stefan_creasta D Oct. 11, 2019, 4:37 p.m. OK GNU C++11 TESTS 69 592 8499200 2300
68359464 Pyqe D Jan. 7, 2020, 1:31 p.m. OK GNU C++11 TESTS 69 592 63078400 2300
61356489 cheetose D Sept. 27, 2019, 10:38 a.m. OK GNU C++11 TESTS 69 623 5222400 2300
61784886 ToMmyDong D Oct. 3, 2019, 2:12 p.m. OK GNU C++11 TESTS 69 670 4403200 2300
61063070 cookiedoth D Sept. 22, 2019, 10:06 a.m. OK GNU C++14 TESTS 69 327 4608000 2300
61204917 aj1729 D Sept. 24, 2019, 9:15 a.m. OK GNU C++14 TESTS 69 358 10342400 2300
67466127 megatron10599 D Dec. 23, 2019, 11:08 a.m. OK GNU C++14 TESTS 69 389 4608000 2300
61266904 grey.craneoff D Sept. 25, 2019, 12:59 p.m. OK GNU C++14 TESTS 69 389 4608000 2300
63634564 shiliangzhi D Oct. 28, 2019, 7:43 a.m. OK GNU C++14 TESTS 69 390 6963200 2300
63917066 xjq D Oct. 31, 2019, 10:26 a.m. OK GNU C++14 TESTS 69 405 4608000 2300
63051855 cimh D Oct. 21, 2019, 3:12 a.m. OK GNU C++14 TESTS 69 405 4608000 2300
61716454 devACE D Oct. 2, 2019, 12:42 p.m. OK GNU C++14 TESTS 69 405 8192000 2300
63968672 13553812325 D Nov. 1, 2019, 8:15 a.m. OK GNU C++14 TESTS 69 420 4608000 2300
65942006 raghav_19 D Nov. 29, 2019, 6:45 a.m. OK GNU C++14 TESTS 69 452 4608000 2300
67849143 dinosaurs D Dec. 29, 2019, 1 a.m. OK GNU C++17 TESTS 69 326 4198400 2300
61063674 Nebuchadnezzar D Sept. 22, 2019, 10:18 a.m. OK GNU C++17 TESTS 69 343 4608000 2300
61062739 Kurpilyansky D Sept. 22, 2019, 9:59 a.m. OK GNU C++17 TESTS 69 358 4198400 2300
63079377 isaf27 D Oct. 21, 2019, 2:38 p.m. OK GNU C++17 TESTS 69 374 6246400 2300
61064704 riadwaw D Sept. 22, 2019, 10:39 a.m. OK GNU C++17 TESTS 69 389 4198400 2300
61577356 LeoRiether D Sept. 30, 2019, 9:54 p.m. OK GNU C++17 TESTS 69 405 4198400 2300
61062632 aid D Sept. 22, 2019, 9:57 a.m. OK GNU C++17 TESTS 69 405 4198400 2300
62894956 dantita D Oct. 18, 2019, 11:01 p.m. OK GNU C++17 TESTS 69 405 4608000 2300
61065404 orz D Sept. 22, 2019, 10:53 a.m. OK GNU C++17 TESTS 69 405 6553600 2300
62049343 Harshil_Bhavsar D Oct. 7, 2019, 8:58 a.m. OK GNU C++17 TESTS 69 421 8601600 2300
61064204 eatmore D Sept. 22, 2019, 10:28 a.m. OK Java 8 TESTS 69 1123 3788800 2300

remove filters

Back to search problems