Codeforces Beta Round 52 (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
56 Codeforces Beta Round 52 (Div. 2) FINISHED False 7200 436196999 Jan. 21, 2011, 4:10 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1172 ) C Corporation Mail PROGRAMMING data structures expression parsing implementation 1800

B"The Beroil corporation structure is hierarchical, that is it can be represented as a tree. Let's examine the presentation of this structure as follows: That is, the description of each employee consists of his name, a colon (:), the descriptions of all his subordinates separated by commas, and, finally, a dot. If an employee has no subordinates, then the colon is not present in his description. For example, line MIKE:MAX.,ARTEM:MIKE..,DMITRY:DMITRY.,DMITRY... is the correct way of recording the structure of a corporation where the director MIKE has subordinates MAX, ARTEM and DMITRY. ARTEM has a subordinate whose name is MIKE, just as the name of his boss and two subordinates of DMITRY are called DMITRY, just like himself. In the Beroil corporation every employee can only correspond with his subordinates, at that the subordinates are not necessarily direct. Let's call an uncomfortable situation the situation when a person whose name is s writes a letter to another person whose name is also s. In the example given above are two such pairs: a pair involving MIKE, and two pairs for DMITRY (a pair for each of his subordinates). Your task is by the given structure of the corporation to find the number of uncomfortable pairs in it. The first and single line contains the corporation structure which is a string of length from 1 to 1000 characters. It is guaranteed that the description is correct. Every name is a string consisting of capital Latin letters from 1 to 10 symbols in length. Print a single number -- the number of uncomfortable situations in the company."...

Tutorials

CodeForces Beta Round #52 :: Разбор задач

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3015462 AleksanderBalobanov C Jan. 27, 2013, 8:43 a.m. OK Delphi TESTS 37 15 102400 1800
473403 Mazeev C May 31, 2011, 1:05 p.m. OK Delphi TESTS 37 30 921600 1800
266667 mihaha C Jan. 28, 2011, 11:29 a.m. OK Delphi TESTS 37 30 921600 1800
266666 mihaha C Jan. 28, 2011, 11:23 a.m. OK Delphi TESTS 37 30 921600 1800
258420 Anka C Jan. 21, 2011, 5:45 p.m. OK Delphi TESTS 37 30 921600 1800
258279 ErzhanDS C Jan. 21, 2011, 5:31 p.m. OK Delphi TESTS 37 30 921600 1800
258242 fdoer C Jan. 21, 2011, 5:28 p.m. OK Delphi TESTS 37 30 921600 1800
259421 alexander-nsk94 C Jan. 22, 2011, 10:10 a.m. OK Delphi TESTS 37 30 1945600 1800
258196 agul C Jan. 21, 2011, 5:23 p.m. OK Delphi TESTS 37 30 1945600 1800
258186 cvb C Jan. 21, 2011, 5:23 p.m. OK Delphi TESTS 37 30 1945600 1800
1175747 aslan95 C Feb. 13, 2012, 3:13 p.m. OK FPC TESTS 37 30 1024000 1800
258095 Denor C Jan. 21, 2011, 5:15 p.m. OK FPC TESTS 37 30 1228800 1800
258839 vlad107 C Jan. 21, 2011, 8:06 p.m. OK FPC TESTS 37 30 1331200 1800
258382 koder_dima C Jan. 21, 2011, 5:41 p.m. OK FPC TESTS 37 30 1331200 1800
257766 Oryshych C Jan. 21, 2011, 4:54 p.m. OK FPC TESTS 37 30 1331200 1800
257222 vlad107 C Jan. 21, 2011, 4:32 p.m. OK FPC TESTS 37 30 1331200 1800
257193 Sereja C Jan. 21, 2011, 4:32 p.m. OK FPC TESTS 37 30 1331200 1800
2153536 i14 C Sept. 12, 2012, 11:45 a.m. OK FPC TESTS 37 30 1536000 1800
1913854 Rosetta C July 20, 2012, 10:56 a.m. OK FPC TESTS 37 30 1536000 1800
258120 Petrushenko C Jan. 21, 2011, 5:18 p.m. OK FPC TESTS 37 30 1536000 1800
1126705 mage C Jan. 30, 2012, 10:37 a.m. OK GNU C TESTS 37 30 1433600 1800
258447 premprakash C Jan. 21, 2011, 5:49 p.m. OK GNU C++ TESTS 37 10 1331200 1800
1074090 Sayakiss C Jan. 17, 2012, 2:40 p.m. OK GNU C++ TESTS 37 10 1433600 1800
487222 251083874 C June 14, 2011, 6:27 a.m. OK GNU C++ TESTS 37 10 1433600 1800
299373 HRM C Feb. 22, 2011, 7:35 p.m. OK GNU C++ TESTS 37 10 1433600 1800
3558968 juancate C April 18, 2013, 5:38 a.m. OK GNU C++ TESTS 37 15 102400 1800
3480463 Sh_Nur C April 6, 2013, 4:05 p.m. OK GNU C++ TESTS 37 15 102400 1800
3314362 1O1 C March 14, 2013, 6:49 a.m. OK GNU C++ TESTS 37 15 102400 1800
3172764 dr.ikros C Feb. 22, 2013, 2:54 p.m. OK GNU C++ TESTS 37 15 102400 1800
3172672 dr.ikros C Feb. 22, 2013, 2:36 p.m. OK GNU C++ TESTS 37 15 102400 1800
2874096 igorwr C Jan. 4, 2013, 6:25 p.m. OK GNU C++ TESTS 37 15 102400 1800
10174543 chrome C March 6, 2015, 8:51 a.m. OK GNU C++0x TESTS 37 30 0 1800
9820775 heba_gamal C Feb. 13, 2015, 9:26 p.m. OK GNU C++0x TESTS 37 30 0 1800
8775352 Plumrain C Nov. 21, 2014, 3:17 p.m. OK GNU C++0x TESTS 37 30 102400 1800
8743284 hakobyan.tigran C Nov. 18, 2014, 8:05 a.m. OK GNU C++0x TESTS 37 30 102400 1800
7341812 xiaohao123 C Aug. 4, 2014, 5:02 a.m. OK GNU C++0x TESTS 37 30 102400 1800
6369727 marat.snowbear C April 15, 2014, 6:17 p.m. OK GNU C++0x TESTS 37 30 102400 1800
8775626 Plumrain C Nov. 21, 2014, 3:43 p.m. OK GNU C++0x TESTS 37 30 204800 1800
7040466 wanbo C July 7, 2014, 11:48 a.m. OK GNU C++0x TESTS 37 30 204800 1800
7816144 Elibay C Sept. 17, 2014, 9:03 a.m. OK GNU C++0x TESTS 37 30 307200 1800
655096 Archon.JK C Sept. 1, 2011, 5:51 p.m. OK GNU C++0x TESTS 37 30 1433600 1800
32154891 _._____..._____ C Nov. 9, 2017, 10:21 a.m. OK GNU C++11 TESTS 37 30 0 1800
32078026 edisonhello C Nov. 5, 2017, 2:07 p.m. OK GNU C++11 TESTS 37 30 0 1800
32074728 vjudge4 C Nov. 5, 2017, 11:30 a.m. OK GNU C++11 TESTS 37 30 0 1800
32074717 alirezabgi C Nov. 5, 2017, 11:29 a.m. OK GNU C++11 TESTS 37 30 0 1800
29512820 jvj_iit C Aug. 16, 2017, 7:26 p.m. OK GNU C++11 TESTS 37 30 0 1800
27392869 Bengal_Tiger C May 27, 2017, 3:41 p.m. OK GNU C++11 TESTS 37 30 0 1800
27014351 artur.socha C May 11, 2017, 1:34 p.m. OK GNU C++11 TESTS 37 30 0 1800
22641468 20133707 C Dec. 1, 2016, 2:15 p.m. OK GNU C++11 TESTS 37 30 0 1800
20557456 aka.Sohieb C Sept. 12, 2016, 10:22 p.m. OK GNU C++11 TESTS 37 30 0 1800
19294741 haleyk100198 C July 21, 2016, 6:23 a.m. OK GNU C++11 TESTS 37 30 0 1800
32574926 AngelKnows C Nov. 23, 2017, 12:27 p.m. OK GNU C++14 TESTS 37 30 0 1800
32334841 erfanesm C Nov. 15, 2017, 2:45 p.m. OK GNU C++14 TESTS 37 30 0 1800
32334833 vjudge1 C Nov. 15, 2017, 2:45 p.m. OK GNU C++14 TESTS 37 30 0 1800
32334780 the_zart_of_the_goat C Nov. 15, 2017, 2:42 p.m. OK GNU C++14 TESTS 37 30 0 1800
32225527 NullByte C Nov. 11, 2017, 4:40 p.m. OK GNU C++14 TESTS 37 30 0 1800
32078292 Rtn_e C Nov. 5, 2017, 2:20 p.m. OK GNU C++14 TESTS 37 30 0 1800
32077984 vjudge5 C Nov. 5, 2017, 2:04 p.m. OK GNU C++14 TESTS 37 30 0 1800
27713923 Ahmed_Mostafa C June 11, 2017, 2:56 a.m. OK GNU C++14 TESTS 37 30 0 1800
27197728 wewark C May 18, 2017, 1:35 p.m. OK GNU C++14 TESTS 37 30 0 1800
22026890 LSY_is_retired C Nov. 4, 2016, 4:49 a.m. OK GNU C++14 TESTS 37 30 0 1800
50485497 vjudge1 C Feb. 25, 2019, 11:20 a.m. OK GNU C++17 TESTS 37 30 204800 1800
39341900 verngutz C June 17, 2018, 6:42 p.m. OK GNU C++17 TESTS 37 30 204800 1800
41453646 Photon_ C Aug. 11, 2018, 5:17 a.m. OK GNU C++17 TESTS 37 60 102400 1800
54914788 Left_utkarsh C June 1, 2019, 1:07 p.m. OK GNU C++17 TESTS 37 60 204800 1800
39131012 k3nz0 C June 10, 2018, 8:04 p.m. OK GNU C++17 TESTS 37 60 204800 1800
48414714 vjudge4 C Jan. 15, 2019, 9:43 a.m. OK GNU C++17 TESTS 37 60 307200 1800
60159021 mrsac7 C Sept. 6, 2019, 8:11 a.m. OK GNU C++17 TESTS 37 62 0 1800
59444169 shikhar7s C Aug. 25, 2019, 12:34 p.m. OK GNU C++17 TESTS 37 62 0 1800
58927890 moss3s C Aug. 16, 2019, 8:50 p.m. OK GNU C++17 TESTS 37 62 0 1800
57816894 sochta_hun C July 26, 2019, 8:13 p.m. OK GNU C++17 TESTS 37 62 0 1800
3193147 U_E_D C Feb. 25, 2013, 6:21 a.m. OK Haskell TESTS 37 15 0 1800
258565 Vintik C Jan. 21, 2011, 6:01 p.m. OK Haskell TESTS 37 30 1536000 1800
258307 slycelote C Jan. 21, 2011, 5:34 p.m. OK Haskell TESTS 37 30 1536000 1800
469041 rexim C May 24, 2011, 9:12 a.m. OK Haskell TESTS 37 30 2048000 1800
430554 cake C May 4, 2011, 10:09 a.m. OK Haskell TESTS 37 30 2048000 1800
331711 enots C March 12, 2011, 3:55 p.m. OK Haskell TESTS 37 30 2048000 1800
610017 tux1986 C Aug. 13, 2011, 11:44 p.m. OK Java 6 TESTS 37 80 34918400 1800
261371 Di735 C Jan. 25, 2011, 6:44 a.m. OK Java 6 TESTS 37 80 43417600 1800
258809 dalex C Jan. 21, 2011, 7:54 p.m. OK Java 6 TESTS 37 80 43417600 1800
258434 bohuss C Jan. 21, 2011, 5:47 p.m. OK Java 6 TESTS 37 80 43417600 1800
258110 Mohannad C Jan. 21, 2011, 5:17 p.m. OK Java 6 TESTS 37 80 43417600 1800
257897 wistful23 C Jan. 21, 2011, 5:01 p.m. OK Java 6 TESTS 37 80 43417600 1800
257871 aksonov C Jan. 21, 2011, 5 p.m. OK Java 6 TESTS 37 80 43417600 1800
257541 SergeyLazarev C Jan. 21, 2011, 4:43 p.m. OK Java 6 TESTS 37 80 43417600 1800
257164 Egor C Jan. 21, 2011, 4:31 p.m. OK Java 6 TESTS 37 80 43417600 1800
256970 niyaznigmatul C Jan. 21, 2011, 4:25 p.m. OK Java 6 TESTS 37 80 43417600 1800
2050405 jiangzhijie C Aug. 26, 2012, 2:36 p.m. OK Java 7 TESTS 37 90 46694400 1800
13228769 hadrianang C Sept. 26, 2015, 7:14 a.m. OK Java 7 TESTS 37 154 0 1800
13228667 veeann C Sept. 26, 2015, 7:05 a.m. OK Java 7 TESTS 37 154 0 1800
8620398 vjudge3 C Nov. 9, 2014, 6:41 a.m. OK Java 7 TESTS 37 154 0 1800
8165065 I_love_Malika C Oct. 10, 2014, 11:57 a.m. OK Java 7 TESTS 37 154 0 1800
8165060 coolmaksat C Oct. 10, 2014, 11:57 a.m. OK Java 7 TESTS 37 154 0 1800
5705042 Zyflair C Jan. 16, 2014, 7:34 p.m. OK Java 7 TESTS 37 154 0 1800
17317756 alibaba C April 14, 2016, 5:11 p.m. OK Java 7 TESTS 37 218 0 1800
16849979 xiaowuc1 C March 21, 2016, 4:54 a.m. OK Java 7 TESTS 37 278 39219200 1800
58462840 adityagupta1089 C Aug. 8, 2019, 5:35 p.m. OK Java 8 TESTS 37 218 0 1800
47662226 KulikAlex C Dec. 28, 2018, 7:48 p.m. OK Java 8 TESTS 37 218 0 1800
13229495 yona C Sept. 26, 2015, 8:23 a.m. OK Java 8 TESTS 37 218 0 1800
13104246 di_halt C Sept. 19, 2015, 3:41 p.m. OK Java 8 TESTS 37 218 0 1800
13104012 di_halt C Sept. 19, 2015, 3:26 p.m. OK Java 8 TESTS 37 218 0 1800
23788244 Marinkovic C Jan. 13, 2017, 4:01 p.m. OK Java 8 TESTS 37 218 20582400 1800
18048213 Yury_Bandarchuk C May 23, 2016, 8:37 p.m. OK Java 8 TESTS 37 218 20582400 1800
53056892 Verdusk C April 20, 2019, 6:05 p.m. OK Java 8 TESTS 37 248 0 1800
53056674 Verdusk C April 20, 2019, 5:56 p.m. OK Java 8 TESTS 37 248 0 1800
42281989 WisdenCoder sooraj10 C Aug. 30, 2018, 2:44 p.m. OK Java 8 TESTS 37 248 0 1800
6327232 Eeyore C April 11, 2014, 6:22 p.m. OK JavaScript TESTS 37 60 204800 1800
274785 valker.rus C Feb. 4, 2011, 8:56 a.m. OK Mono C# TESTS 37 130 5529600 1800
309157 Utka C Feb. 28, 2011, 2:54 a.m. OK Mono C# TESTS 37 130 5734400 1800
257537 tanzaku C Jan. 21, 2011, 4:42 p.m. OK Mono C# TESTS 37 130 5836800 1800
6971012 evilkrauzer C June 27, 2014, 4:59 p.m. OK Mono C# TESTS 37 186 204800 1800
257943 Hadi_Asiaie C Jan. 21, 2011, 5:04 p.m. OK Mono C# TESTS 37 220 6758400 1800
27524402 fr0st C June 2, 2017, 1:19 p.m. OK MS C# TESTS 37 92 102400 1800
23364147 og.kostya C Dec. 27, 2016, 5:33 p.m. OK MS C# TESTS 37 124 9523200 1800
5096037 k1nval koshka NutZ C Nov. 14, 2013, 10:05 a.m. OK MS C++ TESTS 37 0 0 1800
259182 MSGM C Jan. 22, 2011, 5:03 a.m. OK MS C++ TESTS 37 10 1331200 1800
3828739 abistrigova C June 6, 2013, 5:09 p.m. OK MS C++ TESTS 37 15 204800 1800
5604652 aboulkheir C Jan. 2, 2014, 1:34 p.m. OK MS C++ TESTS 37 30 0 1800
14830143 jzwang C Dec. 16, 2015, 6:15 a.m. OK MS C++ TESTS 37 30 0 1800
11996711 yumakmc C July 10, 2015, 11:13 a.m. OK MS C++ TESTS 37 30 0 1800
8705770 kapitan C Nov. 15, 2014, 6:07 p.m. OK MS C++ TESTS 37 30 0 1800
7728512 andpar C Sept. 9, 2014, 1:26 p.m. OK MS C++ TESTS 37 30 0 1800
5785360 Schullz C Jan. 24, 2014, 1:48 p.m. OK MS C++ TESTS 37 30 0 1800
5092180 Yarko C Nov. 13, 2013, 6:56 p.m. OK MS C++ TESTS 37 30 102400 1800
50392970 mayakin C Feb. 23, 2019, 2:38 p.m. OK PHP TESTS 37 92 512000 1800
14705570 m7mdbadawy C Dec. 9, 2015, 2 a.m. OK PyPy 2 TESTS 37 186 102400 1800
37929528 Qumeric C May 6, 2018, 12:59 p.m. OK PyPy 3 TESTS 37 186 21401600 1800
3378021 atubo C March 22, 2013, 4:03 a.m. OK Python 2 TESTS 37 46 307200 1800
278676 insane C Feb. 11, 2011, 8:38 a.m. OK Python 2 TESTS 37 50 2764800 1800
988953 LGM C Dec. 27, 2011, 8:57 p.m. OK Python 2 TESTS 37 50 2867200 1800
988894 LGM C Dec. 27, 2011, 7:49 p.m. OK Python 2 TESTS 37 50 2867200 1800
512240 DDDDDDDDDDDDDDDDDDDDDDDD C June 27, 2011, 3:58 p.m. OK Python 2 TESTS 37 50 2867200 1800
512218 DDDDDDDDDDDDDDDDDDDDDDDD C June 27, 2011, 3:38 p.m. OK Python 2 TESTS 37 50 2867200 1800
266783 Zhuravlyov.A C Jan. 28, 2011, 3:01 p.m. OK Python 2 TESTS 37 60 2764800 1800
260042 -dp- C Jan. 22, 2011, 11:37 p.m. OK Python 2 TESTS 37 60 2764800 1800
260041 -dp- C Jan. 22, 2011, 11:34 p.m. OK Python 2 TESTS 37 60 2764800 1800
260038 -dp- C Jan. 22, 2011, 11:13 p.m. OK Python 2 TESTS 37 60 2764800 1800
13939853 step_by_step C Oct. 29, 2015, 7:55 p.m. OK Python 3 TESTS 37 124 0 1800
21246786 Amores C Oct. 6, 2016, 10:42 p.m. OK Python 3 TESTS 37 124 4608000 1800
42134118 Mk_Python_v1 C Aug. 26, 2018, 9:27 p.m. OK Python 3 TESTS 37 218 0 1800
58575546 mhorst C Aug. 11, 2019, 12:12 p.m. OK Python 3 TESTS 37 248 0 1800
267491 watashi C Jan. 29, 2011, 7:02 p.m. OK Ruby TESTS 37 80 3174400 1800

remove filters

Back to search problems