Codeforces Beta Round 57 (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
61 Codeforces Beta Round 57 (Div. 2) FINISHED False 7200 433432799 Feb. 22, 2011, 4 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11309 ) E Enemy is weak PROGRAMMING data structures trees 2100

B'The Romans have attacked again. This time they are much more than the Persians but Shapur is ready to defeat them. He says: "A lion is never afraid of a hundred sheep". Nevertheless Shapur has to find weaknesses in the Roman army to defeat them. So he gives the army a weakness number. In Shapur 's opinion the weakness of an army is equal to the number of triplets i, xe2 x80 x89j, xe2 x80 x89k such that i xe2 x80 x89< xe2 x80 x89j xe2 x80 x89< xe2 x80 x89k and ai xe2 x80 x89> xe2 x80 x89aj xe2 x80 x89> xe2 x80 x89ak where ax is the power of man standing at position x. The Roman army has one special trait -- powers of all the people in it are distinct. Help Shapur find out how weak the Romans are. The first line of input contains a single number n (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106) -- the number of men in Roman army. Next line contains n different positive integers ai (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- powers of men in the Roman army. A single integer number, the weakness of the Roman army. Please, do not use %lld specificator to read or write 64-bit integers in C++. It is preffered to use cout (also you may use %I64d).'...

Tutorials

Round 57-A

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
65335469 anissaidatur E Nov. 19, 2019, 8:43 a.m. OK Clang++17 Diagnostics TESTS 70 3852 57753600 2100
40543084 cpy E July 19, 2018, 9:53 a.m. OK D TESTS 70 3727 102809600 2100
40543033 cpy E July 19, 2018, 9:50 a.m. OK D TESTS 70 4507 78950400 2100
49213325 AHTOH._. E Jan. 30, 2019, 4:19 p.m. OK FPC TESTS 70 966 16076800 2100
18241893 mostcleverboy E June 4, 2016, 9:26 a.m. OK FPC TESTS 70 982 49868800 2100
12996808 Valerich E Sept. 14, 2015, 2:40 p.m. OK FPC TESTS 70 2620 264499200 2100
17832944 TsReaper E May 10, 2016, 2:18 p.m. OK GNU C TESTS 70 670 18124800 2100
26887131 reyad E May 5, 2017, 6:40 p.m. OK GNU C TESTS 70 1543 56115200 2100
40993078 ReaLNero1 E July 31, 2018, 1:45 a.m. OK GNU C++ TESTS 70 202 41881600 2100
24681926 xsc E Feb. 14, 2017, 9:46 p.m. OK GNU C++ TESTS 70 265 43929600 2100
35555981 Ehsan_sShuvo E Feb. 21, 2018, 5:56 p.m. OK GNU C++ TESTS 70 343 22118400 2100
17034844 phonex E March 30, 2016, 1:35 p.m. OK GNU C++ TESTS 70 389 16076800 2100
41458659 luogu_bot2 E Aug. 11, 2018, 7:37 a.m. OK GNU C++ TESTS 70 389 72192000 2100
8625932 RomeoFantastik E Nov. 9, 2014, 7:30 p.m. OK GNU C++ TESTS 70 404 20070400 2100
12340144 AHappyFlower E Aug. 4, 2015, 3:08 p.m. OK GNU C++ TESTS 70 405 24064000 2100
12335435 AshVinn E Aug. 4, 2015, 8:14 a.m. OK GNU C++ TESTS 70 405 24064000 2100
28466923 vjudge4 E July 12, 2017, 8:05 a.m. OK GNU C++ TESTS 70 405 26112000 2100
20425244 mjhun E Sept. 6, 2016, 8:51 p.m. OK GNU C++ TESTS 70 420 25190400 2100
9930722 NeverSayNever E Feb. 19, 2015, 7:41 p.m. OK GNU C++0x TESTS 70 405 168345600 2100
9916155 stefanzzz E Feb. 18, 2015, 3:26 p.m. OK GNU C++0x TESTS 70 530 19865600 2100
10218889 No_Use_Anymore E March 9, 2015, 3:13 p.m. OK GNU C++0x TESTS 70 545 30924800 2100
9450464 gvishal E Jan. 17, 2015, 1:30 p.m. OK GNU C++0x TESTS 70 686 40038400 2100
9198129 ho-jo-bo-ro-lo E Dec. 19, 2014, 3:06 p.m. OK GNU C++0x TESTS 70 748 32051200 2100
10190381 a1l E March 7, 2015, 1:19 p.m. OK GNU C++0x TESTS 70 997 62873600 2100
9879872 I_love_Hoang_Yen E Feb. 17, 2015, 8:46 a.m. OK GNU C++0x TESTS 70 1169 28057600 2100
9925820 ItsLastDay E Feb. 19, 2015, 12:58 p.m. OK GNU C++0x TESTS 70 1403 31027200 2100
10240410 Kvark161 E March 11, 2015, 6:22 p.m. OK GNU C++0x TESTS 70 1825 76185600 2100
9632921 sherlock_holms E Jan. 30, 2015, 7:48 p.m. OK GNU C++0x TESTS 70 1903 104345600 2100
39876252 LudwigVanBeethoven E July 2, 2018, 6:20 p.m. OK GNU C11 TESTS 70 373 36044800 2100
59374024 rainboy E Aug. 23, 2019, 8:34 p.m. OK GNU C11 TESTS 70 592 20070400 2100
39875233 LudwigVanBeethoven E July 2, 2018, 5:34 p.m. OK GNU C11 TESTS 70 826 72192000 2100
51955665 luogu_bot4 E March 29, 2019, 2:03 a.m. OK GNU C++11 TESTS 70 202 24064000 2100
51955655 time_interspace E March 29, 2019, 2:03 a.m. OK GNU C++11 TESTS 70 202 24064000 2100
18521205 RockyB E June 16, 2016, 1:24 p.m. OK GNU C++11 TESTS 70 249 24064000 2100
24682013 xsc E Feb. 14, 2017, 9:54 p.m. OK GNU C++11 TESTS 70 295 43929600 2100
18521045 RockyB E June 16, 2016, 1:16 p.m. OK GNU C++11 TESTS 70 296 24064000 2100
60357793 ZenithINA E Sept. 10, 2019, 4:55 p.m. OK GNU C++11 TESTS 70 311 16588800 2100
51955356 MoQianXue E March 29, 2019, 1:39 a.m. OK GNU C++11 TESTS 70 312 24064000 2100
29370038 hitJudge E Aug. 12, 2017, 6:24 a.m. OK GNU C++11 TESTS 70 327 14131200 2100
29305801 Jayzhang E Aug. 9, 2017, 12:36 p.m. OK GNU C++11 TESTS 70 342 14131200 2100
52597641 ojtrans1 E April 11, 2019, 10:06 a.m. OK GNU C++11 TESTS 70 373 20070400 2100
65163532 .s. E Nov. 16, 2019, 12:22 p.m. OK GNU C++14 TESTS 70 405 11980800 2100
32941774 Jeffrey E Dec. 5, 2017, 7:25 a.m. OK GNU C++14 TESTS 70 405 13926400 2100
47294274 toothbrush E Dec. 20, 2018, 11:08 a.m. OK GNU C++14 TESTS 70 405 15974400 2100
24681936 xsc E Feb. 14, 2017, 9:47 p.m. OK GNU C++14 TESTS 70 405 43929600 2100
28002917 dheeraj_1997 E June 24, 2017, 10:13 a.m. OK GNU C++14 TESTS 70 420 17920000 2100
65163312 vjudge4 E Nov. 16, 2019, 12:18 p.m. OK GNU C++14 TESTS 70 421 11980800 2100
48897441 265918 E Jan. 24, 2019, 4:30 p.m. OK GNU C++14 TESTS 70 421 24064000 2100
47171713 Harold-Finch E Dec. 17, 2018, 3:21 p.m. OK GNU C++14 TESTS 70 436 12083200 2100
47172030 Harold-Finch E Dec. 17, 2018, 3:31 p.m. OK GNU C++14 TESTS 70 436 12288000 2100
31928088 vjudge2 E Oct. 31, 2017, 4:55 p.m. OK GNU C++14 TESTS 70 436 16076800 2100
58471985 mike2000 E Aug. 9, 2019, 1:04 a.m. OK GNU C++17 TESTS 70 405 24678400 2100
60044017 z3r0dmg E Sept. 4, 2019, 7:31 p.m. OK GNU C++17 TESTS 70 421 20684800 2100
69840658 kenimo E Jan. 30, 2020, 1:04 p.m. OK GNU C++17 TESTS 70 436 12697600 2100
55295737 vegeta1509 E June 8, 2019, 9:48 a.m. OK GNU C++17 TESTS 70 436 16691200 2100
66035850 luogu_bot5 E Nov. 30, 2019, 11:43 a.m. OK GNU C++17 TESTS 70 436 16998400 2100
47326507 QuRdAdZe E Dec. 21, 2018, 10:42 a.m. OK GNU C++17 TESTS 70 436 19968000 2100
44486044 LordDummy E Oct. 18, 2018, 12:28 p.m. OK GNU C++17 TESTS 70 436 20275200 2100
44486568 Sofyana E Oct. 18, 2018, 12:45 p.m. OK GNU C++17 TESTS 70 436 20275200 2100
47326266 QuRdAdZe E Dec. 21, 2018, 10:34 a.m. OK GNU C++17 TESTS 70 436 20275200 2100
59435200 Mahdi_Shokoufi E Aug. 25, 2019, 8:26 a.m. OK GNU C++17 TESTS 70 436 32051200 2100
14642561 DukeOfYork E Dec. 4, 2015, 5:32 a.m. OK Java 7 TESTS 70 810 9216000 2100
11400000 marcose18 E June 3, 2015, 10:37 a.m. OK Java 7 TESTS 70 811 92467200 2100
10798489 animeshf E April 20, 2015, 1:31 p.m. OK Java 7 TESTS 70 1044 97382400 2100
10096415 trunghieu11 E March 1, 2015, 1:11 p.m. OK Java 7 TESTS 70 1638 24883200 2100
11239332 Sumeet.Varma E May 23, 2015, 2:02 p.m. OK Java 7 TESTS 70 2090 163840000 2100
8675312 mkirsche E Nov. 12, 2014, 7:08 p.m. OK Java 7 TESTS 70 2402 205414400 2100
19923849 ambar003 E Aug. 17, 2016, 9:32 a.m. OK Java 8 TESTS 70 499 26009600 2100
19923015 ambar003 E Aug. 17, 2016, 8:45 a.m. OK Java 8 TESTS 70 529 37273600 2100
15755858 motivation_error E Feb. 2, 2016, 6:12 p.m. OK Java 8 TESTS 70 607 16281600 2100
43497998 aman28rwt E Sept. 27, 2018, 3:41 p.m. OK Java 8 TESTS 70 623 14540800 2100
39039567 vjudge3 E June 8, 2018, 8:12 a.m. OK Java 8 TESTS 70 686 14745600 2100
27882333 coderbond007 E June 18, 2017, 10:15 a.m. OK Java 8 TESTS 70 732 14643200 2100
44425796 omarnvidia E Oct. 17, 2018, 4:12 a.m. OK Java 8 TESTS 70 780 86425600 2100
69213377 adarsh000321 E Jan. 20, 2020, 9:34 p.m. OK Java 8 TESTS 70 857 92057600 2100
41335047 hongquanntct E Aug. 8, 2018, 11:29 a.m. OK Java 8 TESTS 70 872 78950400 2100
36272756 prashantpiyush E March 14, 2018, 11:19 a.m. OK Java 8 TESTS 70 919 106803200 2100
55376433 Slamur E June 9, 2019, 5:47 p.m. OK Kotlin TESTS 70 1965 137113600 2100
56407408 toysheeyeyraku E July 1, 2019, 8:17 p.m. OK Mono C# TESTS 70 3837 258457600 2100
29623053 semera E Aug. 20, 2017, 2:12 p.m. OK MS C# TESTS 70 421 20480000 2100
24584484 og.kostya E Feb. 11, 2017, 7:44 a.m. OK MS C# TESTS 70 468 29388800 2100
29630721 semera E Aug. 20, 2017, 9:24 p.m. OK MS C# TESTS 70 483 20480000 2100
29630805 semera E Aug. 20, 2017, 9:30 p.m. OK MS C# TESTS 70 499 20480000 2100
24584349 og.kostya E Feb. 11, 2017, 7:33 a.m. OK MS C# TESTS 70 889 55193600 2100
30370109 ShowStopper728 E Sept. 15, 2017, 6:32 p.m. OK MS C# TESTS 70 1777 228147200 2100
24681944 xsc E Feb. 14, 2017, 9:47 p.m. OK MS C++ TESTS 70 327 44134400 2100
28142388 Tampere E June 29, 2017, 3:04 p.m. OK MS C++ TESTS 70 483 34201600 2100
11270597 Amr_Hassan E May 25, 2015, 9:11 p.m. OK MS C++ TESTS 70 514 24064000 2100
27228179 vjudge2 E May 20, 2017, 5:03 a.m. OK MS C++ TESTS 70 561 32153600 2100
27228163 vjudge5 E May 20, 2017, 5:02 a.m. OK MS C++ TESTS 70 561 32256000 2100
27228397 vjudge2 E May 20, 2017, 5:24 a.m. OK MS C++ TESTS 70 592 24166400 2100
41146235 huiyi E Aug. 3, 2018, 6:42 a.m. OK MS C++ TESTS 70 701 24371200 2100
10410480 Alex7 E March 23, 2015, 1:09 p.m. OK MS C++ TESTS 70 748 32051200 2100
14078532 Roms E Nov. 4, 2015, 9:48 p.m. OK MS C++ TESTS 70 780 24064000 2100
29119358 vjudge4 E Aug. 2, 2017, 6:32 a.m. OK MS C++ TESTS 70 1045 26112000 2100
63730047 Warlock_ E Oct. 29, 2019, 1:46 p.m. OK MS C++ 2017 TESTS 70 732 48128000 2100
51168644 vince0 E March 11, 2019, 3:22 p.m. OK MS C++ 2017 TESTS 70 1497 20070400 2100
57954958 yorky E July 29, 2019, 6:13 p.m. OK MS C++ 2017 TESTS 70 1528 24064000 2100
57785353 vjudge2 E July 26, 2019, 7:34 a.m. OK MS C++ 2017 TESTS 70 2011 60211200 2100
57984968 tik-tok E July 30, 2019, 11:02 a.m. OK MS C++ 2017 TESTS 70 2292 44134400 2100
57790486 vjudge4 E July 26, 2019, 9:16 a.m. OK MS C++ 2017 TESTS 70 2808 64204800 2100
61559548 TwiceStanAccount666 E Sept. 30, 2019, 3:06 p.m. OK MS C++ 2017 TESTS 70 3852 72192000 2100
58268950 jooj E Aug. 4, 2019, 4 p.m. OK PyPy 2 TESTS 70 2573 80076800 2100
58268841 jooj E Aug. 4, 2019, 3:57 p.m. OK PyPy 2 TESTS 70 2808 119808000 2100
58268536 jooj E Aug. 4, 2019, 3:47 p.m. OK PyPy 2 TESTS 70 2947 119808000 2100
68379160 mitribunskiy E Jan. 7, 2020, 10:25 p.m. OK PyPy 3 TESTS 70 3821 137523200 2100
68690092 Firepaw E Jan. 13, 2020, 5:42 a.m. OK PyPy 3 TESTS 70 4944 84787200 2100

remove filters

Back to search problems