Educational Codeforces Round 21

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
808 Educational Codeforces Round 21 FINISHED False 9000 242664923 May 15, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6318 ) C Tea Party PROGRAMMING constructive algorithms greedy sortings 1500

B"Polycarp invited all his friends to the tea party to celebrate the holiday. He has n cups, one for each of his n friends, with volumes a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an. His teapot stores w milliliters of tea (w xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a1 xe2 x80 x89+ xe2 x80 x89a2 xe2 x80 x89+ xe2 x80 x89... xe2 x80 x89+ xe2 x80 x89an). Polycarp wants to pour tea in cups in such a way that: Friend with cup i won't be satisfied, if there exists such cup j that cup i contains less tea than cup j but ai xe2 x80 x89> xe2 x80 x89aj. For each cup output how many milliliters of tea should be poured in it. If it's impossible to pour all the tea and satisfy all conditions then output -1. The first line contains two integer numbers n and w (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100, ). The second line contains n numbers 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 x89100). Output how many milliliters of tea every cup should contain. If there are multiple answers, print any of them. If it's impossible to pour all the tea and satisfy all conditions then output -1. In the third example you should pour to the first cup at least 5 milliliters, to the second one at least 4, to the third one at least 5. It sums up to 14, which is greater than 10 milliliters available. "...

Tutorials

52010

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
52378492 vjudge3 C April 6, 2019, 9:09 a.m. OK Clang++17 Diagnostics TESTS 29 46 0 1500
27214186 FalseMirror C May 19, 2017, 12:26 p.m. OK D TESTS 29 15 0 1500
28760526 ruban C July 21, 2017, 5:08 p.m. OK Delphi TESTS 29 15 227020800 1500
27197584 Mark17301 C May 18, 2017, 1:29 p.m. OK FPC TESTS 29 15 0 1500
27672613 zZzABCzZz C June 8, 2017, 1:45 p.m. OK FPC TESTS 29 15 0 1500
27337722 vjudge3 C May 25, 2017, 1:32 p.m. OK FPC TESTS 29 15 0 1500
27163798 KagamiharaNadeshiko C May 16, 2017, 3:24 p.m. OK FPC TESTS 29 15 102400 1500
27163499 Fred_Flintstone C May 16, 2017, 3:08 p.m. OK FPC TESTS 29 15 102400 1500
28350970 Grom9941 C July 7, 2017, 2:10 p.m. OK FPC TESTS 29 15 1638400 1500
37786220 luping C May 1, 2018, 2:54 a.m. OK FPC TESTS 29 30 4300800 1500
56076520 LaSWeeG C June 26, 2019, 1:05 p.m. OK FPC TESTS 29 31 1638400 1500
27744270 Raduiiis C June 12, 2017, 7:53 p.m. OK GNU C TESTS 29 15 0 1500
27737411 allAAA C June 12, 2017, 12:04 p.m. OK GNU C TESTS 29 15 0 1500
27486693 RitchieD C June 1, 2017, 2:21 p.m. OK GNU C TESTS 29 15 0 1500
27353255 Moneesh C May 26, 2017, 10:05 a.m. OK GNU C TESTS 29 15 0 1500
27232084 somu1997 C May 20, 2017, 9:05 a.m. OK GNU C TESTS 29 15 0 1500
27226371 blurry C May 20, 2017, 1:47 a.m. OK GNU C TESTS 29 15 0 1500
27208174 TSS_99 C May 19, 2017, 5:35 a.m. OK GNU C TESTS 29 15 0 1500
27185400 null_p0inter C May 17, 2017, 6:39 p.m. OK GNU C TESTS 29 15 0 1500
32143227 Codeforce_123 C Nov. 8, 2017, 5:12 p.m. OK GNU C TESTS 29 15 0 1500
27777119 Koshlendra7 C June 14, 2017, 5:06 p.m. OK GNU C TESTS 29 15 0 1500
42453383 vjudge5 C Sept. 4, 2018, 9:40 a.m. OK GNU C++ TESTS 29 15 0 1500
42451738 vjudge4 C Sept. 4, 2018, 8:35 a.m. OK GNU C++ TESTS 29 15 0 1500
32573789 Scut82 C Nov. 23, 2017, 11:43 a.m. OK GNU C++ TESTS 29 15 0 1500
32521663 sbe197 C Nov. 21, 2017, 10:09 a.m. OK GNU C++ TESTS 29 15 0 1500
32309556 vjudge1 C Nov. 14, 2017, 11:25 a.m. OK GNU C++ TESTS 29 15 0 1500
31157904 riverwalk7 C Oct. 9, 2017, 2:44 a.m. OK GNU C++ TESTS 29 15 0 1500
31132203 vjudge3 C Oct. 8, 2017, 4:19 a.m. OK GNU C++ TESTS 29 15 0 1500
31118884 vjudge5 C Oct. 7, 2017, 2:42 p.m. OK GNU C++ TESTS 29 15 0 1500
31013133 vjudge1 C Oct. 5, 2017, 7:19 a.m. OK GNU C++ TESTS 29 15 0 1500
30243241 pb0207 C Sept. 10, 2017, 10:53 a.m. OK GNU C++ TESTS 29 15 0 1500
27199357 xiao-xiao C May 18, 2017, 3:07 p.m. OK GNU C11 TESTS 29 15 0 1500
27669045 SRAONE C June 8, 2017, 10:39 a.m. OK GNU C11 TESTS 29 15 0 1500
62451645 LanAnhTran C Oct. 13, 2019, 4:31 a.m. OK GNU C11 TESTS 29 31 0 1500
65516923 Balkrushna1 C Nov. 22, 2019, 6:29 a.m. OK GNU C11 TESTS 29 31 0 1500
62453051 LanAnhTran C Oct. 13, 2019, 5:14 a.m. OK GNU C11 TESTS 29 31 0 1500
32142427 lxk C Nov. 8, 2017, 3:43 p.m. OK GNU C++11 TESTS 29 15 0 1500
69492563 saiful_alam41 C Jan. 25, 2020, 12:06 a.m. OK GNU C++11 TESTS 29 15 0 1500
51955531 vjudge2 C March 29, 2019, 1:54 a.m. OK GNU C++11 TESTS 29 15 0 1500
32247973 ValgesMalges C Nov. 12, 2017, 3:59 p.m. OK GNU C++11 TESTS 29 15 0 1500
32216694 drrrzdk C Nov. 11, 2017, 10:34 a.m. OK GNU C++11 TESTS 29 15 0 1500
32042394 VinayakaB C Nov. 4, 2017, 4:48 a.m. OK GNU C++11 TESTS 29 15 0 1500
31976020 BENYAM1N C Nov. 2, 2017, 10:45 a.m. OK GNU C++11 TESTS 29 15 0 1500
31265730 vjudge1 C Oct. 13, 2017, 5:32 a.m. OK GNU C++11 TESTS 29 15 0 1500
31217745 Yasola C Oct. 11, 2017, 1:38 p.m. OK GNU C++11 TESTS 29 15 0 1500
31075925 cy11 C Oct. 6, 2017, 2:06 p.m. OK GNU C++11 TESTS 29 15 0 1500
47963712 dhruvik1999 C Jan. 5, 2019, 10:58 a.m. OK GNU C++14 TESTS 29 15 0 1500
47486036 _koreec C Dec. 25, 2018, 8:43 a.m. OK GNU C++14 TESTS 29 15 0 1500
52210186 springroll C April 1, 2019, 7:16 p.m. OK GNU C++14 TESTS 29 15 0 1500
46772211 Khela_Pari_Nah C Dec. 8, 2018, 5:37 p.m. OK GNU C++14 TESTS 29 15 0 1500
50999092 pvannvuILQD C March 8, 2019, 5:54 a.m. OK GNU C++14 TESTS 29 15 0 1500
52988116 blaze.kick C April 18, 2019, 7:56 p.m. OK GNU C++14 TESTS 29 15 0 1500
54411742 brianlee0415 C May 20, 2019, 10:12 a.m. OK GNU C++14 TESTS 29 15 0 1500
56376792 aman36 C July 1, 2019, 6:53 a.m. OK GNU C++14 TESTS 29 15 0 1500
61674142 Leonardo_su C Oct. 1, 2019, 7:47 p.m. OK GNU C++14 TESTS 29 15 0 1500
62335693 Ashay_Nayak C Oct. 11, 2019, 12:52 a.m. OK GNU C++14 TESTS 29 15 0 1500
55562202 Shridhar C June 14, 2019, 1:18 p.m. OK GNU C++17 TESTS 29 15 0 1500
69925730 demoralizer C Jan. 31, 2020, 8:16 p.m. OK GNU C++17 TESTS 29 15 0 1500
68073985 tatyam C Jan. 2, 2020, 11:42 a.m. OK GNU C++17 TESTS 29 15 0 1500
66779909 San007 C Dec. 13, 2019, 11:35 a.m. OK GNU C++17 TESTS 29 15 0 1500
62430029 hkyiitd C Oct. 12, 2019, 3:32 p.m. OK GNU C++17 TESTS 29 15 0 1500
61792738 deepak022 C Oct. 3, 2019, 4:20 p.m. OK GNU C++17 TESTS 29 15 0 1500
57316921 xwd456 C July 19, 2019, 8:33 a.m. OK GNU C++17 TESTS 29 15 0 1500
56513389 Sakhiya07 C July 4, 2019, 11:34 a.m. OK GNU C++17 TESTS 29 15 0 1500
54767240 ShadowX. C May 28, 2019, 5:43 p.m. OK GNU C++17 TESTS 29 15 0 1500
54750156 Kishan_16 C May 28, 2019, 12:28 p.m. OK GNU C++17 TESTS 29 15 0 1500
27182839 sl0th C May 17, 2017, 3:34 p.m. OK Haskell TESTS 29 15 0 1500
69097517 ankyy_0103 C Jan. 19, 2020, 12:39 p.m. OK Java 11 TESTS 29 171 0 1500
68107918 code_in_dream pubg_gbup C Jan. 3, 2020, 8:07 a.m. OK Java 8 TESTS 29 108 0 1500
60452574 jakejase2 C Sept. 12, 2019, 4:33 p.m. OK Java 8 TESTS 29 108 0 1500
27185240 egaeus C May 17, 2017, 6:25 p.m. OK Java 8 TESTS 29 108 0 1500
48311269 Harbin C Jan. 13, 2019, 2:07 a.m. OK Java 8 TESTS 29 109 0 1500
47508897 Tarun C Dec. 26, 2018, 4:44 a.m. OK Java 8 TESTS 29 109 0 1500
31855810 raviraj3990 ratn41 C Oct. 29, 2017, 4:43 a.m. OK Java 8 TESTS 29 109 0 1500
29548225 zodiacleo C Aug. 18, 2017, 9:17 a.m. OK Java 8 TESTS 29 109 0 1500
27564522 kingcode C June 4, 2017, 1:11 p.m. OK Java 8 TESTS 29 109 0 1500
27529640 harshvardhkumar C June 2, 2017, 6:14 p.m. OK Java 8 TESTS 29 109 0 1500
27475667 Hoda_Hisham C June 1, 2017, 12:22 a.m. OK Java 8 TESTS 29 109 0 1500
60516299 XinLoiNguoi C Sept. 14, 2019, 6:44 a.m. OK Kotlin TESTS 29 155 716800 1500
27370989 serejkee C May 27, 2017, 9:29 a.m. OK Kotlin TESTS 29 171 1126400 1500
27175308 TRR C May 17, 2017, 8:33 a.m. OK Mono C# TESTS 29 46 102400 1500
27236710 Sorryforpartyrocking C May 20, 2017, 3:21 p.m. OK Mono C# TESTS 29 46 102400 1500
27182681 og.kostya C May 17, 2017, 3:23 p.m. OK MS C# TESTS 29 46 102400 1500
27963806 Liran C June 22, 2017, 11:39 a.m. OK MS C# TESTS 29 46 9113600 1500
27177002 lionvs13 C May 17, 2017, 10:25 a.m. OK MS C# TESTS 29 62 2560000 1500
27419726 CroDoc C May 28, 2017, 8:54 p.m. OK MS C# TESTS 29 62 2560000 1500
27323947 flatline C May 24, 2017, 5:14 p.m. OK MS C# TESTS 29 62 3686400 1500
27228211 vjudge5 C May 20, 2017, 5:06 a.m. OK MS C++ TESTS 29 15 0 1500
27203999 MasterchiefCC C May 18, 2017, 8:02 p.m. OK MS C++ TESTS 29 15 0 1500
27177167 vjudge3 C May 17, 2017, 10:35 a.m. OK MS C++ TESTS 29 15 0 1500
27165272 KOH C May 16, 2017, 4:44 p.m. OK MS C++ TESTS 29 15 0 1500
27150191 vjudge2 C May 16, 2017, 4:56 a.m. OK MS C++ TESTS 29 15 0 1500
27274027 anatolyefimov C May 21, 2017, 9:33 p.m. OK MS C++ TESTS 29 15 0 1500
41139231 Stolf C Aug. 3, 2018, 1:16 a.m. OK MS C++ TESTS 29 15 0 1500
27512935 mouse_wireless C June 2, 2017, 1:21 a.m. OK MS C++ TESTS 29 15 102400 1500
29524659 mohamadshalodi C Aug. 17, 2017, 11:09 a.m. OK MS C++ TESTS 29 15 102400 1500
27599662 Leniwy C June 5, 2017, 7:39 p.m. OK MS C++ TESTS 29 15 102400 1500
69444707 vjudge2 C Jan. 24, 2020, 1:40 a.m. OK MS C++ 2017 TESTS 29 30 0 1500
57314697 vjudge5 C July 19, 2019, 7:49 a.m. OK MS C++ 2017 TESTS 29 31 0 1500
57314885 inysys11 C July 19, 2019, 7:52 a.m. OK MS C++ 2017 TESTS 29 31 0 1500
66258301 Mad112233 C Dec. 4, 2019, 7:12 a.m. OK MS C++ 2017 TESTS 29 31 0 1500
66258542 Mad112233 C Dec. 4, 2019, 7:19 a.m. OK MS C++ 2017 TESTS 29 31 307200 1500
62580420 edwinho15 C Oct. 14, 2019, 5:05 p.m. OK MS C++ 2017 TESTS 29 46 0 1500
62679479 marewolf C Oct. 16, 2019, 12:25 p.m. OK MS C++ 2017 TESTS 29 46 0 1500
27153288 mayakin C May 16, 2017, 7:53 a.m. OK PHP TESTS 29 31 0 1500
27321772 andreamaf C May 24, 2017, 2:32 p.m. OK PyPy 2 TESTS 29 62 0 1500
27222492 Yash_ C May 19, 2017, 8:34 p.m. OK PyPy 2 TESTS 29 77 0 1500
27153880 attiw C May 16, 2017, 8:15 a.m. OK PyPy 2 TESTS 29 77 204800 1500
27153528 attiw C May 16, 2017, 8:03 a.m. OK PyPy 2 TESTS 29 77 204800 1500
27306499 ManikantanV C May 23, 2017, 5:55 p.m. OK PyPy 2 TESTS 29 93 204800 1500
40653723 aeternalis1 C July 23, 2018, 1:57 a.m. OK PyPy 2 TESTS 29 124 0 1500
27209188 0w1 C May 19, 2017, 6:58 a.m. OK PyPy 3 TESTS 29 93 0 1500
68835750 sunnyorrainy C Jan. 15, 2020, 3:01 a.m. OK PyPy 3 TESTS 29 140 0 1500
65696049 shiv1470 C Nov. 25, 2019, 8:14 a.m. OK PyPy 3 TESTS 29 140 0 1500
58110793 Mixailkys C Aug. 1, 2019, 7:03 a.m. OK PyPy 3 TESTS 29 140 0 1500
57926783 Kadtsin_vs C July 29, 2019, 7:23 a.m. OK PyPy 3 TESTS 29 140 0 1500
57336537 BenL C July 19, 2019, 4:20 p.m. OK PyPy 3 TESTS 29 140 0 1500
43087730 nowyyz C Sept. 19, 2018, 5:05 p.m. OK PyPy 3 TESTS 29 140 0 1500
57930517 Doxapar C July 29, 2019, 8:34 a.m. OK PyPy 3 TESTS 29 140 1433600 1500
68073578 auouo C Jan. 2, 2020, 11:30 a.m. OK PyPy 3 TESTS 29 155 0 1500
67636901 cherish_lin C Dec. 26, 2019, 7:29 a.m. OK PyPy 3 TESTS 29 155 0 1500
27315932 Hepic_Antony_Skarlatos C May 24, 2017, 7:23 a.m. OK Python 2 TESTS 29 46 0 1500
27262409 Ostkaka C May 21, 2017, 8:15 a.m. OK Python 2 TESTS 29 46 0 1500
27218162 oferiz C May 19, 2017, 4:06 p.m. OK Python 2 TESTS 29 46 0 1500
27206999 12121005 C May 19, 2017, 3:18 a.m. OK Python 2 TESTS 29 46 0 1500
27176979 biltharesatyendra C May 17, 2017, 10:23 a.m. OK Python 2 TESTS 29 46 0 1500
28426844 AlexandraS C July 11, 2017, 1:04 p.m. OK Python 2 TESTS 29 46 4710400 1500
27303192 nealzane C May 23, 2017, 2:25 p.m. OK Python 2 TESTS 29 61 0 1500
27236333 Ostkaka C May 20, 2017, 2:20 p.m. OK Python 2 TESTS 29 61 0 1500
27220515 hugoduar C May 19, 2017, 6:45 p.m. OK Python 2 TESTS 29 61 0 1500
27163855 hugoduar C May 16, 2017, 3:26 p.m. OK Python 2 TESTS 29 61 0 1500
27232628 Viewsharp C May 20, 2017, 9:33 a.m. OK Python 3 TESTS 29 61 0 1500
27195937 Koi_ga_umareru C May 18, 2017, 12:09 p.m. OK Python 3 TESTS 29 61 0 1500
27185289 monvir C May 17, 2017, 6:29 p.m. OK Python 3 TESTS 29 61 204800 1500
27619461 divijdude C June 6, 2017, 5:57 p.m. OK Python 3 TESTS 29 61 307200 1500
31213460 yugle7 C Oct. 11, 2017, 10:32 a.m. OK Python 3 TESTS 29 62 0 1500
29512089 Zvirbulis C Aug. 16, 2017, 6:48 p.m. OK Python 3 TESTS 29 62 0 1500
27919430 madn C June 20, 2017, 7:30 a.m. OK Python 3 TESTS 29 62 0 1500
27707653 LHamster C June 10, 2017, 2:05 p.m. OK Python 3 TESTS 29 62 0 1500
27526994 AbcFly C June 2, 2017, 3:33 p.m. OK Python 3 TESTS 29 62 0 1500
27449912 Involution C May 30, 2017, 2:17 p.m. OK Python 3 TESTS 29 62 0 1500
27241443 sunchara C May 20, 2017, 6:22 p.m. OK Ruby TESTS 29 93 102400 1500
29173870 williamyaoh C Aug. 3, 2017, 5:36 p.m. OK Rust TESTS 29 15 1536000 1500

remove filters

Back to search problems