Codeforces Beta Round 96 (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
133 Codeforces Beta Round 96 (Div. 2) FINISHED False 7200 408898799 Dec. 3, 2011, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8824 ) B Unary PROGRAMMING implementation 1200

B'Unary is a minimalistic Brainfuck dialect in which programs are written using only one token. Brainfuck programs use 8 commands: "+", "-", "[", "]", "<", ">", "." and "," (their meaning is not important for the purposes of this problem). Unary programs are created from Brainfuck programs using the following algorithm. First, replace each command with a corresponding binary code, using the following conversion table: Next, concatenate the resulting binary codes into one binary number in the same order as in the program. Finally, write this number using unary numeral system -- this is the Unary program equivalent to the original Brainfuck one. You are given a Brainfuck program. Your task is to calculate the size of the equivalent Unary program, and print it modulo 1000003 (106 xe2 x80 x89+ xe2 x80 x893). The input will consist of a single line p which gives a Brainfuck program. String p will contain between 1 and 100 characters, inclusive. Each character of p will be "+", "-", "[", "]", "<", ">", "." or ",". Output the size of the equivalent Unary program modulo 1000003 (106 xe2 x80 x89+ xe2 x80 x893). To write a number n in unary numeral system, one simply has to write 1 n times. For example, 5 written in unary system will be 11111. In the first example replacing Brainfuck commands with binary code will give us 1101 1100. After we concatenate the codes, we 'll get 11011100 in binary system, or 220 in decimal. That 's exactly the number of tokens in the equivalent Unary program.'...

Tutorials

Deleted

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
60925914 vjudge3 B Sept. 20, 2019, 12:16 p.m. OK Clang++17 Diagnostics TESTS 67 122 7372800 1200
50046763 YMJcvjk B Feb. 17, 2019, 6:20 a.m. OK FPC TESTS 67 62 102400 1200
39669157 PiMat B June 26, 2018, 7:58 a.m. OK FPC TESTS 67 62 102400 1200
31992141 yasinuddowla3 B Nov. 2, 2017, 8:24 p.m. OK GNU C TESTS 67 30 0 1200
33101494 soumyasis B Dec. 11, 2017, 12:23 p.m. OK GNU C TESTS 67 30 1843200 1200
35189801 MrCoderBoy B Feb. 13, 2018, 12:57 a.m. OK GNU C TESTS 67 30 1843200 1200
28929007 banglar_mukh B July 27, 2017, 11:33 a.m. OK GNU C TESTS 67 30 1945600 1200
39029523 sidmojo B June 7, 2018, 6:41 p.m. OK GNU C++ TESTS 67 30 0 1200
30838290 Sagar7390 B Sept. 29, 2017, 6:24 p.m. OK GNU C++ TESTS 67 30 0 1200
30781125 antimatter96 B Sept. 27, 2017, 3:23 p.m. OK GNU C++ TESTS 67 30 0 1200
27742013 varadadesikan1 B June 12, 2017, 5 p.m. OK GNU C++ TESTS 67 30 0 1200
27698876 Lashuk1729 B June 10, 2017, 2:32 a.m. OK GNU C++ TESTS 67 30 0 1200
32554445 Asmaa_Mosa B Nov. 22, 2017, 3:01 p.m. OK GNU C++ TESTS 67 30 0 1200
32576406 vjudge3 B Nov. 23, 2017, 1:27 p.m. OK GNU C++ TESTS 67 30 0 1200
32061162 vjudge1 B Nov. 4, 2017, 6:41 p.m. OK GNU C++ TESTS 67 30 0 1200
31226081 Purple_Flame B Oct. 11, 2017, 7:17 p.m. OK GNU C++ TESTS 67 30 0 1200
31046180 _QWOiNYUIVMPFSBKLiGSMAP_ B Oct. 5, 2017, 8:04 p.m. OK GNU C++ TESTS 67 30 0 1200
31992152 vjudge4 B Nov. 2, 2017, 8:24 p.m. OK GNU C11 TESTS 67 30 0 1200
58931671 kaiboy B Aug. 17, 2019, 1:14 a.m. OK GNU C11 TESTS 67 62 0 1200
55696275 bafyle B June 17, 2019, 10:30 p.m. OK GNU C11 TESTS 67 62 0 1200
52362866 jalalium B April 5, 2019, 9:09 p.m. OK GNU C11 TESTS 67 62 0 1200
58915887 kaiboy B Aug. 16, 2019, 2:57 p.m. OK GNU C11 TESTS 67 62 0 1200
58915481 kaiboy B Aug. 16, 2019, 2:47 p.m. OK GNU C11 TESTS 67 62 0 1200
32525174 OrangeX B Nov. 21, 2017, 12:33 p.m. OK GNU C++11 TESTS 67 30 0 1200
32561700 omarashraf0109 B Nov. 22, 2017, 9:03 p.m. OK GNU C++11 TESTS 67 30 0 1200
32560194 AhmedMogahed B Nov. 22, 2017, 7:29 p.m. OK GNU C++11 TESTS 67 30 0 1200
32559740 ngooda98 B Nov. 22, 2017, 7:07 p.m. OK GNU C++11 TESTS 67 30 0 1200
32525090 KhaledAlramam B Nov. 21, 2017, 12:29 p.m. OK GNU C++11 TESTS 67 30 0 1200
32508456 Abdulrahman.AbouOuf B Nov. 20, 2017, 6:29 p.m. OK GNU C++11 TESTS 67 30 0 1200
32505536 Nahla_Galal B Nov. 20, 2017, 4:15 p.m. OK GNU C++11 TESTS 67 30 0 1200
32490016 OmarRehan B Nov. 20, 2017, 5:37 a.m. OK GNU C++11 TESTS 67 30 0 1200
31217531 DavidChan B Oct. 11, 2017, 1:29 p.m. OK GNU C++11 TESTS 67 30 0 1200
30682553 avinash.kumar.cse14 B Sept. 24, 2017, 4:14 p.m. OK GNU C++11 TESTS 67 30 0 1200
32539523 white.lion B Nov. 22, 2017, 3:45 a.m. OK GNU C++14 TESTS 67 30 0 1200
32538063 Molo5ya B Nov. 22, 2017, 12:43 a.m. OK GNU C++14 TESTS 67 30 0 1200
32537993 _Kanf B Nov. 22, 2017, 12:31 a.m. OK GNU C++14 TESTS 67 30 0 1200
32537828 white.lion B Nov. 22, 2017, 12:04 a.m. OK GNU C++14 TESTS 67 30 0 1200
32550539 George.Samuel B Nov. 22, 2017, 12:46 p.m. OK GNU C++14 TESTS 67 30 0 1200
32555725 CoodeForces B Nov. 22, 2017, 3:51 p.m. OK GNU C++14 TESTS 67 30 0 1200
39018598 vj_rahil B June 7, 2018, 11:50 a.m. OK GNU C++14 TESTS 67 30 0 1200
39599984 AayushB B June 24, 2018, 11:15 a.m. OK GNU C++14 TESTS 67 30 0 1200
53290402 vjudge1 B April 25, 2019, 3:25 p.m. OK GNU C++14 TESTS 67 30 0 1200
64524931 RoshanKumar B Nov. 8, 2019, 1:29 p.m. OK GNU C++14 TESTS 67 30 0 1200
60246595 Carl___P B Sept. 8, 2019, 3:15 a.m. OK GNU C++17 TESTS 67 60 0 1200
58186803 GranD___MasteR B Aug. 2, 2019, 5:30 p.m. OK GNU C++17 TESTS 67 60 0 1200
57860621 X-O__O-X B July 27, 2019, 5:38 p.m. OK GNU C++17 TESTS 67 60 0 1200
56070859 dexter04 B June 26, 2019, 10:22 a.m. OK GNU C++17 TESTS 67 60 0 1200
66679791 sanyam2248 B Dec. 12, 2019, 12:41 p.m. OK GNU C++17 TESTS 67 60 0 1200
65045227 ASM_ATIKUR B Nov. 15, 2019, 1:44 p.m. OK GNU C++17 TESTS 67 60 0 1200
64722854 Mason70 B Nov. 12, 2019, 4:58 a.m. OK GNU C++17 TESTS 67 60 0 1200
62956141 edsomjr B Oct. 19, 2019, 8:35 p.m. OK GNU C++17 TESTS 67 60 0 1200
61791998 NitinC B Oct. 3, 2019, 4:10 p.m. OK GNU C++17 TESTS 67 60 0 1200
61211468 xavier_98 B Sept. 24, 2019, 11:36 a.m. OK GNU C++17 TESTS 67 60 0 1200
62220518 sumit083 B Oct. 9, 2019, 5:24 p.m. OK Java 8 TESTS 67 218 0 1200
68199401 sanskriti0512 B Jan. 4, 2020, 2:39 p.m. OK Java 8 TESTS 67 218 0 1200
56169930 Mazen_Alsamman B June 27, 2019, 4:01 p.m. OK Java 8 TESTS 67 218 0 1200
54661276 youmna1 B May 26, 2019, 10:57 a.m. OK Java 8 TESTS 67 218 0 1200
54622271 Hanan_1995 B May 25, 2019, 12:50 p.m. OK Java 8 TESTS 67 218 0 1200
53288243 vjudge3 B April 25, 2019, 2:41 p.m. OK Java 8 TESTS 67 218 0 1200
51945870 saurabhs1206 B March 28, 2019, 4:54 p.m. OK Java 8 TESTS 67 218 0 1200
46963667 deepak4669 B Dec. 13, 2018, 9:56 a.m. OK Java 8 TESTS 67 218 0 1200
27710026 Raosumeet0009 B June 10, 2017, 5:14 p.m. OK Java 8 TESTS 67 218 0 1200
27551554 0xDEADC0DE B June 3, 2017, 8:18 p.m. OK Java 8 TESTS 67 218 0 1200
51586823 nemars B March 20, 2019, 4:46 p.m. OK Mono C# TESTS 67 92 0 1200
34945364 Zenithxm B Feb. 5, 2018, 1:31 p.m. OK Mono C# TESTS 67 92 9318400 1200
30156935 _ahmed_ B Sept. 6, 2017, 3:16 p.m. OK MS C# TESTS 67 122 204800 1200
32550543 Tampere B Nov. 22, 2017, 12:47 p.m. OK MS C++ TESTS 67 30 0 1200
30611078 MiserableWisdom B Sept. 22, 2017, 10:05 a.m. OK MS C++ TESTS 67 30 204800 1200
28722022 scorpiowf B July 20, 2017, 10:45 a.m. OK MS C++ TESTS 67 30 2048000 1200
34448506 Hoax. B Jan. 22, 2018, 1:24 p.m. OK MS C++ TESTS 67 30 2048000 1200
27211536 ashis041 B May 19, 2017, 9:33 a.m. OK MS C++ TESTS 67 30 9318400 1200
28815946 Kniaz B July 24, 2017, 6:18 a.m. OK MS C++ TESTS 67 60 3686400 1200
46281862 lechinhin B Nov. 27, 2018, 1:46 p.m. OK MS C++ TESTS 67 62 0 1200
32558581 billyweight B Nov. 22, 2017, 6:04 p.m. OK MS C++ TESTS 67 62 0 1200
32487065 bigworld12 B Nov. 20, 2017, 1:11 a.m. OK MS C++ TESTS 67 62 2048000 1200
37681877 mohamadshalodi B April 28, 2018, 9:57 a.m. OK MS C++ TESTS 67 62 3788800 1200
39975874 FatherofBenoni B July 5, 2018, 7:06 a.m. OK PyPy 2 TESTS 67 310 307200 1200
64711582 aeternalis1 B Nov. 11, 2019, 6:59 p.m. OK PyPy 2 TESTS 67 340 0 1200
33435802 honeysingh123 B Dec. 19, 2017, 5:42 p.m. OK PyPy 3 TESTS 67 218 23040000 1200
32910382 nonis B Dec. 4, 2017, 12:16 a.m. OK PyPy 3 TESTS 67 218 23040000 1200
51686421 greed2411 B March 22, 2019, 2:45 p.m. OK PyPy 3 TESTS 67 248 0 1200
66275393 zaid09 B Dec. 4, 2019, 2:27 p.m. OK PyPy 3 TESTS 67 280 0 1200
64685527 chaudhary_19 B Nov. 11, 2019, 11:37 a.m. OK PyPy 3 TESTS 67 280 0 1200
58350518 rajat_2548 B Aug. 5, 2019, 4:58 p.m. OK PyPy 3 TESTS 67 280 0 1200
57503269 chiefsan B July 22, 2019, 11:06 a.m. OK PyPy 3 TESTS 67 280 0 1200
56178467 Sami_Kammoun B June 27, 2019, 8:51 p.m. OK PyPy 3 TESTS 67 280 0 1200
53857951 praveenojha33 B May 7, 2019, 5:36 p.m. OK PyPy 3 TESTS 67 280 0 1200
42154207 SarveshDubey B Aug. 27, 2018, 1:46 p.m. OK PyPy 3 TESTS 67 280 0 1200
27757858 adishegde B June 13, 2017, 3 p.m. OK Python 2 TESTS 67 122 0 1200
35838764 ______n______ B March 2, 2018, 1:40 p.m. OK Python 2 TESTS 67 124 4608000 1200
35838761 ______u______ B March 2, 2018, 1:40 p.m. OK Python 2 TESTS 67 124 4608000 1200
35838662 _____i_____ B March 2, 2018, 1:38 p.m. OK Python 2 TESTS 67 124 4608000 1200
35838655 _____k_____ B March 2, 2018, 1:38 p.m. OK Python 2 TESTS 67 124 4608000 1200
35833247 ______k______ B March 2, 2018, 11:10 a.m. OK Python 2 TESTS 67 124 4608000 1200
35833244 ______h______ B March 2, 2018, 11:10 a.m. OK Python 2 TESTS 67 124 4608000 1200
35831955 ______i______ B March 2, 2018, 10:02 a.m. OK Python 2 TESTS 67 124 4608000 1200
35830414 ______M______ B March 2, 2018, 9:16 a.m. OK Python 2 TESTS 67 124 4608000 1200
35166476 shub9dec B Feb. 12, 2018, 1:41 a.m. OK Python 2 TESTS 67 124 4608000 1200
32560623 attallah97 B Nov. 22, 2017, 7:53 p.m. OK Python 3 TESTS 67 124 0 1200
31324774 sergovoy B Oct. 14, 2017, 10:13 p.m. OK Python 3 TESTS 67 124 0 1200
29957565 maxibonino B Aug. 31, 2017, 7:14 p.m. OK Python 3 TESTS 67 124 0 1200
27151450 pun250 B May 16, 2017, 6:26 a.m. OK Python 3 TESTS 67 124 102400 1200
29239668 Qumeric B Aug. 6, 2017, 11:19 a.m. OK Python 3 TESTS 67 124 4608000 1200
28992258 thelastprime B July 30, 2017, 2 p.m. OK Python 3 TESTS 67 124 4608000 1200
28553869 jDomantas B July 14, 2017, 5:02 p.m. OK Python 3 TESTS 67 124 5529600 1200
34426905 Omar_Hatem B Jan. 21, 2018, 11:10 p.m. OK Python 3 TESTS 67 124 5632000 1200
34033607 dvec B Jan. 8, 2018, 7:11 p.m. OK Python 3 TESTS 67 124 5632000 1200
29447104 Matin B Aug. 14, 2017, 3:06 a.m. OK Python 3 TESTS 67 154 4608000 1200
43526229 RAKib074 B Sept. 28, 2018, 11:26 a.m. OK Ruby TESTS 67 124 102400 1200

remove filters

Back to search problems