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 329495404 Aug. 15, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 10488 ) D Pashmak and Parmida's problem PROGRAMMING data structures divide and conquer sortings 1800

B"Parmida is a clever girl and she wants to participate in Olympiads this year. Of course she wants her partner to be clever too (although he's not)! Parmida has prepared the following test problem for Pashmak. There is a sequence a that consists of n integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an. Let's denote f(l, xe2 x80 x89r, xe2 x80 x89x) the number of indices k such that: l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r and ak xe2 x80 x89= xe2 x80 x89x. His task is to calculate the number of pairs of indicies i, xe2 x80 x89j (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89< xe2 x80 x89j xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) such that f(1, xe2 x80 x89i, xe2 x80 x89ai) xe2 x80 x89> xe2 x80 x89f(j, xe2 x80 x89n, xe2 x80 x89aj). Help Pashmak with the test. The first line of the input contains an integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106). The second line contains n space-separated integers 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 single integer -- the answer to the problem."...

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
49160798 AHTOH._. D Jan. 29, 2019, 3:16 p.m. OK FPC TESTS 33 748 24064000 1800
40988108 ReaLNero1 D July 30, 2018, 9:44 p.m. OK GNU C++ TESTS 33 202 24268800 1800
37221148 vjudge5 D April 11, 2018, 11:35 a.m. OK GNU C++ TESTS 33 436 27545600 1800
41631553 ToErr D Aug. 15, 2018, 6:32 p.m. OK GNU C++ TESTS 33 467 28672000 1800
40049718 LuckyCloud D July 7, 2018, 3:19 a.m. OK GNU C++ TESTS 33 529 39936000 1800
35086363 2742195759 D Feb. 9, 2018, 10:39 a.m. OK GNU C++ TESTS 33 546 34099200 1800
37865417 ILLENIUM D May 3, 2018, 2:42 p.m. OK GNU C++ TESTS 33 546 35635200 1800
41511133 nh_dantz D Aug. 12, 2018, 2:19 a.m. OK GNU C++ TESTS 33 576 24064000 1800
41984771 sxd666 D Aug. 23, 2018, 5:18 a.m. OK GNU C++ TESTS 33 686 40140800 1800
38549811 SHoang D May 23, 2018, 2:56 a.m. OK GNU C++ TESTS 33 763 32051200 1800
39430879 vjudge2 D June 20, 2018, 8:58 a.m. OK GNU C++ TESTS 33 889 48230400 1800
57910353 rainboy D July 28, 2019, 7:47 p.m. OK GNU C11 TESTS 33 857 44134400 1800
39426167 vjudge2 D June 20, 2018, 4:40 a.m. OK GNU C++11 TESTS 33 234 24064000 1800
48174398 L2K2 D Jan. 10, 2019, 8:42 a.m. OK GNU C++11 TESTS 33 296 28057600 1800
62043028 luogu_bot1 D Oct. 7, 2019, 6:36 a.m. OK GNU C++11 TESTS 33 311 27852800 1800
62042889 Tommy_clas D Oct. 7, 2019, 6:33 a.m. OK GNU C++11 TESTS 33 311 27852800 1800
62085268 luogu_bot5 D Oct. 8, 2019, 1:06 a.m. OK GNU C++11 TESTS 33 311 27852800 1800
42740532 sxy_to_the_end D Sept. 10, 2018, 4 p.m. OK GNU C++11 TESTS 33 343 24064000 1800
44875221 HolyRomanEmpire D Oct. 25, 2018, 4:54 p.m. OK GNU C++11 TESTS 33 343 68096000 1800
69076474 Xing_Ling D Jan. 19, 2020, 3:34 a.m. OK GNU C++11 TESTS 33 358 23859200 1800
44874987 bojverdict1 D Oct. 25, 2018, 4:51 p.m. OK GNU C++11 TESTS 33 358 68096000 1800
44766821 luogu_bot3 D Oct. 24, 2018, 10:22 a.m. OK GNU C++11 TESTS 33 374 20070400 1800
51463697 S.A.R D March 18, 2019, 10:03 p.m. OK GNU C++14 TESTS 33 389 24064000 1800
34552216 mihele D Jan. 25, 2018, 4:30 p.m. OK GNU C++14 TESTS 33 421 21913600 1800
47536872 nganhvu D Dec. 27, 2018, 3:05 a.m. OK GNU C++14 TESTS 33 421 24064000 1800
56748016 khanhba D July 9, 2019, 10:41 a.m. OK GNU C++14 TESTS 33 421 28057600 1800
39001327 tusg25 D June 6, 2018, 5:57 p.m. OK GNU C++14 TESTS 33 436 20070400 1800
42434337 Ramprosad D Sept. 3, 2018, 4:30 p.m. OK GNU C++14 TESTS 33 436 24064000 1800
51210487 Valgt D March 12, 2019, 7:37 a.m. OK GNU C++14 TESTS 33 452 28057600 1800
58954654 baohiep D Aug. 17, 2019, 12:27 p.m. OK GNU C++14 TESTS 33 483 36044800 1800
37491416 jianba D April 20, 2018, 3:13 p.m. OK GNU C++14 TESTS 33 498 23654400 1800
37459602 jianba D April 19, 2018, 11:34 a.m. OK GNU C++14 TESTS 33 499 27340800 1800
41577856 vjudge1 D Aug. 14, 2018, 6:16 a.m. OK GNU C++17 TESTS 33 358 24064000 1800
46421834 mraron D Nov. 30, 2018, 10:13 p.m. OK GNU C++17 TESTS 33 389 28057600 1800
36557745 brdy D March 23, 2018, 10:56 p.m. OK GNU C++17 TESTS 33 421 31436800 1800
69484499 mqt2019 D Jan. 24, 2020, 6:58 p.m. OK GNU C++17 TESTS 33 436 60723200 1800
44032586 aquablaze D Oct. 9, 2018, 11:34 a.m. OK GNU C++17 TESTS 33 483 20070400 1800
46421808 mraron D Nov. 30, 2018, 10:11 p.m. OK GNU C++17 TESTS 33 483 32665600 1800
56170487 GODF D June 27, 2019, 4:17 p.m. OK GNU C++17 TESTS 33 483 44134400 1800
59588668 digu_J D Aug. 27, 2019, 7:13 p.m. OK GNU C++17 TESTS 33 499 49868800 1800
40093439 shahidul_brur D July 8, 2018, 7:06 p.m. OK GNU C++17 TESTS 33 514 28672000 1800
55102410 devarshi09 D June 4, 2019, 9:29 p.m. OK GNU C++17 TESTS 33 530 24268800 1800
67183089 Oom D Dec. 19, 2019, 1:56 a.m. OK Java 11 TESTS 33 1575 85299200 1800
58372370 vcght D Aug. 6, 2019, 7:03 a.m. OK Java 8 TESTS 33 764 83046400 1800
42734669 hongquanntct D Sept. 10, 2018, 1:17 p.m. OK Java 8 TESTS 33 842 78950400 1800
42734689 hongquanntct D Sept. 10, 2018, 1:18 p.m. OK Java 8 TESTS 33 935 78950400 1800
49460520 Andres1 D Feb. 4, 2019, 12:45 p.m. OK Java 8 TESTS 33 982 138137600 1800
54829513 akshat_21 D May 30, 2019, 8:16 a.m. OK Java 8 TESTS 33 998 80998400 1800
48409562 mumeinokiseki D Jan. 15, 2019, 6:50 a.m. OK Java 8 TESTS 33 1138 83046400 1800
46962433 blackrise D Dec. 13, 2018, 9:07 a.m. OK Java 8 TESTS 33 1154 120012800 1800
57182621 yorky D July 17, 2019, 7:45 a.m. OK Java 8 TESTS 33 1184 91648000 1800
42220676 .tx D Aug. 28, 2018, 8:18 p.m. OK Java 8 TESTS 33 1232 91852800 1800
46966614 ankurdua15 D Dec. 13, 2018, 11:43 a.m. OK Java 8 TESTS 33 1263 85913600 1800
69962814 Spheniscine D Feb. 1, 2020, 11:55 a.m. OK Kotlin TESTS 33 779 80691200 1800
69962502 Spheniscine D Feb. 1, 2020, 11:50 a.m. OK Kotlin TESTS 33 1014 152166400 1800
69962380 Spheniscine D Feb. 1, 2020, 11:48 a.m. OK Kotlin TESTS 33 1107 152166400 1800
69961227 Spheniscine D Feb. 1, 2020, 11:32 a.m. OK Kotlin TESTS 33 1200 93286400 1800
52117199 toysheeyeyraku D March 31, 2019, 3:49 p.m. OK Mono C# TESTS 33 1232 235622400 1800
64078677 hibatibati D Nov. 2, 2019, 9:29 a.m. OK Mono C# TESTS 33 1403 196505600 1800
50474321 the_wanderer_ D Feb. 25, 2019, 4:38 a.m. OK MS C++ TESTS 33 421 53452800 1800
50792381 vjudge5 D March 4, 2019, 4:25 p.m. OK MS C++ TESTS 33 1450 48230400 1800
36457048 Spitsnaz D March 21, 2018, 2:44 p.m. OK MS C++ TESTS 33 1528 64000000 1800
36457013 Spitsnaz D March 21, 2018, 2:43 p.m. OK MS C++ TESTS 33 1668 124211200 1800
50817143 vjudge5 D March 5, 2019, 11:59 a.m. OK MS C++ TESTS 33 1684 52428800 1800
59517845 vjudge2 D Aug. 26, 2019, 10:47 a.m. OK MS C++ TESTS 33 1684 116428800 1800
40549924 vjudge2 D July 19, 2018, 1:46 p.m. OK MS C++ TESTS 33 1700 44441600 1800
53821038 vjudge2 D May 6, 2019, 1:11 p.m. OK MS C++ TESTS 33 1746 48435200 1800
50911848 vjudge4 D March 7, 2019, 3:09 a.m. OK MS C++ TESTS 33 1793 80281600 1800
50820150 vjudge4 D March 5, 2019, 1:13 p.m. OK MS C++ TESTS 33 1840 80281600 1800
56389867 petko_mitkov D July 1, 2019, 12:07 p.m. OK MS C++ 2017 TESTS 33 624 44134400 1800
56975160 2462478392 D July 13, 2019, 11:56 a.m. OK MS C++ 2017 TESTS 33 2137 48435200 1800
53103881 RiscadoA D April 21, 2019, 6:19 p.m. OK MS C++ 2017 TESTS 33 2791 100352000 1800
57854092 tik-tok D July 27, 2019, 2:19 p.m. OK MS C++ 2017 TESTS 33 2947 128409600 1800
39892944 pavankatta D July 3, 2018, 12:01 p.m. OK PyPy 2 TESTS 33 1045 110284800 1800
42189290 vjudge3 D Aug. 28, 2018, 1:14 a.m. OK PyPy 2 TESTS 33 1153 92774400 1800
68378664 mitribunskiy D Jan. 7, 2020, 9:55 p.m. OK PyPy 3 TESTS 33 1590 104243200 1800
53213059 Aakash_1998 D April 24, 2019, 6:54 a.m. OK PyPy 3 TESTS 33 1621 132403200 1800
49808915 HaaaToka D Feb. 11, 2019, 10:03 p.m. OK PyPy 3 TESTS 33 1700 122982400 1800
65759873 Just_a_game_on_your_lips D Nov. 26, 2019, 3:24 p.m. OK PyPy 3 TESTS 33 1715 81510400 1800
65759793 vjudge4 D Nov. 26, 2019, 3:23 p.m. OK PyPy 3 TESTS 33 1762 81408000 1800
66613799 incenger D Dec. 11, 2019, 1:23 a.m. OK PyPy 3 TESTS 33 2105 175308800 1800
42962794 newpie D Sept. 16, 2018, 8:31 p.m. OK PyPy 3 TESTS 33 2339 162304000 1800
42963243 newpie D Sept. 16, 2018, 8:51 p.m. OK PyPy 3 TESTS 33 2527 171827200 1800
68346724 Firepaw D Jan. 7, 2020, 7:40 a.m. OK PyPy 3 TESTS 33 2557 177664000 1800

remove filters

Back to search problems