VK Cup 2012 Round 3 (Unofficial Div. 2 Edition)

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
174 VK Cup 2012 Round 3 (Unofficial Div. 2 Edition) FINISHED False 7200 397925699 April 8, 2012, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1100 ) C Range Increments PROGRAMMING data structures greedy 1800

B"Polycarpus is an amateur programmer. Now he is analyzing a friend's program. He has already found there the function rangeIncrement(l, r), that adds 1 to each element of some array a for all indexes in the segment [l, xe2 x80 x89r]. In other words, this function does the following: Polycarpus knows the state of the array a after a series of function calls. He wants to determine the minimum number of function calls that lead to such state. In addition, he wants to find what function calls are needed in this case. It is guaranteed that the required number of calls does not exceed 105. Before calls of function rangeIncrement(l, r) all array elements equal zero. The first input line contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the length of the array a[1... n]. The second line contains its integer space-separated elements, a[1], xe2 x80 x89a[2], xe2 x80 x89..., xe2 x80 x89a[n] (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a[i] xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) after some series of function calls rangeIncrement(l, r). It is guaranteed that at least one element of the array is positive. It is guaranteed that the answer contains no more than 105 calls of function rangeIncrement(l, r). Print on the first line t -- the minimum number of calls of function rangeIncrement(l, r), that lead to the array from the input data. It is guaranteed that this number will turn out not more than 105. Then print t lines -- the descriptions of function calls, one per line. Each line should contain two integers li, xe2 x80 x89ri (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ri xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) -- the arguments of the i-th call rangeIncrement(l, r). Calls can be applied in any order. If there are multiple solutions, you are allowed to print any of them. The first sample requires a call for the entire array, and four additional calls:"...

Tutorials

VK Cup 2012 Round 3 — Разбор

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
56367423 rr_ C July 1, 2019, 12:35 a.m. OK D TESTS 63 218 4198400 1800
1500422 KAP C April 8, 2012, 3:46 p.m. OK Delphi TESTS 63 60 2150400 1800
4080101 AHTuTTuTyX C July 16, 2013, 9:42 a.m. OK Delphi TESTS 63 78 1638400 1800
1500531 Python C April 8, 2012, 3:49 p.m. OK Delphi TESTS 63 80 2150400 1800
1502468 ViruZ C April 8, 2012, 4:41 p.m. OK Delphi TESTS 63 80 2764800 1800
1499348 sempav C April 8, 2012, 3:27 p.m. OK Delphi TESTS 63 80 6348800 1800
1502690 Paulina C April 8, 2012, 4:47 p.m. OK Delphi TESTS 63 80 10649600 1800
1540289 Ramp C April 15, 2012, 6:58 p.m. OK Delphi TESTS 63 80 12902400 1800
1502802 kon_an C April 8, 2012, 4:50 p.m. OK Delphi TESTS 63 90 2457600 1800
1501097 Golovanov399 C April 8, 2012, 4 p.m. OK Delphi TESTS 63 90 2560000 1800
1501628 amirrr C April 8, 2012, 4:15 p.m. OK Delphi TESTS 63 90 5017600 1800
1503023 San_Sany4 C April 8, 2012, 4:54 p.m. OK FPC TESTS 63 60 1945600 1800
1506933 love2_LH C April 9, 2012, 1:24 p.m. OK FPC TESTS 63 60 2252800 1800
1506411 Tatyana_Petrashko C April 9, 2012, 9:20 a.m. OK FPC TESTS 63 60 2252800 1800
1506310 Alex_2oo8 C April 9, 2012, 8:20 a.m. OK FPC TESTS 63 60 2252800 1800
1687322 blackapple C May 14, 2012, 9:06 a.m. OK FPC TESTS 63 60 2764800 1800
1531087 Dima_qwer C April 13, 2012, 4:34 p.m. OK FPC TESTS 63 60 3174400 1800
3600049 T0RRES C April 22, 2013, 8:36 a.m. OK FPC TESTS 63 62 1740800 1800
1505294 scorpion C April 8, 2012, 8:53 p.m. OK FPC TESTS 63 80 2252800 1800
1510644 7Midav7 C April 11, 2012, 7:16 p.m. OK FPC TESTS 63 80 2662400 1800
1510036 akim C April 11, 2012, 10:55 a.m. OK FPC TESTS 63 80 2969600 1800
1509977 zybest C April 11, 2012, 10:16 a.m. OK GNU C TESTS 63 110 2560000 1800
1506147 s864372002 C April 9, 2012, 7:01 a.m. OK GNU C TESTS 63 110 2560000 1800
1510642 ggaammeerr C April 11, 2012, 7:15 p.m. OK GNU C TESTS 63 110 10240000 1800
1502706 jberci C April 8, 2012, 4:47 p.m. OK GNU C TESTS 63 140 2560000 1800
3633405 spalac24 C April 26, 2013, 1:29 a.m. OK GNU C++ TESTS 63 62 3993600 1800
1505234 andreyv C April 8, 2012, 8:34 p.m. OK GNU C++ TESTS 63 90 2662400 1800
1500545 andreyv C April 8, 2012, 3:49 p.m. OK GNU C++ TESTS 63 90 3072000 1800
1515910 havaliza C April 12, 2012, 3:11 p.m. OK GNU C++ TESTS 63 90 3584000 1800
4814999 hkglly C Oct. 17, 2013, 3:35 p.m. OK GNU C++ TESTS 63 92 819200 1800
4206355 RamiZ C July 31, 2013, 12:20 a.m. OK GNU C++ TESTS 63 92 6144000 1800
5129578 setiadialvin C Nov. 17, 2013, 7:39 a.m. OK GNU C++ TESTS 63 92 6348800 1800
4030379 gcd_fuck C July 6, 2013, 9:56 a.m. OK GNU C++ TESTS 63 93 819200 1800
3039127 indeed2008 C Jan. 31, 2013, 5:35 a.m. OK GNU C++ TESTS 63 93 1331200 1800
3912164 zero91 C June 18, 2013, 3:27 a.m. OK GNU C++ TESTS 63 93 1740800 1800
1626371 Archon.JK C April 25, 2012, 7:46 a.m. OK GNU C++0x TESTS 63 110 2150400 1800
1614037 watashi C April 22, 2012, 7:08 p.m. OK GNU C++0x TESTS 63 110 3276800 1800
2465895 Kujou_Karen C Oct. 29, 2012, 8:40 a.m. OK GNU C++0x TESTS 63 125 1638400 1800
1507614 unit7 C April 9, 2012, 5:21 p.m. OK GNU C++0x TESTS 63 140 3891200 1800
3909778 Sh_Nur C June 17, 2013, 12:57 p.m. OK GNU C++0x TESTS 63 140 16281600 1800
1509591 pablo.aguilar C April 11, 2012, 4:45 a.m. OK GNU C++0x TESTS 63 140 16998400 1800
1908101 savinov C July 18, 2012, 12:19 a.m. OK GNU C++0x TESTS 63 170 3481600 1800
7004134 GaryYe C July 3, 2014, 12:10 p.m. OK GNU C++0x TESTS 63 186 5017600 1800
7192694 user32 C July 21, 2014, 8:59 a.m. OK GNU C++0x TESTS 63 186 7987200 1800
9939357 nitinj C Feb. 20, 2015, 3:59 p.m. OK GNU C++0x TESTS 63 186 15052800 1800
57901696 lopare C July 28, 2019, 3:56 p.m. OK GNU C++11 TESTS 63 122 614400 1800
49243754 vjudge4 C Jan. 31, 2019, 11:38 a.m. OK GNU C++11 TESTS 63 122 2048000 1800
19753653 Daniar C Aug. 9, 2016, 7:42 p.m. OK GNU C++11 TESTS 63 122 3276800 1800
49206851 vjudge3 C Jan. 30, 2019, 2:09 p.m. OK GNU C++11 TESTS 63 124 819200 1800
14863375 Deltadromeus C Dec. 18, 2015, 3:59 p.m. OK GNU C++11 TESTS 63 124 819200 1800
49189465 Makiras C Jan. 30, 2019, 7:35 a.m. OK GNU C++11 TESTS 63 124 1638400 1800
49190300 vjudge2 C Jan. 30, 2019, 7:58 a.m. OK GNU C++11 TESTS 63 124 1843200 1800
21428135 vjudge1 C Oct. 14, 2016, 4:39 p.m. OK GNU C++11 TESTS 63 124 2662400 1800
17086606 freebsdx C April 1, 2016, 8:10 a.m. OK GNU C++11 TESTS 63 124 2662400 1800
25694832 vjudge5 C March 21, 2017, 4:10 p.m. OK GNU C++11 TESTS 63 124 2969600 1800
48767024 hungbmt1503 C Jan. 22, 2019, 7:54 p.m. OK GNU C++14 TESTS 63 124 1024000 1800
29616206 aidinhnkhn C Aug. 20, 2017, 8:31 a.m. OK GNU C++14 TESTS 63 124 1126400 1800
29591581 vjudge1 C Aug. 19, 2017, 7:27 a.m. OK GNU C++14 TESTS 63 124 1126400 1800
66233194 phuleethanh C Dec. 3, 2019, 3:11 p.m. OK GNU C++14 TESTS 63 124 2560000 1800
45206885 LODB---D C Nov. 2, 2018, 1:12 p.m. OK GNU C++14 TESTS 63 124 2662400 1800
23670054 Ali.Pi C Jan. 9, 2017, 7:42 p.m. OK GNU C++14 TESTS 63 124 2969600 1800
25642806 I_love_chickpea C March 19, 2017, 10:31 a.m. OK GNU C++14 TESTS 63 124 4608000 1800
32335373 waynetuinfor C Nov. 15, 2017, 3:08 p.m. OK GNU C++14 TESTS 63 124 26009600 1800
29591658 vjudge5 C Aug. 19, 2017, 7:30 a.m. OK GNU C++14 TESTS 63 154 1126400 1800
60724906 bnmd C Sept. 17, 2019, 1:33 p.m. OK GNU C++14 TESTS 63 154 1843200 1800
58086488 lzx1999 C July 31, 2019, 3:50 p.m. OK GNU C++17 TESTS 63 124 1024000 1800
45410581 _MGH_ C Nov. 7, 2018, 11:54 a.m. OK GNU C++17 TESTS 63 124 1433600 1800
51917830 yuhta C March 28, 2019, 12:31 a.m. OK GNU C++17 TESTS 63 124 2764800 1800
59103586 MineCalculatorNotWorking C Aug. 19, 2019, 5:04 p.m. OK GNU C++17 TESTS 63 124 6041600 1800
49198345 vjudge3 C Jan. 30, 2019, 11:27 a.m. OK GNU C++17 TESTS 63 154 819200 1800
62437640 tnakao C Oct. 12, 2019, 6:04 p.m. OK GNU C++17 TESTS 63 154 1638400 1800
49187824 vjudge2 C Jan. 30, 2019, 6:54 a.m. OK GNU C++17 TESTS 63 154 1843200 1800
51917981 yuhta C March 28, 2019, 12:46 a.m. OK GNU C++17 TESTS 63 154 2457600 1800
67184717 techaddict C Dec. 19, 2019, 3:39 a.m. OK GNU C++17 TESTS 63 154 2662400 1800
51917950 yuhta C March 28, 2019, 12:44 a.m. OK GNU C++17 TESTS 63 154 2662400 1800
60655979 sighduck C Sept. 15, 2019, 11:31 p.m. OK Go TESTS 63 248 4608000 1800
1505848 cojna C April 9, 2012, 3:41 a.m. OK Haskell TESTS 63 800 17920000 1800
4220562 marty.stranger C Aug. 3, 2013, 12:25 p.m. OK Haskell TESTS 63 936 20172800 1800
4220399 marty.stranger C Aug. 3, 2013, 11:05 a.m. OK Haskell TESTS 63 936 20172800 1800
4220433 marty.stranger C Aug. 3, 2013, 11:19 a.m. OK Haskell TESTS 63 966 20172800 1800
3658863 DiegoAE C May 1, 2013, 7:03 p.m. OK Java 6 TESTS 63 187 307200 1800
1500869 Nox C April 8, 2012, 3:55 p.m. OK Java 6 TESTS 63 230 43520000 1800
1506275 knok16 C April 9, 2012, 8:01 a.m. OK Java 6 TESTS 63 250 43520000 1800
1502429 shtorm941 C April 8, 2012, 4:39 p.m. OK Java 6 TESTS 63 250 43622400 1800
2310401 Azat_Yusupov C Oct. 7, 2012, 8:44 a.m. OK Java 6 TESTS 63 265 307200 1800
1506227 lightning C April 9, 2012, 7:30 a.m. OK Java 6 TESTS 63 280 43622400 1800
1501266 arbesfeld C April 8, 2012, 4:05 p.m. OK Java 6 TESTS 63 280 43622400 1800
1501226 Izot_NNSTU C April 8, 2012, 4:04 p.m. OK Java 6 TESTS 63 300 50073600 1800
2235966 Bugman C Sept. 24, 2012, 12:58 a.m. OK Java 6 TESTS 63 328 10342400 1800
1505783 Jokser C April 9, 2012, 2:59 a.m. OK Java 6 TESTS 63 330 53964800 1800
9965939 sultan.of.swing C Feb. 23, 2015, 6:17 a.m. OK Java 7 TESTS 63 280 0 1800
1508733 ValenKof C April 10, 2012, 1:32 p.m. OK Java 7 TESTS 63 310 51507200 1800
9965537 sultan.of.swing C Feb. 23, 2015, 5:07 a.m. OK Java 7 TESTS 63 342 14540800 1800
1593175 mostafa_fahim C April 21, 2012, 10:39 a.m. OK Java 7 TESTS 63 720 45158400 1800
1501414 Misha C April 8, 2012, 4:10 p.m. OK Java 7 TESTS 63 830 45260800 1800
1507837 Gantz C April 9, 2012, 8:22 p.m. OK Java 7 TESTS 63 860 45158400 1800
17934276 alibaba C May 16, 2016, 4:34 p.m. OK Java 8 TESTS 63 404 21913600 1800
48193940 KulikAlex C Jan. 10, 2019, 7:53 p.m. OK Java 8 TESTS 63 530 3584000 1800
42412163 hongquanntct C Sept. 3, 2018, 2:37 a.m. OK Java 8 TESTS 63 624 9932800 1800
27091594 pitfall C May 13, 2017, 2:38 p.m. OK Java 8 TESTS 63 654 69734400 1800
11067960 A.Elahi C May 11, 2015, 7:35 a.m. OK Java 8 TESTS 63 1964 121344000 1800
1617860 consoleapplication1 C April 23, 2012, 9:08 a.m. OK Mono C# TESTS 63 300 27443200 1800
1516326 RealAikido C April 12, 2012, 8:31 p.m. OK Mono C# TESTS 63 300 30412800 1800
1503804 dannsk C April 8, 2012, 5:44 p.m. OK Mono C# TESTS 63 380 28569600 1800
1510318 J_M C April 11, 2012, 2:41 p.m. OK MS C++ TESTS 63 110 2662400 1800
1583988 kirill C April 19, 2012, 8:40 a.m. OK MS C++ TESTS 63 110 4198400 1800
7289736 vjudge4 C July 30, 2014, 5:36 a.m. OK MS C++ TESTS 63 122 3481600 1800
49186338 vjudge4 C Jan. 30, 2019, 6:15 a.m. OK MS C++ TESTS 63 124 2764800 1800
1748840 564ht C June 1, 2012, 5:03 a.m. OK MS C++ TESTS 63 130 2560000 1800
1500618 bbugaev C April 8, 2012, 3:50 p.m. OK MS C++ TESTS 63 130 2969600 1800
1501563 romanova C April 8, 2012, 4:13 p.m. OK MS C++ TESTS 63 130 2969600 1800
1506309 littlepanda C April 9, 2012, 8:18 a.m. OK MS C++ TESTS 63 130 3993600 1800
1502567 ksjuchi C April 8, 2012, 4:44 p.m. OK MS C++ TESTS 63 130 4096000 1800
1502865 Inspired C April 8, 2012, 4:51 p.m. OK MS C++ TESTS 63 130 4300800 1800
1506926 taka_taka C April 9, 2012, 1:21 p.m. OK PHP TESTS 63 360 41472000 1800
15764001 nysanier C Feb. 3, 2016, 7:43 a.m. OK PyPy 3 TESTS 63 1152 30003200 1800
3086711 nealzane C Feb. 9, 2013, 1:36 p.m. OK Python 2 TESTS 63 453 10342400 1800
1510247 Kelang C April 11, 2012, 1:45 p.m. OK Python 2 TESTS 63 560 15872000 1800
1510408 nCk C April 11, 2012, 3:51 p.m. OK Python 2 TESTS 63 580 11980800 1800
1531320 neex.emil C April 13, 2012, 7:07 p.m. OK Python 2 TESTS 63 580 12083200 1800
1506585 alexej C April 9, 2012, 11:05 a.m. OK Python 2 TESTS 63 610 8396800 1800
1503293 KkJj C April 8, 2012, 5 p.m. OK Python 2 TESTS 63 690 11059200 1800
1824503 SamanSami C June 23, 2012, 5:14 p.m. OK Python 2 TESTS 63 730 15257600 1800
14702495 Eeyore C Dec. 8, 2015, 6:21 p.m. OK Python 3 TESTS 63 498 12697600 1800
15764031 nysanier C Feb. 3, 2016, 7:47 a.m. OK Python 3 TESTS 63 1870 19558400 1800
3256621 tobpro C March 5, 2013, 10:11 p.m. OK Ruby TESTS 63 406 6758400 1800
57186918 sorry_im_smurfing C July 17, 2019, 8:58 a.m. OK Ruby TESTS 63 592 39526400 1800
35842240 ______u______ C March 2, 2018, 2:49 p.m. OK Ruby TESTS 63 686 45875200 1800
35842208 ______n______ C March 2, 2018, 2:49 p.m. OK Ruby TESTS 63 686 45875200 1800
35841951 _____i_____ C March 2, 2018, 2:44 p.m. OK Ruby TESTS 63 686 45875200 1800
35841941 _____k_____ C March 2, 2018, 2:44 p.m. OK Ruby TESTS 63 686 45875200 1800
35836991 ______k______ C March 2, 2018, 1:04 p.m. OK Ruby TESTS 63 686 45875200 1800
35836990 ______h______ C March 2, 2018, 1:04 p.m. OK Ruby TESTS 63 686 45875200 1800
35836697 ______i______ C March 2, 2018, 12:59 p.m. OK Ruby TESTS 63 686 45875200 1800
35834495 ______M______ C March 2, 2018, 12:04 p.m. OK Ruby TESTS 63 686 45875200 1800

remove filters

Back to search problems