Good Bye 2013

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
379 Good Bye 2013 FINISHED False 7200 343405799 Dec. 30, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6566 ) C New Year Ratings Change PROGRAMMING greedy sortings 1500

B"One very well-known internet resource site (let's call it X) has come up with a New Year adventure. Specifically, they decided to give ratings to all visitors. There are n users on the site, for each user we know the rating value he wants to get as a New Year Present. We know that user i wants to get at least ai rating units as a present. The X site is administered by very creative and thrifty people. On the one hand, they want to give distinct ratings and on the other hand, the total sum of the ratings in the present must be as small as possible. Help site X cope with the challenging task of rating distribution. Find the optimal distribution. The first line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893 xc2 xb7105) -- the number of users on the site. The next line contains integer sequence a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Print a sequence of integers b1, xe2 x80 x89b2, xe2 x80 x89..., xe2 x80 x89bn. Number bi means that user i gets bi of rating as a present. The printed sequence must meet the problem conditions. If there are multiple optimal solutions, print any of them."...

Tutorials

Tutorial Good Bye 2013

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
69083424 vjudge5 C Jan. 19, 2020, 7:21 a.m. OK Clang++17 Diagnostics TESTS 41 577 7475200 1500
11690970 VAVAvile C June 21, 2015, 3:38 a.m. OK FPC TESTS 41 561 3584000 1500
12327281 Djok216 C Aug. 3, 2015, 2:57 p.m. OK FPC TESTS 41 576 5017600 1500
14196965 Kudai C Nov. 11, 2015, 1:39 p.m. OK FPC TESTS 41 607 12185600 1500
36196304 Ares C March 11, 2018, 10:55 a.m. OK FPC TESTS 41 623 5324800 1500
20207474 Gray_58 C Aug. 28, 2016, 8:20 a.m. OK FPC TESTS 41 623 5939200 1500
39652456 deidzen C June 25, 2018, 2:34 p.m. OK FPC TESTS 41 639 3584000 1500
11143882 haanhpham C May 19, 2015, 12:38 p.m. OK FPC TESTS 41 639 4812800 1500
10419990 TuanK C March 24, 2015, 7:27 a.m. OK FPC TESTS 41 654 3584000 1500
27934713 vjudge2 C June 21, 2017, 1:10 a.m. OK FPC TESTS 41 654 5222400 1500
14498459 nothing1 C Nov. 26, 2015, 7:04 p.m. OK FPC TESTS 41 655 32153600 1500
11204163 satyam.pandey C May 22, 2015, 3:29 p.m. OK GNU C TESTS 41 186 3584000 1500
31129064 ATEAM_ C Oct. 7, 2017, 10:10 p.m. OK GNU C TESTS 41 187 4812800 1500
23578676 somu1997 C Jan. 6, 2017, 8:19 a.m. OK GNU C TESTS 41 187 6656000 1500
16530194 yigezhe C March 5, 2016, 9:10 a.m. OK GNU C TESTS 41 202 3584000 1500
10496776 ving.xia C March 28, 2015, 6:19 a.m. OK GNU C TESTS 41 202 3584000 1500
23312122 Junkesh C Dec. 25, 2016, 2:45 p.m. OK GNU C TESTS 41 202 4300800 1500
26968575 code-knight C May 9, 2017, 6:40 a.m. OK GNU C TESTS 41 202 4812800 1500
11197353 imamit C May 22, 2015, 4:30 a.m. OK GNU C TESTS 41 202 6041600 1500
18151363 oyouoo C May 29, 2016, 9:24 p.m. OK GNU C TESTS 41 217 4403200 1500
10287133 ismvarunsharma C March 15, 2015, 11:33 a.m. OK GNU C TESTS 41 218 2355200 1500
35167957 vjudge3 C Feb. 12, 2018, 3:59 a.m. OK GNU C++ TESTS 41 109 5632000 1500
35140770 vjudge2 C Feb. 11, 2018, 1:59 a.m. OK GNU C++ TESTS 41 109 5632000 1500
18638635 Lightning34 C June 22, 2016, 1:02 a.m. OK GNU C++ TESTS 41 124 3584000 1500
32420428 wat__ C Nov. 18, 2017, 4:47 a.m. OK GNU C++ TESTS 41 156 3379200 1500
32419968 newbie950 C Nov. 18, 2017, 4:18 a.m. OK GNU C++ TESTS 41 156 3379200 1500
32419963 Senadu34 C Nov. 18, 2017, 4:18 a.m. OK GNU C++ TESTS 41 156 3379200 1500
32419832 luckys65 C Nov. 18, 2017, 4:10 a.m. OK GNU C++ TESTS 41 156 3379200 1500
32419706 dennisdaslim C Nov. 18, 2017, 3:59 a.m. OK GNU C++ TESTS 41 156 3379200 1500
11519799 vjudge3 C June 10, 2015, 10:26 a.m. OK GNU C++ TESTS 41 156 3584000 1500
19371457 Zero-Hour2 C July 23, 2016, 7:43 p.m. OK GNU C++ TESTS 41 156 5222400 1500
10292419 bbugaev Androik C March 15, 2015, 5:27 p.m. OK GNU C++0x TESTS 41 436 18124800 1500
52309734 vjudge4 C April 4, 2019, 2:03 p.m. OK GNU C++11 TESTS 41 62 3584000 1500
18865259 I_See_You C July 3, 2016, 9:12 a.m. OK GNU C++11 TESTS 41 77 3584000 1500
40989208 ReaLNero1 C July 30, 2018, 10:43 p.m. OK GNU C++11 TESTS 41 78 3584000 1500
42278729 luogu_bot5 C Aug. 30, 2018, 1:06 p.m. OK GNU C++11 TESTS 41 124 6246400 1500
42278573 luogu_bot3 C Aug. 30, 2018, 1:01 p.m. OK GNU C++11 TESTS 41 124 8294400 1500
18609050 UoA_ZQC C June 20, 2016, 5:24 a.m. OK GNU C++11 TESTS 41 140 9420800 1500
51264414 vjudge3 C March 13, 2019, 2:50 p.m. OK GNU C++11 TESTS 41 155 3584000 1500
49927945 Amorphophallus C Feb. 15, 2019, 1:25 a.m. OK GNU C++11 TESTS 41 155 3584000 1500
48378679 hrynb C Jan. 14, 2019, 9:11 a.m. OK GNU C++11 TESTS 41 155 3584000 1500
44681819 Diadem C Oct. 22, 2018, 6:57 a.m. OK GNU C++11 TESTS 41 156 2457600 1500
28934557 LiChenKoh C July 27, 2017, 4:39 p.m. OK GNU C++14 TESTS 41 124 5529600 1500
52723878 daleisra C April 13, 2019, 9:53 p.m. OK GNU C++14 TESTS 41 155 3584000 1500
47378193 anishmahto C Dec. 22, 2018, 6:51 p.m. OK GNU C++14 TESTS 41 155 3584000 1500
29634994 hugoduar C Aug. 21, 2017, 4:55 a.m. OK GNU C++14 TESTS 41 155 3584000 1500
27528432 quotitquot C June 2, 2017, 4:49 p.m. OK GNU C++14 TESTS 41 155 3584000 1500
34438712 Mr_Emrul C Jan. 22, 2018, 8:34 a.m. OK GNU C++14 TESTS 41 155 5529600 1500
33746984 4yush933 C Dec. 28, 2017, 10:44 p.m. OK GNU C++14 TESTS 41 155 5529600 1500
25953977 Webwei C March 30, 2017, 1:33 p.m. OK GNU C++14 TESTS 41 155 5529600 1500
23525269 SendThemToHell C Jan. 3, 2017, 10:27 p.m. OK GNU C++14 TESTS 41 155 5529600 1500
34081510 R1verNate C Jan. 11, 2018, 5:25 a.m. OK GNU C++14 TESTS 41 155 5632000 1500
49936924 tiandong123 C Feb. 15, 2019, 7:43 a.m. OK GNU C++17 TESTS 41 155 3584000 1500
49927531 vjudge2 C Feb. 15, 2019, 12:52 a.m. OK GNU C++17 TESTS 41 155 3584000 1500
68452921 Recursiv7AG C Jan. 9, 2020, 3 p.m. OK GNU C++17 TESTS 41 156 3584000 1500
65680241 HunterZolomon C Nov. 24, 2019, 7:40 p.m. OK GNU C++17 TESTS 41 156 3584000 1500
51426761 kra2re C March 17, 2019, 7:44 p.m. OK GNU C++17 TESTS 41 156 3584000 1500
44688193 OMRailgun RUSH_D_CAT C Oct. 22, 2018, 10:46 a.m. OK GNU C++17 TESTS 41 156 3584000 1500
44390685 Jaihk662 C Oct. 16, 2018, 8:25 a.m. OK GNU C++17 TESTS 41 156 3891200 1500
50407549 Stroustrup C Feb. 23, 2019, 10:11 p.m. OK GNU C++17 TESTS 41 170 3584000 1500
52452457 AlmoezAli C April 7, 2019, 10:21 a.m. OK GNU C++17 TESTS 41 170 4812800 1500
64279306 tfg C Nov. 5, 2019, 12:23 a.m. OK GNU C++17 TESTS 41 171 2457600 1500
29194734 lcvinny C Aug. 4, 2017, 1:14 p.m. OK Go TESTS 41 327 51609600 1500
16371238 Eeyore C Feb. 26, 2016, 9:59 p.m. OK Go TESTS 41 342 23040000 1500
13116244 Martynas C Sept. 20, 2015, 3:29 p.m. OK Go TESTS 41 373 6656000 1500
29237646 lcvinny C Aug. 6, 2017, 9:31 a.m. OK Go TESTS 41 529 59392000 1500
20610693 pavel.rosputko C Sept. 14, 2016, 9:46 a.m. OK Haskell TESTS 41 748 46387200 1500
64899862 pizzaEater C Nov. 14, 2019, 6:22 p.m. OK Java 11 TESTS 41 561 20070400 1500
10815063 Pussy_penetrator C April 21, 2015, 7:15 p.m. OK Java 7 TESTS 41 280 60211200 1500
11089601 Sumeet.Varma C May 13, 2015, 2:10 p.m. OK Java 7 TESTS 41 327 12185600 1500
13063277 yushixh C Sept. 17, 2015, 8:36 a.m. OK Java 7 TESTS 41 374 14131200 1500
11496392 raghusatti C June 8, 2015, 10:26 a.m. OK Java 7 TESTS 41 374 22323200 1500
12877119 johnmclane C Sept. 6, 2015, 8:20 p.m. OK Java 7 TESTS 41 389 0 1500
12336703 Trasier C Aug. 4, 2015, 9:54 a.m. OK Java 7 TESTS 41 420 15052800 1500
10815155 Pussy_penetrator C April 21, 2015, 7:21 p.m. OK Java 7 TESTS 41 421 62976000 1500
16439611 MazzForces C March 1, 2016, 11:12 a.m. OK Java 7 TESTS 41 451 15667200 1500
11496434 raghusatti C June 8, 2015, 10:28 a.m. OK Java 7 TESTS 41 452 22323200 1500
14341537 DukeOfYork C Nov. 19, 2015, 12:24 p.m. OK Java 7 TESTS 41 467 0 1500
37094399 amolpratap007 C April 8, 2018, 10:38 a.m. OK Java 8 TESTS 41 296 24576000 1500
48573348 Tynk666 C Jan. 19, 2019, 12:58 p.m. OK Java 8 TESTS 41 311 22528000 1500
55589998 danny2019 C June 15, 2019, 11:47 a.m. OK Java 8 TESTS 41 312 10240000 1500
34207923 wrong_lemma C Jan. 15, 2018, 8:49 p.m. OK Java 8 TESTS 41 327 26419200 1500
64797586 maheshwari29 C Nov. 13, 2019, 1:26 p.m. OK Java 8 TESTS 41 342 14643200 1500
25462900 Hoda_Hisham C March 13, 2017, 10:05 p.m. OK Java 8 TESTS 41 342 41472000 1500
12682966 TWO_POINTER C Aug. 24, 2015, 10:50 a.m. OK Java 8 TESTS 41 358 12185600 1500
11204231 Nirmit C May 22, 2015, 3:34 p.m. OK Java 8 TESTS 41 358 15462400 1500
37471584 S010M C April 19, 2018, 7:29 p.m. OK Java 8 TESTS 41 358 21401600 1500
40740585 wanderer163 C July 25, 2018, 12:06 p.m. OK Java 8 TESTS 41 374 14028800 1500
48704743 FaVl C Jan. 22, 2019, 5:20 a.m. OK JavaScript TESTS 41 561 71168000 1500
31428826 AD12 C Oct. 16, 2017, 6:11 p.m. OK Kotlin TESTS 41 467 36147200 1500
51295027 nemars C March 14, 2019, 12:08 p.m. OK Mono C# TESTS 41 327 46592000 1500
68396092 mban259 C Jan. 8, 2020, 11:07 a.m. OK Mono C# TESTS 41 421 46387200 1500
12799669 og.kostya C Sept. 1, 2015, 9:33 a.m. OK MS C# TESTS 41 171 5632000 1500
10963841 azukun C May 1, 2015, 12:23 p.m. OK MS C# TESTS 41 249 55603200 1500
11021970 sicon54 C May 7, 2015, 3:06 p.m. OK MS C# TESTS 41 264 47104000 1500
20436169 Chubcheg C Sept. 7, 2016, 12:57 p.m. OK MS C# TESTS 41 467 46796800 1500
18701070 minh_ltt C June 24, 2016, 12:57 p.m. OK MS C# TESTS 41 498 52531200 1500
21864944 pomjuice C Oct. 29, 2016, 6:29 a.m. OK MS C# TESTS 41 607 46284800 1500
17392235 Arcey C April 19, 2016, 8:41 p.m. OK MS C# TESTS 41 935 51097600 1500
30020805 ShowStopper728 C Sept. 2, 2017, 9:18 p.m. OK MS C# TESTS 41 966 49868800 1500
69041130 vjudge2 C Jan. 18, 2020, 10:05 a.m. OK MS C++ TESTS 41 156 3584000 1500
10809648 sergey45 C April 21, 2015, 12:08 p.m. OK MS C++ TESTS 41 156 6041600 1500
11564960 Lingsong C June 13, 2015, 8:12 a.m. OK MS C++ TESTS 41 171 3584000 1500
12863571 Yunir C Sept. 6, 2015, 8:48 a.m. OK MS C++ TESTS 41 171 3584000 1500
11095925 polequoll C May 14, 2015, 7:41 a.m. OK MS C++ TESTS 41 171 4812800 1500
10646967 kadNaN C April 10, 2015, 9:58 a.m. OK MS C++ TESTS 41 187 3584000 1500
15143456 HappyNewYearMike C Dec. 31, 2015, 11:19 p.m. OK MS C++ TESTS 41 187 4812800 1500
15824721 vjudge2 C Feb. 5, 2016, 12:25 p.m. OK MS C++ TESTS 41 202 3584000 1500
10562973 MrKaStep C April 3, 2015, 5:56 p.m. OK MS C++ TESTS 41 202 5939200 1500
29732331 scorpiowf C Aug. 24, 2017, 1:33 p.m. OK MS C++ TESTS 41 218 2764800 1500
54550959 shoulinniao C May 24, 2019, 9:04 a.m. OK MS C++ 2017 TESTS 41 358 15667200 1500
54717763 Dragostan C May 27, 2019, 2:24 p.m. OK MS C++ 2017 TESTS 41 514 6041600 1500
64886246 yuanyuan2048 C Nov. 14, 2019, 1:12 p.m. OK MS C++ 2017 TESTS 41 546 2457600 1500
68983204 vjudge2 C Jan. 17, 2020, 11:32 a.m. OK MS C++ 2017 TESTS 41 577 2662400 1500
45475626 mayakin C Nov. 9, 2018, 12:19 p.m. OK PHP TESTS 41 904 60518400 1500
49969118 kipply C Feb. 15, 2019, 11:47 p.m. OK PyPy 2 TESTS 41 638 31948800 1500
11093375 Dremov C May 13, 2015, 10:21 p.m. OK PyPy 2 TESTS 41 702 32665600 1500
49769879 ashok123 C Feb. 11, 2019, 1:14 p.m. OK PyPy 2 TESTS 41 811 46592000 1500
63946879 shall_not_pass C Oct. 31, 2019, 7:19 p.m. OK PyPy 3 TESTS 41 873 46284800 1500
61525749 irza_law C Sept. 29, 2019, 10:10 p.m. OK PyPy 3 TESTS 41 998 38809600 1500
35170764 laoliumang C Feb. 12, 2018, 6:53 a.m. OK Python 2 TESTS 41 779 32870400 1500
18024121 slitvinov C May 21, 2016, 9:21 p.m. OK Python 2 TESTS 41 889 46284800 1500
22394002 BleedingEdge C Nov. 22, 2016, 12:25 a.m. OK Python 2 TESTS 41 935 31436800 1500
16509916 karan_lal2015 C March 4, 2016, 6:54 a.m. OK Python 2 TESTS 41 982 41574400 1500
49611743 HYPERHYPERHYPERCUBELOVER C Feb. 8, 2019, 1:46 a.m. OK Python 3 TESTS 41 639 27955200 1500
68158397 Annvv C Jan. 4, 2020, 9:51 a.m. OK Python 3 TESTS 41 639 28467200 1500
47028625 Silky_Littleraisin C Dec. 15, 2018, 8:28 a.m. OK Python 3 TESTS 41 639 36249600 1500
46718616 HaaaToka C Dec. 7, 2018, 12:24 p.m. OK Python 3 TESTS 41 670 41574400 1500
31154740 comets C Oct. 8, 2017, 9:09 p.m. OK Python 3 TESTS 41 670 42700800 1500
68155567 Annvv C Jan. 4, 2020, 8:49 a.m. OK Python 3 TESTS 41 701 31232000 1500
48180127 toysheeyeyraku C Jan. 10, 2019, 12:02 p.m. OK Python 3 TESTS 41 701 33894400 1500
29128258 nntien05 C Aug. 2, 2017, 11:30 a.m. OK Python 3 TESTS 41 701 39014400 1500
31534472 nonis C Oct. 20, 2017, 1:24 p.m. OK Python 3 TESTS 41 701 43212800 1500
68157937 Annvv C Jan. 4, 2020, 9:39 a.m. OK Python 3 TESTS 41 702 30822400 1500
35863012 ______u______ C March 2, 2018, 10:37 p.m. OK Ruby TESTS 41 935 67993600 1500
35862808 ______n______ C March 2, 2018, 10:32 p.m. OK Ruby TESTS 41 935 67993600 1500
35862368 _____i_____ C March 2, 2018, 10:23 p.m. OK Ruby TESTS 41 935 67993600 1500
35862294 _____k_____ C March 2, 2018, 10:22 p.m. OK Ruby TESTS 41 935 67993600 1500
35859287 ______h______ C March 2, 2018, 9:17 p.m. OK Ruby TESTS 41 935 67993600 1500
35859069 ______k______ C March 2, 2018, 9:12 p.m. OK Ruby TESTS 41 935 67993600 1500
35858738 ______i______ C March 2, 2018, 9:05 p.m. OK Ruby TESTS 41 935 67993600 1500
35856758 ______M______ C March 2, 2018, 8:27 p.m. OK Ruby TESTS 41 935 67993600 1500
13761577 reldan C Oct. 20, 2015, 7:40 p.m. OK Scala TESTS 41 764 52121600 1500
19875056 pvasilyev C Aug. 14, 2016, 7:38 p.m. OK Scala TESTS 41 967 85094400 1500

remove filters

Back to search problems