School Personal Contest #2 (Winter Computer School 2010/11) - Codeforces Beta Round 43 (ACM-ICPC Rules)

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
46 School Personal Contest #2 (Winter Computer School 2010/11) - Codeforces Beta Round 43 (ACM-ICPC Rules) FINISHED False 10800 445557585 Dec. 5, 2010, 8 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2504 ) C Hamsters and Tigers PROGRAMMING two pointers 1700

B'Today there is going to be an unusual performance at the circus -- hamsters and tigers will perform together! All of them stand in circle along the arena edge and now the trainer faces a difficult task: he wants to swap the animals ' positions so that all the hamsters stood together and all the tigers also stood together. The trainer swaps the animals in pairs not to create a mess. He orders two animals to step out of the circle and swap places. As hamsters feel highly uncomfortable when tigers are nearby as well as tigers get nervous when there 's so much potential prey around (consisting not only of hamsters but also of yummier spectators), the trainer wants to spend as little time as possible moving the animals, i.e. he wants to achieve it with the minimal number of swaps. Your task is to help him. The first line contains number n (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000) which indicates the total number of animals in the arena. The second line contains the description of the animals ' positions. The line consists of n symbols "H" and "T". The "H"s correspond to hamsters and the "T"s correspond to tigers. It is guaranteed that at least one hamster and one tiger are present on the arena. The animals are given in the order in which they are located circle-wise, in addition, the last animal stands near the first one. Print the single number which is the minimal number of swaps that let the trainer to achieve his goal. In the first example we shouldn 't move anybody because the animals of each species already stand apart from the other species. In the second example you may swap, for example, the tiger in position 2 with the hamster in position 5 and then -- the tiger in position 9 with the hamster in position 7.'...

Tutorials

School Individual Contest #2 (WCS 2010/11) - Codeforces Beta Round #43 (ACM-ICPC Rules): A, C, F and G tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
2954291 AleksanderBalobanov C Jan. 17, 2013, 7:11 p.m. OK Delphi TESTS 27 15 102400 1700
2954130 Mosyagin C Jan. 17, 2013, 6:26 p.m. OK Delphi TESTS 27 15 102400 1700
2863858 Misha100896 C Jan. 1, 2013, 2:21 p.m. OK Delphi TESTS 27 15 102400 1700
15143185 HappyNewYearMike C Dec. 31, 2015, 11:06 p.m. OK Delphi TESTS 27 30 102400 1700
352590 alexander-nsk94 C March 23, 2011, 4:05 p.m. OK Delphi TESTS 27 30 819200 1700
330220 vladislav C March 10, 2011, 3:39 p.m. OK Delphi TESTS 27 30 819200 1700
212556 NoobOK C Dec. 7, 2010, 11:44 a.m. OK Delphi TESTS 27 30 819200 1700
211027 Allin C Dec. 5, 2010, 10:54 a.m. OK Delphi TESTS 27 30 819200 1700
210998 ruban C Dec. 5, 2010, 10:53 a.m. OK Delphi TESTS 27 30 819200 1700
210249 ErzhanDS C Dec. 5, 2010, 10:22 a.m. OK Delphi TESTS 27 30 819200 1700
208179 cst C Dec. 5, 2010, 8:54 a.m. OK FPC TESTS 27 10 819200 1700
7894819 pqhuy98 C Sept. 21, 2014, 10:35 a.m. OK FPC TESTS 27 30 307200 1700
4969718 somal akus C Nov. 2, 2013, 12:13 p.m. OK FPC TESTS 27 30 307200 1700
8041833 ils.kirito C Oct. 1, 2014, 1:25 a.m. OK FPC TESTS 27 30 409600 1700
8024225 vanquang13 C Sept. 29, 2014, 11:40 a.m. OK FPC TESTS 27 30 409600 1700
5520636 llaugusty C Dec. 25, 2013, 5:38 p.m. OK FPC TESTS 27 30 409600 1700
4969674 demon1999 C Nov. 2, 2013, 12:10 p.m. OK FPC TESTS 27 30 409600 1700
212802 ARHIGOD C Dec. 9, 2010, 4:17 p.m. OK FPC TESTS 27 30 819200 1700
212759 Warxezz C Dec. 8, 2010, 8:21 p.m. OK FPC TESTS 27 30 819200 1700
211853 valikluks1995 C Dec. 5, 2010, 4:38 p.m. OK FPC TESTS 27 30 819200 1700
12248480 1098841752 C July 28, 2015, 6:48 a.m. OK GNU C TESTS 27 30 0 1700
11816948 neerajbattan C June 28, 2015, 9 a.m. OK GNU C TESTS 27 30 0 1700
4825490 ashleynewson C Oct. 19, 2013, 2:34 p.m. OK GNU C TESTS 27 30 0 1700
665792 kawatea C Sept. 3, 2011, 4:50 p.m. OK GNU C TESTS 27 30 1331200 1700
207976 zzldjk C Dec. 5, 2010, 8:48 a.m. OK GNU C TESTS 27 30 1331200 1700
207331 zpl1 C Dec. 5, 2010, 8:29 a.m. OK GNU C TESTS 27 30 1331200 1700
207024 LayCurse C Dec. 5, 2010, 8:22 a.m. OK GNU C TESTS 27 30 1331200 1700
1894181 vjudge5 C July 12, 2012, 5:38 a.m. OK GNU C TESTS 27 30 1433600 1700
33156552 vjudge4 C Dec. 12, 2017, 1:40 p.m. OK GNU C TESTS 27 30 2048000 1700
207279 scottai1 C Dec. 5, 2010, 8:28 a.m. OK GNU C TESTS 27 50 1331200 1700
4445697 nzamulov C Sept. 11, 2013, 7:54 p.m. OK GNU C++ TESTS 27 0 0 1700
4324651 i14 C Aug. 22, 2013, 3:29 p.m. OK GNU C++ TESTS 27 0 0 1700
212666 ygorshenin C Dec. 7, 2010, 9:45 p.m. OK GNU C++ TESTS 27 10 1331200 1700
212646 BenderRodriges C Dec. 7, 2010, 3:23 p.m. OK GNU C++ TESTS 27 10 1331200 1700
209589 robine C Dec. 5, 2010, 9:51 a.m. OK GNU C++ TESTS 27 10 1331200 1700
209361 hydrastuff C Dec. 5, 2010, 9:42 a.m. OK GNU C++ TESTS 27 10 1331200 1700
212122 4T-Shirt C Dec. 6, 2010, 8:52 a.m. OK GNU C++ TESTS 27 10 1433600 1700
4134588 3111006139 C July 22, 2013, 10:29 a.m. OK GNU C++ TESTS 27 15 0 1700
4133158 vjudge1 C July 22, 2013, 6:57 a.m. OK GNU C++ TESTS 27 15 0 1700
4132097 Wiking C July 22, 2013, 2:41 a.m. OK GNU C++ TESTS 27 15 0 1700
3255871 Doxer C March 5, 2013, 5:24 p.m. OK GNU C++0x TESTS 27 15 0 1700
9554276 de_inferno C Jan. 25, 2015, 10:11 p.m. OK GNU C++0x TESTS 27 30 0 1700
9391663 SaDDaS C Jan. 9, 2015, 12:16 p.m. OK GNU C++0x TESTS 27 30 0 1700
8744272 BizZ C Nov. 18, 2014, 10:05 a.m. OK GNU C++0x TESTS 27 30 0 1700
8743734 SaDDaS C Nov. 18, 2014, 8:58 a.m. OK GNU C++0x TESTS 27 30 0 1700
7938523 M.Mahdi C Sept. 24, 2014, 4:17 p.m. OK GNU C++0x TESTS 27 30 0 1700
4367277 A_Le_K C Aug. 29, 2013, 5:59 p.m. OK GNU C++0x TESTS 27 30 0 1700
770056 eddy.b.ferreira C Oct. 16, 2011, 7:19 p.m. OK GNU C++0x TESTS 27 30 1331200 1700
475942 Archon.JK C June 5, 2011, 6:51 a.m. OK GNU C++0x TESTS 27 30 1331200 1700
525108 ZiyaoWei C July 1, 2011, 4:45 p.m. OK GNU C++0x TESTS 27 30 1433600 1700
27359872 Svenny C May 26, 2017, 4:18 p.m. OK GNU C11 TESTS 27 30 0 1700
51909078 1804038_Hasan_Mesbaul C March 27, 2019, 5:07 p.m. OK GNU C11 TESTS 27 60 0 1700
51909318 1804038_Hasan_Mesbaul C March 27, 2019, 5:15 p.m. OK GNU C11 TESTS 27 62 0 1700
27536639 vjudge4 C June 3, 2017, 5:38 a.m. OK GNU C++11 TESTS 27 30 0 1700
27419646 Momentaiii C May 28, 2017, 8:46 p.m. OK GNU C++11 TESTS 27 30 0 1700
51200691 tnowakow C March 11, 2019, 10:44 p.m. OK GNU C++11 TESTS 27 30 0 1700
23078992 y_shindoh C Dec. 18, 2016, 7:28 a.m. OK GNU C++11 TESTS 27 30 0 1700
30972293 hpkt.pkt C Oct. 3, 2017, 3:57 p.m. OK GNU C++11 TESTS 27 30 0 1700
30789032 williemaster C Sept. 27, 2017, 8:50 p.m. OK GNU C++11 TESTS 27 30 0 1700
29842941 mishatron C Aug. 28, 2017, 10:16 a.m. OK GNU C++11 TESTS 27 30 0 1700
29946529 vanquanguet C Aug. 31, 2017, 2:03 p.m. OK GNU C++11 TESTS 27 30 0 1700
27825683 artur.socha C June 16, 2017, 1:08 p.m. OK GNU C++11 TESTS 27 30 0 1700
27536755 AWCXV C June 3, 2017, 5:44 a.m. OK GNU C++11 TESTS 27 30 0 1700
30736612 risitos_de_oro2.1 C Sept. 25, 2017, 11:23 p.m. OK GNU C++14 TESTS 27 30 0 1700
51859763 19Weapons C March 26, 2019, 12:38 p.m. OK GNU C++14 TESTS 27 30 0 1700
50576378 CodigoL C Feb. 27, 2019, 6:19 p.m. OK GNU C++14 TESTS 27 30 0 1700
47709191 Uzumaki_Narutoo C Dec. 30, 2018, 12:44 a.m. OK GNU C++14 TESTS 27 30 0 1700
39002830 LODB---D C June 6, 2018, 7:28 p.m. OK GNU C++14 TESTS 27 30 0 1700
32348431 mohammadrobot C Nov. 16, 2017, 6:32 a.m. OK GNU C++14 TESTS 27 30 0 1700
32348044 ArshiaDadras C Nov. 16, 2017, 6 a.m. OK GNU C++14 TESTS 27 30 0 1700
31301740 matveevk C Oct. 14, 2017, 10:43 a.m. OK GNU C++14 TESTS 27 30 0 1700
31005238 lusho C Oct. 5, 2017, 1:20 a.m. OK GNU C++14 TESTS 27 30 0 1700
29931683 .Vanya C Aug. 30, 2017, 8:21 p.m. OK GNU C++14 TESTS 27 30 0 1700
55095714 gourav.iitbhu C June 4, 2019, 5:02 p.m. OK GNU C++17 TESTS 27 30 0 1700
40848849 InvisibleCyclist C July 27, 2018, 1:31 p.m. OK GNU C++17 TESTS 27 30 0 1700
42650067 Zabiyaka C Sept. 7, 2018, 5:59 p.m. OK GNU C++17 TESTS 27 30 0 1700
35758563 Qumeric C Feb. 27, 2018, 10:44 a.m. OK GNU C++17 TESTS 27 30 1945600 1700
37533877 kollye C April 22, 2018, 1:10 p.m. OK GNU C++17 TESTS 27 30 3686400 1700
60050318 pppepito86 C Sept. 4, 2019, 11:53 p.m. OK GNU C++17 TESTS 27 60 0 1700
63699743 EremeevD C Oct. 29, 2019, 6:53 a.m. OK GNU C++17 TESTS 27 60 0 1700
69469670 _DynamicCube C Jan. 24, 2020, 2:06 p.m. OK GNU C++17 TESTS 27 60 0 1700
50084426 Tudor_Andrei C Feb. 18, 2019, 6:38 a.m. OK GNU C++17 TESTS 27 60 0 1700
62097236 nongi C Oct. 8, 2019, 7:56 a.m. OK GNU C++17 TESTS 27 60 0 1700
209297 KTR C Dec. 5, 2010, 9:39 a.m. OK Haskell TESTS 27 30 1536000 1700
552232 ethercrow C July 20, 2011, 11:06 a.m. OK Haskell TESTS 27 50 2048000 1700
68727387 YahiaMostafa C Jan. 13, 2020, 6:26 p.m. OK Java 11 TESTS 27 374 0 1700
994523 stevenkplus C Jan. 2, 2012, 5:52 a.m. OK Java 6 TESTS 27 80 43110400 1700
212977 Ahmed_Salama C Dec. 16, 2010, 9:23 a.m. OK Java 6 TESTS 27 80 43315200 1700
211534 caustique C Dec. 5, 2010, 12:01 p.m. OK Java 6 TESTS 27 80 43315200 1700
207868 mdldml C Dec. 5, 2010, 8:44 a.m. OK Java 6 TESTS 27 80 43315200 1700
207645 Nox C Dec. 5, 2010, 8:37 a.m. OK Java 6 TESTS 27 80 43315200 1700
544447 dalex C July 13, 2011, 2:29 p.m. OK Java 6 TESTS 27 90 35430400 1700
524601 altais C July 1, 2011, 11:40 a.m. OK Java 6 TESTS 27 90 43008000 1700
1160863 Navigabimus C Feb. 10, 2012, 8:54 a.m. OK Java 6 TESTS 27 90 43212800 1700
343488 Sammarize C March 18, 2011, 11:48 p.m. OK Java 6 TESTS 27 90 43315200 1700
360827 pioneer C March 28, 2011, 10:48 a.m. OK Java 6 TESTS 27 90 43315200 1700
1707866 bidzilya C May 21, 2012, 12:55 p.m. OK Java 7 TESTS 27 90 44851200 1700
3450804 amin-55 C April 1, 2013, 9:31 p.m. OK Java 7 TESTS 27 93 46592000 1700
1748907 jiangzhijie C June 1, 2012, 6:16 a.m. OK Java 7 TESTS 27 110 44851200 1700
5479587 upsolving C Dec. 20, 2013, 8:17 a.m. OK Java 7 TESTS 27 124 0 1700
5595718 Zyflair C Jan. 1, 2014, 1:59 a.m. OK Java 7 TESTS 27 124 0 1700
5479564 upsolving C Dec. 20, 2013, 8:11 a.m. OK Java 7 TESTS 27 124 0 1700
6380524 ykcland C April 16, 2014, 6:06 p.m. OK Java 7 TESTS 27 154 0 1700
10530176 Phicar C March 31, 2015, 4:41 a.m. OK Java 7 TESTS 27 154 0 1700
9148894 alibaba C Dec. 16, 2014, 7:52 a.m. OK Java 7 TESTS 27 156 0 1700
4825777 zhangmeng1010 C Oct. 19, 2013, 3:21 p.m. OK Java 7 TESTS 27 156 0 1700
10277804 dumak C March 14, 2015, 7:23 p.m. OK Java 8 TESTS 27 216 0 1700
68664646 Mohamed_Eshiba C Jan. 12, 2020, 2:43 p.m. OK Java 8 TESTS 27 218 0 1700
48066464 AhmedZaghloul C Jan. 7, 2019, 6:27 p.m. OK Java 8 TESTS 27 218 0 1700
10543221 fnch C April 1, 2015, 3:10 p.m. OK Java 8 TESTS 27 218 0 1700
29377805 AhmedSoliman C Aug. 12, 2017, 1 p.m. OK Java 8 TESTS 27 218 20275200 1700
27943370 ashubeckham C June 21, 2017, 10:25 a.m. OK Java 8 TESTS 27 218 20480000 1700
29460117 Imaginary C Aug. 14, 2017, 2:34 p.m. OK Java 8 TESTS 27 218 20582400 1700
56535760 YahiaSherif C July 5, 2019, 12:28 a.m. OK Java 8 TESTS 27 248 0 1700
56182407 samer_ghaly C June 28, 2019, 1:26 a.m. OK Java 8 TESTS 27 248 0 1700
56182273 samer_ghaly C June 28, 2019, 1:17 a.m. OK Java 8 TESTS 27 248 0 1700
51441655 SergeySh C March 18, 2019, 10:18 a.m. OK JavaScript TESTS 27 62 0 1700
212061 tanzaku C Dec. 6, 2010, 4:16 a.m. OK Mono C# TESTS 27 110 5529600 1700
211620 tanzaku C Dec. 5, 2010, 12:44 p.m. OK Mono C# TESTS 27 110 39219200 1700
207308 superkinhluan C Dec. 5, 2010, 8:28 a.m. OK Mono C# TESTS 27 130 5529600 1700
207734 ArchMaG C Dec. 5, 2010, 8:40 a.m. OK Mono C# TESTS 27 130 5734400 1700
208407 extremall C Dec. 5, 2010, 9:03 a.m. OK Mono C# TESTS 27 140 5529600 1700
210318 fujiyama C Dec. 5, 2010, 10:26 a.m. OK Mono C# TESTS 27 200 6656000 1700
244365 Hadi_Asiaie C Jan. 11, 2011, 6:11 a.m. OK Mono C# TESTS 27 200 6758400 1700
5231613 marat.snowbear C Nov. 24, 2013, 11:23 p.m. OK MS C# TESTS 27 92 2252800 1700
16646590 og.kostya C March 11, 2016, 10:43 a.m. OK MS C# TESTS 27 154 2560000 1700
3492679 vjudge4 C April 8, 2013, 10:56 a.m. OK MS C++ TESTS 27 15 0 1700
4085242 vjudge4 C July 17, 2013, 8:05 a.m. OK MS C++ TESTS 27 15 0 1700
4029442 abistrigova C July 6, 2013, 5:38 a.m. OK MS C++ TESTS 27 15 0 1700
3655724 tomas.svab C April 30, 2013, 7:20 p.m. OK MS C++ TESTS 27 15 0 1700
3498976 vjudge1 C April 10, 2013, 9:37 a.m. OK MS C++ TESTS 27 15 0 1700
3493163 luffyy C April 8, 2013, 12:39 p.m. OK MS C++ TESTS 27 15 0 1700
3492648 vjudge2 C April 8, 2013, 10:49 a.m. OK MS C++ TESTS 27 15 0 1700
3492429 vjudge2 C April 8, 2013, 9:59 a.m. OK MS C++ TESTS 27 15 0 1700
3230482 igor.kondratiev Emettant C March 2, 2013, 2:24 p.m. OK MS C++ TESTS 27 15 0 1700
3494930 gotoac C April 9, 2013, 1:42 a.m. OK MS C++ TESTS 27 15 0 1700
57599963 CtrlAlt C July 23, 2019, 3:23 p.m. OK MS C++ 2017 TESTS 27 62 0 1700
58180991 yorky C Aug. 2, 2019, 3:10 p.m. OK MS C++ 2017 TESTS 27 92 0 1700
9292745 mayakin C Dec. 28, 2014, 4:19 p.m. OK PHP TESTS 27 248 307200 1700
9292728 mayakin C Dec. 28, 2014, 4:17 p.m. OK PHP TESTS 27 248 307200 1700
66504035 SMMaster C Dec. 8, 2019, 1:39 p.m. OK PyPy 3 TESTS 27 280 0 1700
45198031 Firepaw C Nov. 2, 2018, 8:24 a.m. OK PyPy 3 TESTS 27 1964 921600 1700
3089420 m1_k3 C Feb. 10, 2013, 1:25 p.m. OK Python 2 TESTS 27 46 102400 1700
276479 MrFunnyManny C Feb. 6, 2011, 9:55 p.m. OK Python 2 TESTS 27 60 2764800 1700
208091 insane C Dec. 5, 2010, 8:52 a.m. OK Python 2 TESTS 27 60 2764800 1700
207881 hirosegolf C Dec. 5, 2010, 8:44 a.m. OK Python 2 TESTS 27 60 2764800 1700
5237444 Unlenin C Nov. 25, 2013, 4:49 p.m. OK Python 2 TESTS 27 62 0 1700
1805423 nealzane C June 15, 2012, 10:42 p.m. OK Python 2 TESTS 27 110 2969600 1700
35874409 ______u______ C March 3, 2018, 7:51 a.m. OK Python 2 TESTS 27 124 4608000 1700
35874217 ______n______ C March 3, 2018, 7:46 a.m. OK Python 2 TESTS 27 124 4608000 1700
35873618 _____k_____ C March 3, 2018, 7:34 a.m. OK Python 2 TESTS 27 124 4608000 1700
35873472 _____i_____ C March 3, 2018, 7:32 a.m. OK Python 2 TESTS 27 124 4608000 1700
31301353 vadret C Oct. 14, 2017, 10:28 a.m. OK Python 3 TESTS 27 122 0 1700
15637470 merolish C Jan. 28, 2016, 11:53 p.m. OK Python 3 TESTS 27 124 0 1700
15637449 merolish C Jan. 28, 2016, 11:48 p.m. OK Python 3 TESTS 27 124 0 1700
13789607 Eeyore C Oct. 22, 2015, 11:38 a.m. OK Python 3 TESTS 27 124 0 1700
5409944 yugle7 C Dec. 11, 2013, 2:34 p.m. OK Python 3 TESTS 27 124 0 1700
39267307 ashok123 C June 15, 2018, 1:22 p.m. OK Python 3 TESTS 27 186 102400 1700
37920648 homoeconomicus C May 6, 2018, 6:27 a.m. OK Python 3 TESTS 27 186 7065600 1700
42134103 Mk_Python_v1 C Aug. 26, 2018, 9:26 p.m. OK Python 3 TESTS 27 218 0 1700
58680026 LintuStorm C Aug. 12, 2019, 6:27 p.m. OK Python 3 TESTS 27 248 0 1700
31301967 Arthur57 C Oct. 14, 2017, 10:53 a.m. OK Python 3 TESTS 27 342 0 1700

remove filters

Back to search problems