Codeforces Round 261 (Div. 2)

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
459 Codeforces Round 261 (Div. 2) FINISHED False 7200 329409023 Aug. 15, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 41458 ) B Pashmak and Flowers PROGRAMMING combinatorics implementation sortings 1300

B"Pashmak decided to give Parmida a pair of flowers from the garden. There are n flowers in the garden and the i-th of them has a beauty number bi. Parmida is a very strange girl so she doesn't want to have the two most beautiful flowers necessarily. She wants to have those pairs of flowers that their beauty difference is maximal possible! Your task is to write a program which calculates two things: The first line of the input contains n (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7105). In the next line there are n space-separated integers b1, b2, ..., bn (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). The only line of output should contain two integers. The maximum beauty difference and the number of ways this may happen, respectively. In the third sample the maximum beauty difference is 2 and there are 4 ways to do this:"...

Tutorials

Codeforces Round #261 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
69644886 Ghozlan B Jan. 28, 2020, 12:04 a.m. OK Clang++17 Diagnostics TESTS 58 108 0 1300
69644930 Ghozlan B Jan. 28, 2020, 12:07 a.m. OK Clang++17 Diagnostics TESTS 58 109 0 1300
55904581 vjudge5 B June 21, 2019, 7:37 p.m. OK Clang++17 Diagnostics TESTS 58 234 14131200 1300
55904552 vjudge3 B June 21, 2019, 7:34 p.m. OK Clang++17 Diagnostics TESTS 58 249 78233600 1300
43431631 DevilInChina B Sept. 26, 2018, 1:52 a.m. OK Clang++17 Diagnostics TESTS 58 280 204800 1300
50878546 chinahhy B March 6, 2019, 7:52 a.m. OK FPC TESTS 58 62 819200 1300
36385621 Nightmar B March 18, 2018, 10:53 a.m. OK FPC TESTS 58 62 3072000 1300
37649492 luping B April 27, 2018, 2:01 a.m. OK FPC TESTS 58 62 3891200 1300
45378023 luogu_bot1 B Nov. 6, 2018, 1:19 p.m. OK FPC TESTS 58 62 4096000 1300
34976524 Sunblast B Feb. 6, 2018, 4:18 p.m. OK FPC TESTS 58 62 6041600 1300
50886136 chenjintian1 B March 6, 2019, 11:23 a.m. OK FPC TESTS 58 77 0 1300
50878528 chenjintian1 B March 6, 2019, 7:51 a.m. OK FPC TESTS 58 77 0 1300
66410800 kien05012006 B Dec. 6, 2019, 3:16 p.m. OK FPC TESTS 58 77 819200 1300
44887872 luogu_bot2 B Oct. 26, 2018, 12:15 a.m. OK FPC TESTS 58 77 1638400 1300
37649497 luping B April 27, 2018, 2:01 a.m. OK FPC TESTS 58 77 3072000 1300
35879665 kamrulsourav B March 3, 2018, 11:11 a.m. OK GNU C TESTS 58 61 2764800 1300
38640078 Dark_Eyes B May 26, 2018, 4:49 p.m. OK GNU C TESTS 58 62 0 1300
38564531 SAJEEB_CHAKRABORTY B May 23, 2018, 2:08 p.m. OK GNU C TESTS 58 62 819200 1300
38563619 preetikkb B May 23, 2018, 1:41 p.m. OK GNU C TESTS 58 62 819200 1300
39252998 Arnab_the_mallu_coder B June 14, 2018, 8:26 p.m. OK GNU C TESTS 58 62 1638400 1300
38552547 Open_ID B May 23, 2018, 6:06 a.m. OK GNU C TESTS 58 62 1638400 1300
35724877 QAQ2 B Feb. 26, 2018, 8:32 a.m. OK GNU C TESTS 58 62 2048000 1300
35722687 MYNAMEISSHARIFUL B Feb. 26, 2018, 7:09 a.m. OK GNU C TESTS 58 62 2764800 1300
38750579 devilshuvo B May 29, 2018, 6:17 p.m. OK GNU C TESTS 58 62 3276800 1300
34932004 ___monta B Feb. 4, 2018, 10:49 p.m. OK GNU C TESTS 58 62 3481600 1300
39350427 Changyu B June 18, 2018, 8:06 a.m. OK GNU C++ TESTS 58 31 0 1300
42338082 luogu_bot5 B Sept. 1, 2018, 3:19 p.m. OK GNU C++ TESTS 58 31 0 1300
37626706 vjudge3 B April 26, 2018, 7:10 a.m. OK GNU C++ TESTS 58 31 3481600 1300
37626671 vjudge2 B April 26, 2018, 7:08 a.m. OK GNU C++ TESTS 58 31 3481600 1300
40988116 ReaLNero1 B July 30, 2018, 9:45 p.m. OK GNU C++ TESTS 58 46 0 1300
35386966 aboAdnan B Feb. 17, 2018, 9:10 a.m. OK GNU C++ TESTS 58 46 2252800 1300
37728731 vjudge4 B April 29, 2018, 4:01 p.m. OK GNU C++ TESTS 58 46 5120000 1300
37728724 vjudge1 B April 29, 2018, 4 p.m. OK GNU C++ TESTS 58 46 5120000 1300
37626575 vjudge1 B April 26, 2018, 7:03 a.m. OK GNU C++ TESTS 58 46 5120000 1300
36648180 vjudge2 B March 26, 2018, 4:20 p.m. OK GNU C++ TESTS 58 61 4608000 1300
44743337 vjudge2 B Oct. 23, 2018, 3:41 p.m. OK GNU C11 TESTS 58 46 0 1300
45274284 Nevidimka B Nov. 4, 2018, 10:11 a.m. OK GNU C11 TESTS 58 46 0 1300
64437246 akshithaadepu B Nov. 7, 2019, 2:10 a.m. OK GNU C11 TESTS 58 61 0 1300
66263197 lishb B Dec. 4, 2019, 9:17 a.m. OK GNU C11 TESTS 58 61 0 1300
44748579 Parag_AP B Oct. 23, 2018, 6:17 p.m. OK GNU C11 TESTS 58 61 0 1300
39214110 codejacker B June 13, 2018, 11:09 a.m. OK GNU C11 TESTS 58 61 819200 1300
47079284 masterjat B Dec. 15, 2018, 6:39 p.m. OK GNU C11 TESTS 58 61 1638400 1300
49327779 Liakot_Ali B Feb. 1, 2019, 2:49 p.m. OK GNU C11 TESTS 58 61 1638400 1300
62888099 omniphantom B Oct. 18, 2019, 7:12 p.m. OK GNU C11 TESTS 58 61 1638400 1300
68301974 gigatom B Jan. 6, 2020, 7:07 a.m. OK GNU C11 TESTS 58 62 0 1300
44837627 bojverdict2 B Oct. 25, 2018, 11:35 a.m. OK GNU C++11 TESTS 58 31 819200 1300
44875302 HolyRomanEmpire B Oct. 25, 2018, 4:55 p.m. OK GNU C++11 TESTS 58 31 819200 1300
48604632 luogu_bot4 B Jan. 20, 2019, 10:09 a.m. OK GNU C++11 TESTS 58 31 1638400 1300
44836375 bojverdict2 B Oct. 25, 2018, 11:05 a.m. OK GNU C++11 TESTS 58 46 0 1300
50630607 jiangly B March 1, 2019, 8:56 a.m. OK GNU C++11 TESTS 58 46 0 1300
48716510 luogu_bot1 B Jan. 22, 2019, 11:33 a.m. OK GNU C++11 TESTS 58 46 819200 1300
51446947 malinyi1 B March 18, 2019, 12:56 p.m. OK GNU C++11 TESTS 58 46 819200 1300
59067853 luogu_bot2 B Aug. 19, 2019, 2:52 a.m. OK GNU C++11 TESTS 58 46 819200 1300
56483210 Yllmc B July 3, 2019, 5:07 p.m. OK GNU C++11 TESTS 58 46 1638400 1300
65702629 rns2452 B Nov. 25, 2019, 11:22 a.m. OK GNU C++11 TESTS 58 61 0 1300
67635758 winli18ti B Dec. 26, 2019, 6:52 a.m. OK GNU C++14 TESTS 58 62 819200 1300
60739872 mancunian_51 B Sept. 17, 2019, 7:23 p.m. OK GNU C++14 TESTS 58 62 819200 1300
53667171 strawberrry B May 2, 2019, 11:10 a.m. OK GNU C++14 TESTS 58 62 819200 1300
50392390 32.64.128 B Feb. 23, 2019, 2:25 p.m. OK GNU C++14 TESTS 58 62 819200 1300
48439884 Theofratus B Jan. 16, 2019, 1:56 a.m. OK GNU C++14 TESTS 58 62 819200 1300
39954722 Jaihk662 B July 4, 2018, 12:19 p.m. OK GNU C++14 TESTS 58 62 819200 1300
46678997 wxyzabcd0123hjklmno B Dec. 6, 2018, 11:14 a.m. OK GNU C++14 TESTS 58 62 819200 1300
39675066 ruhan_98 B June 26, 2018, 12:16 p.m. OK GNU C++14 TESTS 58 62 1536000 1300
59705978 SharifHossen B Aug. 30, 2019, 12:40 p.m. OK GNU C++14 TESTS 58 62 1536000 1300
60709604 myNick B Sept. 17, 2019, 7:29 a.m. OK GNU C++14 TESTS 58 62 1536000 1300
56994131 khaled001 B July 13, 2019, 8:27 p.m. OK GNU C++17 TESTS 58 61 819200 1300
52158227 Acelin B April 1, 2019, 2:10 p.m. OK GNU C++17 TESTS 58 62 0 1300
63102955 gp409 B Oct. 22, 2019, 2:22 a.m. OK GNU C++17 TESTS 58 62 0 1300
59834472 JayJudge B Sept. 1, 2019, 2:47 a.m. OK GNU C++17 TESTS 58 62 0 1300
54623041 ZeroScar B May 25, 2019, 1:12 p.m. OK GNU C++17 TESTS 58 62 819200 1300
48661206 Sadnan_G3_015 B Jan. 21, 2019, 6:06 a.m. OK GNU C++17 TESTS 58 62 1536000 1300
50821065 vjudge3 B March 5, 2019, 1:33 p.m. OK GNU C++17 TESTS 58 62 1638400 1300
44982002 DaRealCoderzzz B Oct. 28, 2018, 9:08 a.m. OK GNU C++17 TESTS 58 62 3174400 1300
59127886 vjudge2 B Aug. 20, 2019, 9:52 a.m. OK GNU C++17 TESTS 58 62 7987200 1300
66095164 MatveyR B Dec. 1, 2019, 7:51 a.m. OK GNU C++17 TESTS 58 77 0 1300
53829455 lehonghai104 B May 6, 2019, 6:44 p.m. OK Go TESTS 58 77 5324800 1300
39463162 skyday119 B June 21, 2018, 1:16 p.m. OK Go TESTS 58 234 5427200 1300
39462878 lbbde B June 21, 2018, 1:04 p.m. OK Go TESTS 58 264 4915200 1300
42335585 ramesh.public B Sept. 1, 2018, 1:41 p.m. OK Haskell TESTS 58 78 15974400 1300
45254680 lightyagami1 B Nov. 3, 2018, 6:51 p.m. OK Haskell TESTS 58 732 60108800 1300
69519635 vinnay B Jan. 25, 2020, 1:03 p.m. OK Java 11 TESTS 58 482 0 1300
65425845 b.abualrub B Nov. 20, 2019, 10:40 a.m. OK Java 11 TESTS 58 482 0 1300
69159542 arran B Jan. 19, 2020, 9:54 p.m. OK Java 11 TESTS 58 483 0 1300
69707650 jrjahed100 B Jan. 29, 2020, 5:31 a.m. OK Java 11 TESTS 58 499 0 1300
53816196 noobspotted B May 6, 2019, 10:36 a.m. OK Java 8 TESTS 58 109 0 1300
50417586 saurabhs1206 B Feb. 24, 2019, 7:25 a.m. OK Java 8 TESTS 58 109 0 1300
66281417 maoritosun B Dec. 4, 2019, 5:24 p.m. OK Java 8 TESTS 58 124 0 1300
47668184 abhigyankole B Dec. 29, 2018, 3:17 a.m. OK Java 8 TESTS 58 124 0 1300
58038566 T_Nady B July 30, 2019, 6:43 p.m. OK Java 8 TESTS 58 139 0 1300
51024814 tsumit023 B March 8, 2019, 11:25 a.m. OK Java 8 TESTS 58 140 0 1300
45377650 ViciousCoder B Nov. 6, 2018, 1:09 p.m. OK Java 8 TESTS 58 140 0 1300
37531033 the_errorist B April 22, 2018, 10:44 a.m. OK Java 8 TESTS 58 140 20684800 1300
35571845 soontobesenpai B Feb. 22, 2018, 11:44 a.m. OK Java 8 TESTS 58 140 20684800 1300
53192906 jenish9599 B April 23, 2019, 1:44 p.m. OK Java 8 TESTS 58 155 0 1300
39598219 0442A403 B June 24, 2018, 10:11 a.m. OK Kotlin TESTS 58 186 10342400 1300
45918404 magdi B Nov. 18, 2018, 3:06 p.m. OK Kotlin TESTS 58 373 18739200 1300
40032563 HeshamM B July 6, 2018, 2:11 p.m. OK Mono C# TESTS 58 109 24780800 1300
40468513 MemoryFrozen B July 17, 2018, 7:57 a.m. OK Mono C# TESTS 58 109 24780800 1300
45667979 Skndr801 B Nov. 13, 2018, 8:49 a.m. OK Mono C# TESTS 58 109 26521600 1300
41135910 KacaMG00 B Aug. 2, 2018, 8:51 p.m. OK Mono C# TESTS 58 124 25600000 1300
51991466 ansergeyg B March 29, 2019, 8:26 p.m. OK Mono C# TESTS 58 124 25600000 1300
44243934 Janonsky B Oct. 13, 2018, 7:55 a.m. OK Mono C# TESTS 58 124 26316800 1300
44209245 kiraman12 B Oct. 12, 2018, 3:55 p.m. OK Mono C# TESTS 58 124 26419200 1300
52241905 LiLiNGwp B April 2, 2019, 4:17 p.m. OK Mono C# TESTS 58 124 27648000 1300
58904661 amit1509kumar B Aug. 16, 2019, 10:34 a.m. OK Mono C# TESTS 58 124 29184000 1300
39964955 Shadowraze B July 4, 2018, 7:02 p.m. OK Mono C# TESTS 58 140 25600000 1300
34268249 McBiba B Jan. 18, 2018, 6:26 a.m. OK MS C# TESTS 58 124 37273600 1300
35427606 smasemo B Feb. 17, 2018, 6:13 p.m. OK MS C# TESTS 58 140 38502400 1300
59131148 vjudge2 B Aug. 20, 2019, 11:02 a.m. OK MS C++ TESTS 58 62 0 1300
60658034 vjudge2 B Sept. 16, 2019, 2:02 a.m. OK MS C++ TESTS 58 62 0 1300
44744512 vjudge3 B Oct. 23, 2018, 4:12 p.m. OK MS C++ TESTS 58 62 0 1300
40689507 vjudge3 B July 24, 2018, 5:01 a.m. OK MS C++ TESTS 58 62 1638400 1300
36190378 ardor-chang B March 11, 2018, 7:28 a.m. OK MS C++ TESTS 58 62 2867200 1300
34953206 karsukova20112086 B Feb. 5, 2018, 7:07 p.m. OK MS C++ TESTS 58 62 2867200 1300
45955721 vjudge4 B Nov. 19, 2018, 9:09 a.m. OK MS C++ TESTS 58 77 819200 1300
48410160 anlen B Jan. 15, 2019, 7:12 a.m. OK MS C++ TESTS 58 78 819200 1300
59806911 vjudge3 B Aug. 31, 2019, 12:14 p.m. OK MS C++ TESTS 58 140 7270400 1300
34290678 vjudge1 B Jan. 19, 2018, 3:31 a.m. OK MS C++ TESTS 58 156 8499200 1300
60656790 vjudge2 B Sept. 16, 2019, 12:39 a.m. OK MS C++ 2017 TESTS 58 78 0 1300
60667188 vjudge1 B Sept. 16, 2019, 8:45 a.m. OK MS C++ 2017 TESTS 58 78 1638400 1300
60662719 vjudge1 B Sept. 16, 2019, 6:04 a.m. OK MS C++ 2017 TESTS 58 93 819200 1300
60576470 vjudge3 B Sept. 14, 2019, 4:50 p.m. OK MS C++ 2017 TESTS 58 93 7987200 1300
64360613 Soinux B Nov. 6, 2019, 11:37 a.m. OK MS C++ 2017 TESTS 58 109 1843200 1300
60727849 vjudge1 B Sept. 17, 2019, 2:35 p.m. OK MS C++ 2017 TESTS 58 109 3174400 1300
60667226 vjudge2 B Sept. 16, 2019, 8:46 a.m. OK MS C++ 2017 TESTS 58 109 7987200 1300
60657191 vjudge5 B Sept. 16, 2019, 1:06 a.m. OK MS C++ 2017 TESTS 58 109 40038400 1300
52547501 ericlong B April 9, 2019, 11:20 p.m. OK MS C++ 2017 TESTS 58 202 0 1300
64726705 SRRRW B Nov. 12, 2019, 6:43 a.m. OK MS C++ 2017 TESTS 58 202 819200 1300
69558594 Naick B Jan. 26, 2020, 9:46 a.m. OK Node.js TESTS 58 234 26214400 1300
38641917 tsefeida B May 26, 2018, 7:03 p.m. OK Ocaml TESTS 58 296 16588800 1300
36685911 Abdyrahym.A B March 28, 2018, 7:54 a.m. OK PascalABC.NET TESTS 58 171 20275200 1300
36418658 Garfild63 B March 19, 2018, 6:46 p.m. OK PascalABC.NET TESTS 58 187 20275200 1300
36385748 OlyaK B March 18, 2018, 10:57 a.m. OK PascalABC.NET TESTS 58 187 20275200 1300
58962039 Goos_Viberus B Aug. 17, 2019, 3:45 p.m. OK PascalABC.NET TESTS 58 389 0 1300
60320000 vjudge4 B Sept. 9, 2019, 7:55 p.m. OK PyPy 2 TESTS 58 155 13107200 1300
58541790 kpiiitb B Aug. 10, 2019, 2:34 p.m. OK PyPy 2 TESTS 58 186 13209600 1300
52992210 vjudge2 B April 18, 2019, 11:39 p.m. OK PyPy 2 TESTS 58 187 13004800 1300
60644809 vjudge5 B Sept. 15, 2019, 4:43 p.m. OK PyPy 2 TESTS 58 187 13926400 1300
43370368 introibo B Sept. 24, 2018, 2:14 p.m. OK PyPy 2 TESTS 58 233 13414400 1300
36974242 IceQuarze B April 4, 2018, 4:01 p.m. OK PyPy 3 TESTS 58 295 48332800 1300
53206113 wesley_monte B April 23, 2019, 10:11 p.m. OK PyPy 3 TESTS 58 311 26624000 1300
65023056 rodrigods B Nov. 15, 2019, 6:17 a.m. OK PyPy 3 TESTS 58 312 19148800 1300
51602220 iamprayush B March 21, 2019, 4:56 a.m. OK PyPy 3 TESTS 58 312 26726400 1300
46958411 xumouyi B Dec. 13, 2018, 6:19 a.m. OK PyPy 3 TESTS 58 312 26726400 1300
44612213 sauravgupta2800 B Oct. 20, 2018, 8:45 p.m. OK PyPy 3 TESTS 58 326 26726400 1300
68344496 SaiJayinee51 B Jan. 7, 2020, 6:23 a.m. OK PyPy 3 TESTS 58 327 19046400 1300
68031787 yushant_t B Jan. 1, 2020, 9:44 a.m. OK PyPy 3 TESTS 58 327 19046400 1300
68067398 luciff B Jan. 2, 2020, 8:34 a.m. OK PyPy 3 TESTS 58 327 19148800 1300
65523497 vovik123 B Nov. 22, 2019, 9:21 a.m. OK PyPy 3 TESTS 58 327 19251200 1300
35873595 ______u______ B March 3, 2018, 7:34 a.m. OK Python 2 TESTS 58 187 15667200 1300
35873344 ______n______ B March 3, 2018, 7:29 a.m. OK Python 2 TESTS 58 187 15667200 1300
35872753 _____k_____ B March 3, 2018, 7:16 a.m. OK Python 2 TESTS 58 187 15667200 1300
35872717 _____i_____ B March 3, 2018, 7:16 a.m. OK Python 2 TESTS 58 187 15667200 1300
35863706 ______k______ B March 2, 2018, 10:52 p.m. OK Python 2 TESTS 58 187 15667200 1300
35863685 ______h______ B March 2, 2018, 10:52 p.m. OK Python 2 TESTS 58 187 15667200 1300
35863185 ______i______ B March 2, 2018, 10:41 p.m. OK Python 2 TESTS 58 187 15667200 1300
35861686 ______M______ B March 2, 2018, 10:09 p.m. OK Python 2 TESTS 58 187 15667200 1300
53203412 vjudge3 B April 23, 2019, 7:24 p.m. OK Python 2 TESTS 58 265 11161600 1300
53079605 vjudge1 B April 21, 2019, 5:31 a.m. OK Python 2 TESTS 58 265 11366400 1300
35436217 Asrock B Feb. 18, 2018, 4:49 a.m. OK Python 3 TESTS 58 139 23859200 1300
35137883 AhmedZaky B Feb. 10, 2018, 9:30 p.m. OK Python 3 TESTS 58 140 23961600 1300
34242488 ravi9989 B Jan. 17, 2018, 7:29 a.m. OK Python 3 TESTS 58 140 23961600 1300
35179185 EatYourBones B Feb. 12, 2018, 1:28 p.m. OK Python 3 TESTS 58 155 23347200 1300
34432933 ZYCCC B Jan. 22, 2018, 5:13 a.m. OK Python 3 TESTS 58 156 23859200 1300
39350138 Sharky564 B June 18, 2018, 7:51 a.m. OK Python 3 TESTS 58 171 17408000 1300
61232004 kirtanpathak4 B Sept. 24, 2019, 4:53 p.m. OK Python 3 TESTS 58 171 18022400 1300
38345109 rareone0602 B May 17, 2018, 10:35 a.m. OK Python 3 TESTS 58 171 18022400 1300
44663767 Helgast B Oct. 21, 2018, 4:41 p.m. OK Python 3 TESTS 58 171 18227200 1300
38532787 hatienl0i261299 B May 22, 2018, 11:12 a.m. OK Python 3 TESTS 58 171 18227200 1300
35540165 codeworm96.rs B Feb. 21, 2018, 7:13 a.m. OK Rust TESTS 58 31 7680000 1300
55658024 tuna_salad B June 16, 2019, 6:37 p.m. OK Rust TESTS 58 46 6246400 1300
47365888 Orfest B Dec. 22, 2018, 11:26 a.m. OK Rust TESTS 58 46 6348800 1300
51314244 hir12111 B March 14, 2019, 9:56 p.m. OK Rust TESTS 58 62 12288000 1300

remove filters

Back to search problems