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 |
---|---|---|---|---|---|---|
1267 | 2019-2020 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 156639599 | Dec. 1, 2019, 7 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 4064 ) | B | Balls of Buma | PROGRAMMING | 1300 |
B"Balph is learning to play a game called Buma. In this game, he is given a row of colored balls. He has to choose the color of one new ball and the place to insert it (between two balls, or to the left of all the balls, or to the right of all the balls). When the ball is inserted the following happens repeatedly: if some segment of balls of the same color became longer as a result of a previous action and its length became at least 3 , then all the balls of this segment are eliminated. Consider, for example, a row of balls 'AAABBBWWBB'. Suppose Balph chooses a ball of color 'W' and the place to insert it after the sixth ball, i. e. to the left of the two 'W's. After Balph inserts this ball, the balls of color 'W' are eliminated, since this segment was made longer and has length 3 now, so the row becomes 'AAABBBBB'. The balls of color 'B' are eliminated now, because the segment of balls of color 'B' became longer and has length 5 now. Thus, the row becomes 'AAA'. However, none of the balls are eliminated now, because there is no elongated segment. Help Balph count the number of possible ways to choose a color of a new ball and a place to insert it that leads to the elimination of all the balls. The only line contains a non-empty string of uppercase English letters of length at most 3 cdot 10^5 . Each letter represents a ball with the corresponding color. Output the number of ways to choose a color and a position of a new ball in order to eliminate all the balls. "... |
nerc-2019-tutorial.pdf |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
66092093 | dblark | B | Dec. 1, 2019, 7:26 a.m. | OK | FPC | TESTS | 44 | 31 | 3891200 | 1300 | |
66107231 | YOK | B | Dec. 1, 2019, 8:56 a.m. | OK | GNU C11 | TESTS | 44 | 31 | 1843200 | 1300 | |
66092666 | 1180290009 | B | Dec. 1, 2019, 7:31 a.m. | OK | GNU C11 | TESTS | 44 | 31 | 2662400 | 1300 | |
66093264 | ElaineHuang | B | Dec. 1, 2019, 7:35 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 102400 | 1300 | |
66101275 | nwi | B | Dec. 1, 2019, 8:30 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 102400 | 1300 | |
66090947 | gyh20 | B | Dec. 1, 2019, 7:16 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 307200 | 1300 | |
66090699 | Ra16bit | B | Dec. 1, 2019, 7:13 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 307200 | 1300 | |
66092177 | Tinsane I.Smirn0ff | B | Dec. 1, 2019, 7:27 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 307200 | 1300 | |
66091413 | charlieyan Buzhibujue KillerX | B | Dec. 1, 2019, 7:21 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 307200 | 1300 | |
66116126 | ovidiupita | B | Dec. 1, 2019, 9:51 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 1024000 | 1300 | |
66091404 | gabilash1104 jnarutoj harshkirat | B | Dec. 1, 2019, 7:21 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 1024000 | 1300 | |
66090731 | Krain233 Lanly Serval | B | Dec. 1, 2019, 7:14 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 1638400 | 1300 | |
66090729 | Daniel_yuan Imakf lzx_zrl | B | Dec. 1, 2019, 7:14 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 1638400 | 1300 | |
66090394 | tEMMIE.w. apiadu MiFaFaOvO | B | Dec. 1, 2019, 7:07 a.m. | OK | GNU C++14 | TESTS | 44 | 30 | 1024000 | 1300 | |
66091418 | tokitsukaze | B | Dec. 1, 2019, 7:22 a.m. | OK | GNU C++14 | TESTS | 44 | 30 | 2252800 | 1300 | |
66092183 | ish.ranga11 param98 tibrewalpratik17 | B | Dec. 1, 2019, 7:27 a.m. | OK | GNU C++14 | TESTS | 44 | 30 | 4198400 | 1300 | |
66092829 | NeverCodeHungry NewRules Pi-nan | B | Dec. 1, 2019, 7:33 a.m. | OK | GNU C++14 | TESTS | 44 | 30 | 7372800 | 1300 | |
66091398 | 975678774 xyw5vplus1 CoolKey | B | Dec. 1, 2019, 7:21 a.m. | OK | GNU C++14 | TESTS | 44 | 31 | 307200 | 1300 | |
66091177 | DepthFirstSearch | B | Dec. 1, 2019, 7:18 a.m. | OK | GNU C++14 | TESTS | 44 | 31 | 307200 | 1300 | |
66094101 | That_Shy Irene | B | Dec. 1, 2019, 7:42 a.m. | OK | GNU C++14 | TESTS | 44 | 31 | 307200 | 1300 | |
66094262 | nysanier | B | Dec. 1, 2019, 7:45 a.m. | OK | GNU C++14 | TESTS | 44 | 31 | 307200 | 1300 | |
66090770 | Nyatl morojenoe nbak | B | Dec. 1, 2019, 7:14 a.m. | OK | GNU C++14 | TESTS | 44 | 31 | 409600 | 1300 | |
66107150 | IdentityTheftIsNotAJoke Addy | B | Dec. 1, 2019, 8:55 a.m. | OK | GNU C++14 | TESTS | 44 | 31 | 1024000 | 1300 | |
66090515 | myworld kr1210 HiedanoAkyuu | B | Dec. 1, 2019, 7:10 a.m. | OK | GNU C++17 | TESTS | 44 | 15 | 307200 | 1300 | |
66116145 | Anubis | B | Dec. 1, 2019, 9:51 a.m. | OK | GNU C++17 | TESTS | 44 | 30 | 307200 | 1300 | |
66092075 | evenharder SUDAL SoulTch | B | Dec. 1, 2019, 7:26 a.m. | OK | GNU C++17 | TESTS | 44 | 30 | 2150400 | 1300 | |
66093235 | LeiviniaBirdway mblazev aryanc403 | B | Dec. 1, 2019, 7:34 a.m. | OK | GNU C++17 | TESTS | 44 | 30 | 2355200 | 1300 | |
66091744 | Mahdi_Shokoufi N.N_2004 This0is0the0end | B | Dec. 1, 2019, 7:24 a.m. | OK | GNU C++17 | TESTS | 44 | 30 | 2662400 | 1300 | |
66090443 | ainta tlwpdus molamola. | B | Dec. 1, 2019, 7:08 a.m. | OK | GNU C++17 | TESTS | 44 | 30 | 2764800 | 1300 | |
66092830 | MesutZ badcw Verly | B | Dec. 1, 2019, 7:33 a.m. | OK | GNU C++17 | TESTS | 44 | 30 | 2969600 | 1300 | |
66092231 | situ | B | Dec. 1, 2019, 7:28 a.m. | OK | GNU C++17 | TESTS | 44 | 30 | 4198400 | 1300 | |
66093356 | CodingKnight | B | Dec. 1, 2019, 7:36 a.m. | OK | GNU C++17 | TESTS | 44 | 30 | 4198400 | 1300 | |
66092249 | kalpitk vntshh kr_abhinav | B | Dec. 1, 2019, 7:28 a.m. | OK | GNU C++17 | TESTS | 44 | 30 | 7372800 | 1300 | |
66096287 | LightRay curly mashinist | B | Dec. 1, 2019, 8 a.m. | OK | Java 8 | TESTS | 44 | 124 | 0 | 1300 | |
66093382 | mufaddalnaya | B | Dec. 1, 2019, 7:37 a.m. | OK | Java 8 | TESTS | 44 | 124 | 0 | 1300 | |
66091309 | fetetriste | B | Dec. 1, 2019, 7:20 a.m. | OK | Java 8 | TESTS | 44 | 124 | 0 | 1300 | |
66100763 | Nutella3000 | B | Dec. 1, 2019, 8:21 a.m. | OK | Java 8 | TESTS | 44 | 140 | 0 | 1300 | |
66097142 | monsterr | B | Dec. 1, 2019, 8:03 a.m. | OK | Java 8 | TESTS | 44 | 140 | 819200 | 1300 | |
66091356 | KharYusuf | B | Dec. 1, 2019, 7:20 a.m. | OK | Java 8 | TESTS | 44 | 140 | 3481600 | 1300 | |
66091011 | jjluczyn | B | Dec. 1, 2019, 7:17 a.m. | OK | Java 8 | TESTS | 44 | 140 | 3686400 | 1300 | |
66098479 | Dsxv niti_n_n_itin prem_cse | B | Dec. 1, 2019, 8:12 a.m. | OK | Java 8 | TESTS | 44 | 187 | 921600 | 1300 | |
66092147 | knightL | B | Dec. 1, 2019, 7:27 a.m. | OK | Kotlin | TESTS | 44 | 171 | 102400 | 1300 | |
66115650 | Spheniscine | B | Dec. 1, 2019, 9:41 a.m. | OK | Kotlin | TESTS | 44 | 171 | 2867200 | 1300 | |
66090695 | peregrinus BrainFreeze | B | Dec. 1, 2019, 7:13 a.m. | OK | Mono C# | TESTS | 44 | 93 | 75059200 | 1300 | |
66093464 | m1trand1r NoiseLess Dmitrenko | B | Dec. 1, 2019, 7:38 a.m. | OK | MS C++ 2017 | TESTS | 44 | 31 | 921600 | 1300 | |
66095203 | tahtarovserver | B | Dec. 1, 2019, 7:52 a.m. | OK | MS C++ 2017 | TESTS | 44 | 31 | 3584000 | 1300 | |
66129101 | Mithridat | B | Dec. 1, 2019, 10:41 a.m. | OK | MS C++ 2017 | TESTS | 44 | 46 | 3993600 | 1300 | |
66109637 | SinKing | B | Dec. 1, 2019, 9:19 a.m. | OK | PyPy 3 | TESTS | 44 | 233 | 23142400 | 1300 | |
66093224 | manish_joshi satyamcse nikeshthapa255 | B | Dec. 1, 2019, 7:34 a.m. | OK | PyPy 3 | TESTS | 44 | 233 | 29593600 | 1300 | |
66118506 | zgonnikov | B | Dec. 1, 2019, 10 a.m. | OK | PyPy 3 | TESTS | 44 | 234 | 24473600 | 1300 | |
66092179 | indrajit1 souradeep.99 its_aks_ulure | B | Dec. 1, 2019, 7:27 a.m. | OK | PyPy 3 | TESTS | 44 | 420 | 20582400 | 1300 | |
66096176 | ashlobo247 karry0298 nchack | B | Dec. 1, 2019, 7:58 a.m. | OK | Python 3 | TESTS | 44 | 249 | 3174400 | 1300 | |
66109605 | luismriq | B | Dec. 1, 2019, 9:18 a.m. | OK | Python 3 | TESTS | 44 | 326 | 11980800 | 1300 | |
66105638 | icelemon | B | Dec. 1, 2019, 8:50 a.m. | OK | Python 3 | TESTS | 44 | 327 | 1024000 | 1300 | |
66093988 | Waiting | B | Dec. 1, 2019, 7:40 a.m. | OK | Python 3 | TESTS | 44 | 327 | 11878400 | 1300 | |
66107372 | mstr_shifu | B | Dec. 1, 2019, 8:59 a.m. | OK | Python 3 | TESTS | 44 | 342 | 12697600 | 1300 | |
66094238 | aliakbar09a | B | Dec. 1, 2019, 7:44 a.m. | OK | Python 3 | TESTS | 44 | 405 | 11161600 | 1300 | |
66101040 | julian.fortin | B | Dec. 1, 2019, 8:26 a.m. | OK | Python 3 | TESTS | 44 | 436 | 11878400 | 1300 |
Back to search problems