Codeforces Beta Round 40 (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
41 Codeforces Beta Round 40 (Div. 2) FINISHED False 7200 442591199 Nov. 8, 2010, 4 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3767 ) C Email address PROGRAMMING expression parsing implementation 1400

B"Sometimes one has to spell email addresses over the phone. Then one usually pronounces a dot as dot, an at sign as at. As a result, we get something like vasyaatgmaildotcom. Your task is to transform it into a proper email address (vasya@gmail.com). It is known that a proper email address contains only such symbols as . @ and lower-case Latin letters, doesn't start with and doesn't end with a dot. Also, a proper email address doesn't start with and doesn't end with an at sign. Moreover, an email address contains exactly one such symbol as @, yet may contain any number (possible, zero) of dots. You have to carry out a series of replacements so that the length of the result was as short as possible and it was a proper email address. If the lengths are equal, you should print the lexicographically minimal result. Overall, two variants of replacement are possible: dot can be replaced by a dot, at can be replaced by an at. The first line contains the email address description. It is guaranteed that that is a proper email address with all the dots replaced by dot an the at signs replaced by at. The line is not empty and its length does not exceed 100 symbols. Print the shortest email address, from which the given line could be made by the described above replacements. If there are several solutions to that problem, print the lexicographically minimal one (the lexicographical comparison of the lines are implemented with an operator < in modern programming languages). In the ASCII table the symbols go in this order: . @ ab...z"...

Tutorials

Codeforces Beta Round #40 Mini-Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
41958902 Mikejacksao C Aug. 22, 2018, 8:18 a.m. OK Clang++17 Diagnostics TESTS 52 92 1024000 1400
16667383 prosmgeorg C March 12, 2016, 7:15 a.m. OK FPC TESTS 52 62 0 1400
41004890 ReaLNero1 C July 31, 2018, 9:09 a.m. OK FPC TESTS 52 62 204800 1400
20973513 AsifAhmed C Sept. 28, 2016, 4:27 p.m. OK GNU C TESTS 52 30 0 1400
33903423 Md-Mehedi C Jan. 4, 2018, 12:54 p.m. OK GNU C TESTS 52 30 1843200 1400
25536192 theintelligentboy C March 16, 2017, 1:18 a.m. OK GNU C TESTS 52 30 1945600 1400
17917578 ekrem C May 15, 2016, 9:26 a.m. OK GNU C TESTS 52 30 2048000 1400
17904940 Jakymoon C May 14, 2016, 11:58 a.m. OK GNU C TESTS 52 30 2048000 1400
16825911 hardiknegi C March 19, 2016, 7:06 p.m. OK GNU C TESTS 52 62 2048000 1400
30661425 Todd2017 C Sept. 24, 2017, 9:31 a.m. OK GNU C++ TESTS 52 30 0 1400
30643958 alizhou C Sept. 23, 2017, 2:03 p.m. OK GNU C++ TESTS 52 30 0 1400
30643567 wangyaming C Sept. 23, 2017, 1:49 p.m. OK GNU C++ TESTS 52 30 0 1400
30643083 esone1 C Sept. 23, 2017, 1:36 p.m. OK GNU C++ TESTS 52 30 0 1400
32373694 Patrick_y C Nov. 17, 2017, 9:10 a.m. OK GNU C++ TESTS 52 30 0 1400
30414969 happysam C Sept. 17, 2017, 9:05 a.m. OK GNU C++ TESTS 52 30 0 1400
30414889 happysam C Sept. 17, 2017, 9:01 a.m. OK GNU C++ TESTS 52 30 0 1400
30414838 happysam C Sept. 17, 2017, 8:59 a.m. OK GNU C++ TESTS 52 30 0 1400
30412927 happysam C Sept. 17, 2017, 8:01 a.m. OK GNU C++ TESTS 52 30 0 1400
30415822 hjx_bravery C Sept. 17, 2017, 9:35 a.m. OK GNU C++ TESTS 52 30 0 1400
25536206 vjudge4 C March 16, 2017, 1:20 a.m. OK GNU C11 TESTS 52 30 1843200 1400
65679825 raresmihai01 C Nov. 24, 2019, 7:24 p.m. OK GNU C11 TESTS 52 62 0 1400
65531455 Razvan2000f C Nov. 22, 2019, 12:36 p.m. OK GNU C11 TESTS 52 62 0 1400
64531912 kaiboy C Nov. 8, 2019, 3:42 p.m. OK GNU C11 TESTS 52 62 0 1400
59417458 rainboy C Aug. 24, 2019, 7 p.m. OK GNU C11 TESTS 52 62 0 1400
30410187 lixiang C Sept. 17, 2017, 5:52 a.m. OK GNU C++11 TESTS 52 30 0 1400
29954133 CLown1331 C Aug. 31, 2017, 3:45 p.m. OK GNU C++11 TESTS 52 30 0 1400
29954108 CLown1331 C Aug. 31, 2017, 3:43 p.m. OK GNU C++11 TESTS 52 30 0 1400
29941238 CLown1331 C Aug. 31, 2017, 11:47 a.m. OK GNU C++11 TESTS 52 30 0 1400
29782527 alooochaat1998 C Aug. 25, 2017, 2 p.m. OK GNU C++11 TESTS 52 30 0 1400
38460628 mango123 C May 20, 2018, 1:11 p.m. OK GNU C++11 TESTS 52 30 0 1400
32552984 Rtn_e C Nov. 22, 2017, 2:09 p.m. OK GNU C++11 TESTS 52 30 0 1400
32532494 Smaug C Nov. 21, 2017, 5:45 p.m. OK GNU C++11 TESTS 52 30 0 1400
31223697 robolution.dark C Oct. 11, 2017, 5:24 p.m. OK GNU C++11 TESTS 52 30 0 1400
30501422 sunsy C Sept. 19, 2017, 2:36 p.m. OK GNU C++11 TESTS 52 30 0 1400
30788745 Hassanosama C Sept. 27, 2017, 8:30 p.m. OK GNU C++14 TESTS 52 30 0 1400
48436240 aldoraine C Jan. 15, 2019, 8:42 p.m. OK GNU C++14 TESTS 52 30 0 1400
44931422 shifanyiakioi C Oct. 27, 2018, 2:01 a.m. OK GNU C++14 TESTS 52 30 0 1400
44931189 panmotian_2018 C Oct. 27, 2018, 1:49 a.m. OK GNU C++14 TESTS 52 30 0 1400
39064930 Shivendra_420 C June 9, 2018, 9:12 a.m. OK GNU C++14 TESTS 52 30 0 1400
32560122 Atreus C Nov. 22, 2017, 7:25 p.m. OK GNU C++14 TESTS 52 30 0 1400
32199261 Demerzel_wyh C Nov. 10, 2017, 3:37 p.m. OK GNU C++14 TESTS 52 30 0 1400
31971113 HBK_Wasi C Nov. 2, 2017, 7:42 a.m. OK GNU C++14 TESTS 52 30 0 1400
31107966 Amlosman C Oct. 7, 2017, 9:19 a.m. OK GNU C++14 TESTS 52 30 0 1400
30857392 Dragon_162 C Sept. 30, 2017, 7:12 a.m. OK GNU C++14 TESTS 52 30 0 1400
41809575 monarch.130 C Aug. 19, 2018, 1:56 a.m. OK GNU C++17 TESTS 52 30 0 1400
45082640 dmkozyrev C Oct. 30, 2018, 4:40 a.m. OK GNU C++17 TESTS 52 30 204800 1400
47453398 vjudge3 C Dec. 24, 2018, 11:09 a.m. OK GNU C++17 TESTS 52 30 1024000 1400
48518563 vjudge4 C Jan. 18, 2019, 5:45 a.m. OK GNU C++17 TESTS 52 30 1024000 1400
38091290 Fade221 C May 10, 2018, 12:54 p.m. OK GNU C++17 TESTS 52 30 3379200 1400
38097424 Laith98 C May 10, 2018, 4:50 p.m. OK GNU C++17 TESTS 52 30 3379200 1400
37977057 MrPoJ C May 6, 2018, 6:03 p.m. OK GNU C++17 TESTS 52 30 3481600 1400
38102653 deadRabbit C May 10, 2018, 11:22 p.m. OK GNU C++17 TESTS 52 30 4403200 1400
53960767 ou98 C May 10, 2019, 2:02 p.m. OK GNU C++17 TESTS 52 60 0 1400
58987584 landcold7 C Aug. 18, 2019, 7:49 a.m. OK GNU C++17 TESTS 52 60 0 1400
17023439 Conioooo C March 29, 2016, 5:08 p.m. OK Java 7 TESTS 52 248 39321600 1400
17976340 wonkyoung711 C May 18, 2016, 8:01 a.m. OK Java 7 TESTS 52 280 39424000 1400
25302782 pitfall C March 6, 2017, 8:30 p.m. OK Java 8 TESTS 52 216 20582400 1400
47277103 OfTheSharingan C Dec. 19, 2018, 8:06 p.m. OK Java 8 TESTS 52 218 0 1400
22783614 mehdimaick C Dec. 7, 2016, 11:10 a.m. OK Java 8 TESTS 52 218 20172800 1400
25184144 justinrai C March 3, 2017, 6:21 p.m. OK Java 8 TESTS 52 218 20480000 1400
27941937 tomdmitriev C June 21, 2017, 9:17 a.m. OK Java 8 TESTS 52 218 20582400 1400
25019084 Dexter420 C Feb. 25, 2017, 5:30 p.m. OK Java 8 TESTS 52 218 20582400 1400
69842661 sakt_coder C Jan. 30, 2020, 1:34 p.m. OK Java 8 TESTS 52 248 0 1400
45257295 zodiacleo C Nov. 3, 2018, 8:50 p.m. OK Java 8 TESTS 52 248 0 1400
40032726 Mazen_Tarek C July 6, 2018, 2:20 p.m. OK Java 8 TESTS 52 248 0 1400
32270845 Kammola C Nov. 12, 2017, 7:11 p.m. OK Java 8 TESTS 52 248 0 1400
47485779 moss3s C Dec. 25, 2018, 8:33 a.m. OK Kotlin TESTS 52 310 1228800 1400
50537014 Keti13 C Feb. 26, 2019, 4:12 p.m. OK Mono C# TESTS 52 92 0 1400
49597658 Antony_w C Feb. 7, 2019, 3:37 p.m. OK Mono C# TESTS 52 124 0 1400
40474132 Skndr801 C July 17, 2018, 11 a.m. OK Mono C# TESTS 52 124 0 1400
16611991 Andark C March 9, 2016, 6:08 a.m. OK MS C# TESTS 52 92 102400 1400
28871390 Mem C July 25, 2017, 9:21 a.m. OK MS C# TESTS 52 92 9318400 1400
28282589 HikeNoAce C July 4, 2017, 2:12 p.m. OK MS C# TESTS 52 92 9318400 1400
16538926 og.kostya C March 5, 2016, 5:59 p.m. OK MS C# TESTS 52 122 102400 1400
27559239 dby C June 4, 2017, 8:58 a.m. OK MS C++ TESTS 52 30 0 1400
22145420 mhmod C Nov. 10, 2016, 9:39 a.m. OK MS C++ TESTS 52 30 0 1400
20760372 customer101 C Sept. 19, 2016, 4:23 p.m. OK MS C++ TESTS 52 30 0 1400
26818950 Tampere C May 3, 2017, 12:49 p.m. OK MS C++ TESTS 52 30 2048000 1400
34297391 duongbp1990 C Jan. 19, 2018, 9 a.m. OK MS C++ TESTS 52 30 2048000 1400
31476461 BEAR0131 C Oct. 18, 2017, 10:26 a.m. OK MS C++ TESTS 52 30 2048000 1400
30463942 chenyiheng C Sept. 18, 2017, 12:35 p.m. OK MS C++ TESTS 52 30 2048000 1400
24482521 vjudge5 C Feb. 7, 2017, 6:48 a.m. OK MS C++ TESTS 52 60 2048000 1400
18293383 AliaAbulhaerova C June 8, 2016, 4:48 a.m. OK MS C++ TESTS 52 60 2252800 1400
63657012 vjudge3 C Oct. 28, 2019, 1 p.m. OK MS C++ TESTS 52 62 0 1400
52421464 ArthVela C April 6, 2019, 5:18 p.m. OK MS C++ 2017 TESTS 52 62 0 1400
60721202 2018030401051 C Sept. 17, 2019, 12:26 p.m. OK MS C++ 2017 TESTS 52 62 0 1400
69811101 vjudge3 C Jan. 30, 2020, 4:24 a.m. OK MS C++ 2017 TESTS 52 62 307200 1400
61597520 nhatanh C Oct. 1, 2019, 9:27 a.m. OK PHP TESTS 52 92 0 1400
48467672 smnn C Jan. 16, 2019, 6:08 p.m. OK PyPy 3 TESTS 52 248 0 1400
56032811 RaghavS C June 25, 2019, 10:31 a.m. OK PyPy 3 TESTS 52 278 0 1400
67312865 SMMaster C Dec. 21, 2019, 4:13 a.m. OK PyPy 3 TESTS 52 280 0 1400
64796766 Margaret- C Nov. 13, 2019, 1:09 p.m. OK PyPy 3 TESTS 52 280 0 1400
63672995 singhpriyank C Oct. 28, 2019, 5:31 p.m. OK PyPy 3 TESTS 52 280 0 1400
61232825 vjudge2 C Sept. 24, 2019, 5:07 p.m. OK PyPy 3 TESTS 52 280 0 1400
24360559 Ferume C Feb. 2, 2017, 9:33 a.m. OK PyPy 3 TESTS 52 280 23142400 1400
56406581 Doctor-Venom C July 1, 2019, 7:45 p.m. OK PyPy 3 TESTS 52 310 0 1400
59600824 tushartyagi8750 C Aug. 28, 2019, 5:53 a.m. OK PyPy 3 TESTS 52 312 0 1400
63871566 AvinashKartik C Oct. 30, 2019, 5:41 p.m. OK PyPy 3 TESTS 52 342 512000 1400
32077876 Hahahahahahahhahaha C Nov. 5, 2017, 1:59 p.m. OK Python 2 TESTS 52 124 0 1400
20748129 Abhinav2107 C Sept. 19, 2016, 5:43 a.m. OK Python 2 TESTS 52 124 0 1400
18714469 tejas.pandey C June 25, 2016, 6:28 a.m. OK Python 2 TESTS 52 124 0 1400
35139245 vjudge5 C Feb. 10, 2018, 11:11 p.m. OK Python 2 TESTS 52 124 4608000 1400
45274123 ashashwat C Nov. 4, 2018, 10:05 a.m. OK Python 2 TESTS 52 498 5427200 1400
45274243 ashashwat C Nov. 4, 2018, 10:10 a.m. OK Python 2 TESTS 52 528 5427200 1400
21197500 Amores C Oct. 4, 2016, 10:14 p.m. OK Python 3 TESTS 52 124 0 1400
32951806 AlessiaH C Dec. 5, 2017, 3:10 p.m. OK Python 3 TESTS 52 124 5529600 1400
28015692 arpit040199 C June 25, 2017, 4:39 a.m. OK Python 3 TESTS 52 124 5529600 1400
35072581 rahman.mammadov C Feb. 8, 2018, 9:16 p.m. OK Python 3 TESTS 52 124 5632000 1400
25365824 decoder123 C March 9, 2017, 5:36 p.m. OK Python 3 TESTS 52 154 4608000 1400
17394422 z423x5c6 C April 20, 2016, 4:02 a.m. OK Python 3 TESTS 52 154 5120000 1400
24363329 kadil_007 C Feb. 2, 2017, 11:55 a.m. OK Python 3 TESTS 52 156 4608000 1400
37553026 Leendertz C April 23, 2018, 2:49 p.m. OK Python 3 TESTS 52 186 7065600 1400
50539360 Keti13 C Feb. 26, 2019, 5:16 p.m. OK Python 3 TESTS 52 218 0 1400
47813688 Ooops_no C Jan. 1, 2019, 1:01 p.m. OK Python 3 TESTS 52 218 0 1400
56015436 sorry_im_smurfing C June 24, 2019, 8:47 p.m. OK Ruby TESTS 52 124 204800 1400
35871201 ______u______ C March 3, 2018, 6:46 a.m. OK Ruby TESTS 52 124 6451200 1400
35870965 ______n______ C March 3, 2018, 6:40 a.m. OK Ruby TESTS 52 124 6451200 1400
35870370 _____i_____ C March 3, 2018, 6:28 a.m. OK Ruby TESTS 52 124 6451200 1400
35870363 _____k_____ C March 3, 2018, 6:28 a.m. OK Ruby TESTS 52 124 6451200 1400
35861739 ______h______ C March 2, 2018, 10:10 p.m. OK Ruby TESTS 52 124 6451200 1400
35861544 ______k______ C March 2, 2018, 10:05 p.m. OK Ruby TESTS 52 124 6451200 1400
35861227 ______i______ C March 2, 2018, 9:58 p.m. OK Ruby TESTS 52 124 6451200 1400
35859506 ______M______ C March 2, 2018, 9:21 p.m. OK Ruby TESTS 52 124 6451200 1400
44454084 RAKib074 C Oct. 17, 2018, 5:09 p.m. OK Ruby TESTS 52 154 102400 1400

remove filters

Back to search problems