AIM Tech Round 4 (Div. 1)

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
843 AIM Tech Round 4 (Div. 1) FINISHED False 9000 228230699 Aug. 24, 2017, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 902 ) D Dynamic Shortest Path PROGRAMMING graphs shortest paths 2700

B"You are given a weighted directed graph, consisting of n vertices and m edges. You should answer q queries of two types: The first line of input data contains integers n, m, q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892000) -- the number of vertices and edges in the graph, and the number of requests correspondingly. Next m lines of input data contain the descriptions of edges: i-th of them contains description of edge with index i -- three integers ai, bi, ci (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai, xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ci xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the beginning and the end of edge, and its initial weight correspondingly. Next q lines of input data contain the description of edges in the format described above (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89v xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89lj xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m). It's guaranteed that inside single query all lj are distinct. Also, it's guaranteed that a total number of edges in all requests of the second type does not exceed 106. For each query of first type print the length of the shortest path from 1 to v in a separate line. Print -1, if such path does not exists. The description of changes of the graph in the first sample case: The description of changes of the graph in the second sample case: "...

Tutorials

AIM Tech Round 4 -- Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
34941170 zyding D Feb. 5, 2018, 10:44 a.m. OK GNU C++ TESTS 195 2963 25497600 2700
40980199 ReaLNero1 D July 30, 2018, 5:25 p.m. OK GNU C++ TESTS 195 3509 23552000 2700
29973325 Durant_Lee D Sept. 1, 2017, 12:03 p.m. OK GNU C++ TESTS 195 5850 71577600 2700
29865574 dy0607 D Aug. 29, 2017, 12:20 p.m. OK GNU C++ TESTS 195 6161 66867200 2700
42296748 Scut82 D Aug. 31, 2018, 3:57 a.m. OK GNU C++ TESTS 195 6302 14745600 2700
42296274 Scut82 D Aug. 31, 2018, 3:27 a.m. OK GNU C++ TESTS 195 6707 67072000 2700
29862517 F.Darcy D Aug. 29, 2017, 9:47 a.m. OK GNU C++ TESTS 195 6817 15052800 2700
29864495 vjudge1 D Aug. 29, 2017, 11:31 a.m. OK GNU C++ TESTS 195 7035 25497600 2700
37650207 lyd729 D April 27, 2018, 3:07 a.m. OK GNU C++ TESTS 195 7066 75059200 2700
35514754 Dedicatus545 D Feb. 20, 2018, 7:52 a.m. OK GNU C++ TESTS 195 7113 71987200 2700
30374881 Kmcode D Sept. 16, 2017, 2:11 a.m. OK GNU C++11 TESTS 195 3275 39116800 2700
34937670 FizzyDavid D Feb. 5, 2018, 8:10 a.m. OK GNU C++11 TESTS 195 3509 24371200 2700
29805442 Wild_Hamster D Aug. 26, 2017, 11:44 a.m. OK GNU C++11 TESTS 195 3775 29081600 2700
30374847 Kmcode D Sept. 16, 2017, 2:06 a.m. OK GNU C++11 TESTS 195 3790 39116800 2700
30487173 rqgao2014 D Sept. 19, 2017, 3:04 a.m. OK GNU C++11 TESTS 195 3884 10956800 2700
29769468 Burunduk1 D Aug. 25, 2017, 5:46 a.m. OK GNU C++11 TESTS 195 3962 17715200 2700
61011763 qiyue D Sept. 21, 2019, 12:25 p.m. OK GNU C++11 TESTS 195 4117 18432000 2700
29843891 Wild_Hamster D Aug. 28, 2017, 11:13 a.m. OK GNU C++11 TESTS 195 4212 28979200 2700
30374637 Kmcode D Sept. 16, 2017, 1:38 a.m. OK GNU C++11 TESTS 195 4336 39116800 2700
30489483 King_George D Sept. 19, 2017, 6:22 a.m. OK GNU C++11 TESTS 195 4492 10956800 2700
29772519 MrDindows D Aug. 25, 2017, 7:46 a.m. OK GNU C++14 TESTS 195 4757 18432000 2700
29772470 MrDindows D Aug. 25, 2017, 7:44 a.m. OK GNU C++14 TESTS 195 5194 18636800 2700
37038608 _LowestJN D April 7, 2018, 5:47 a.m. OK GNU C++14 TESTS 195 5818 74444800 2700
51279960 jslijin D March 14, 2019, 2:46 a.m. OK GNU C++14 TESTS 195 6130 72089600 2700
30696241 chemthan D Sept. 25, 2017, 5:58 a.m. OK GNU C++14 TESTS 195 6411 13209600 2700
29788972 Egor.Lifar D Aug. 25, 2017, 5:53 p.m. OK GNU C++14 TESTS 195 6536 17817600 2700
29772152 sd0061 D Aug. 25, 2017, 7:31 a.m. OK GNU C++14 TESTS 195 6567 67072000 2700
29772557 MrDindows D Aug. 25, 2017, 7:47 a.m. OK GNU C++14 TESTS 195 6645 17817600 2700
42092356 Kuroni D Aug. 25, 2018, 2 p.m. OK GNU C++14 TESTS 195 6676 67379200 2700
34720054 LiChenKoh D Jan. 30, 2018, 7:58 p.m. OK GNU C++14 TESTS 195 6723 15155200 2700
46571936 Shayan.P D Dec. 4, 2018, 6:27 a.m. OK GNU C++17 TESTS 195 5397 25292800 2700
45986314 ZZHzzh0_0 D Nov. 20, 2018, 6:50 a.m. OK GNU C++17 TESTS 195 6130 69632000 2700
42477352 vjudge1 D Sept. 5, 2018, 12:33 a.m. OK GNU C++17 TESTS 195 6332 67072000 2700
45986287 vjudge4 D Nov. 20, 2018, 6:49 a.m. OK GNU C++17 TESTS 195 6520 69324800 2700
65164480 YangDavid D Nov. 16, 2019, 12:44 p.m. OK GNU C++17 TESTS 195 6723 132403200 2700
49852491 vjudge1 D Feb. 13, 2019, 5:01 a.m. OK GNU C++17 TESTS 195 6863 68096000 2700
55489722 hjk1030 D June 12, 2019, 9:35 a.m. OK GNU C++17 TESTS 195 6863 72908800 2700
58411154 rareone0602 D Aug. 7, 2019, 1:44 a.m. OK GNU C++17 TESTS 195 6910 23859200 2700
41997347 Hany01 D Aug. 23, 2018, 12:55 p.m. OK GNU C++17 TESTS 195 7082 71577600 2700
42158478 Benq D Aug. 27, 2018, 4:23 p.m. OK GNU C++17 TESTS 195 7144 68915200 2700
32576314 fetetriste D Nov. 23, 2017, 1:22 p.m. OK Java 8 TESTS 195 7346 23142400 2700
58826726 c1729 D Aug. 14, 2019, 4:11 p.m. OK PyPy 2 TESTS 195 9718 42393600 2700
31419086 kenkoooo D Oct. 16, 2017, 4:47 p.m. OK Rust TESTS 195 8767 43724800 2700
30718149 kenkoooo D Sept. 25, 2017, 12:04 p.m. OK Rust TESTS 195 9594 123084800 2700
30764185 kenkoooo D Sept. 26, 2017, 10:14 p.m. OK Rust TESTS 195 9671 79052800 2700
31446802 kenkoooo D Oct. 17, 2017, 11:44 a.m. OK Rust TESTS 195 9734 44032000 2700
30764302 kenkoooo D Sept. 26, 2017, 10:28 p.m. OK Rust TESTS 195 9812 79052800 2700
30694446 kenkoooo D Sept. 25, 2017, 3:34 a.m. OK Rust TESTS 195 9921 122982400 2700

remove filters

Back to search problems