Codeforces Round 211 (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
363 Codeforces Round 211 (Div. 2) FINISHED False 7200 353541597 Nov. 11, 2013, 8 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 10893 ) A Soroban PROGRAMMING implementation 1000

B"You know that Japan is the country with almost the largest 'electronic devices per person' ratio. So you might be quite surprised to find out that the primary school in Japan teaches to count using a Soroban -- an abacus developed in Japan. This phenomenon has its reasons, of course, but we are not going to speak about them. Let's have a look at the Soroban's construction. Soroban consists of some number of rods, each rod contains five beads. We will assume that the rods are horizontal lines. One bead on each rod (the leftmost one) is divided from the others by a bar (the reckoning bar). This single bead is called go-dama and four others are ichi-damas. Each rod is responsible for representing a single digit from 0 to 9. We can obtain the value of a digit by following simple algorithm: Thus, the upper rod on the picture shows digit 0, the middle one shows digit 2 and the lower one shows 7. We will consider the top rod to represent the last decimal digit of a number, so the picture shows number 720. Write the program that prints the way Soroban shows the given number n. The first line contains a single integer n (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89< xe2 x80 x89109). Print the description of the decimal digits of number n from the last one to the first one (as mentioned on the picture in the statement), one per line. Print the beads as large English letters 'O', rod pieces as character '-' and the reckoning bar as '|'. Print as many rods, as many digits are in the decimal representation of number n without leading zeroes. We can assume that number 0 has no leading zeroes."...

Tutorials

9537

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
21368474 cyboffic A Oct. 11, 2016, 7:36 p.m. OK FPC TESTS 36 15 1638400 1000
19297536 muhaiminbinmunir A July 21, 2016, 8:33 a.m. OK GNU C TESTS 36 15 0 1000
19304024 NiverdPereira A July 21, 2016, 2:21 p.m. OK GNU C TESTS 36 15 0 1000
20370366 rainboy A Sept. 3, 2016, 8:35 p.m. OK GNU C TESTS 36 15 0 1000
27724590 upojzsb A June 11, 2017, 5:03 p.m. OK GNU C TESTS 36 15 0 1000
20371060 rainboy A Sept. 3, 2016, 9:30 p.m. OK GNU C TESTS 36 15 0 1000
20827734 ahmmed A Sept. 22, 2016, 11 p.m. OK GNU C TESTS 36 15 0 1000
21764946 Rizro A Oct. 25, 2016, 6:41 a.m. OK GNU C TESTS 36 15 0 1000
27474624 pmad1234 A May 31, 2017, 9:43 p.m. OK GNU C TESTS 36 15 0 1000
19290051 Rizon_Sunny A July 21, 2016, 12:41 a.m. OK GNU C TESTS 36 15 0 1000
35377718 Nightbaron9 A Feb. 16, 2018, 9:57 p.m. OK GNU C TESTS 36 15 1843200 1000
31087550 vjudge4 A Oct. 6, 2017, 5 p.m. OK GNU C++ TESTS 36 15 0 1000
31092101 vjudge4 A Oct. 6, 2017, 7:47 p.m. OK GNU C++ TESTS 36 15 0 1000
31091204 vjudge3 A Oct. 6, 2017, 7:06 p.m. OK GNU C++ TESTS 36 15 0 1000
31089815 vjudge4 A Oct. 6, 2017, 6:11 p.m. OK GNU C++ TESTS 36 15 0 1000
31088245 vjudge2 A Oct. 6, 2017, 5:18 p.m. OK GNU C++ TESTS 36 15 0 1000
31087064 vjudge2 A Oct. 6, 2017, 4:49 p.m. OK GNU C++ TESTS 36 15 0 1000
31085592 vjudge1 A Oct. 6, 2017, 4:21 p.m. OK GNU C++ TESTS 36 15 0 1000
31085589 vjudge2 A Oct. 6, 2017, 4:21 p.m. OK GNU C++ TESTS 36 15 0 1000
31085582 vjudge5 A Oct. 6, 2017, 4:20 p.m. OK GNU C++ TESTS 36 15 0 1000
31085568 vjudge2 A Oct. 6, 2017, 4:19 p.m. OK GNU C++ TESTS 36 15 0 1000
51239049 Noshin_1703086 A March 12, 2019, 8:17 p.m. OK GNU C11 TESTS 36 15 0 1000
19055989 Raguib A July 12, 2016, 5:42 p.m. OK GNU C11 TESTS 36 15 0 1000
31088856 vjudge5 A Oct. 6, 2017, 5:37 p.m. OK GNU C11 TESTS 36 15 0 1000
55903026 kaiboy A June 21, 2019, 7:01 p.m. OK GNU C11 TESTS 36 15 102400 1000
23794042 SaikatS A Jan. 13, 2017, 9:22 p.m. OK GNU C11 TESTS 36 15 1843200 1000
43547705 nishantwrp A Sept. 28, 2018, 8:23 p.m. OK GNU C11 TESTS 36 30 0 1000
63850803 DevJewel A Oct. 30, 2019, 3:41 p.m. OK GNU C11 TESTS 36 31 0 1000
63086997 tushar3105 A Oct. 21, 2019, 4:55 p.m. OK GNU C11 TESTS 36 31 0 1000
67685356 Revanth27 A Dec. 27, 2019, 8:37 a.m. OK GNU C11 TESTS 36 31 0 1000
67187959 mamun12 A Dec. 19, 2019, 5:47 a.m. OK GNU C11 TESTS 36 31 0 1000
38596025 prabal_1997 A May 24, 2018, 8:13 p.m. OK GNU C++11 TESTS 36 15 0 1000
31051234 Quinas A Oct. 6, 2017, 2:43 a.m. OK GNU C++11 TESTS 36 15 0 1000
31085472 vjudge2 A Oct. 6, 2017, 4:08 p.m. OK GNU C++11 TESTS 36 15 0 1000
31187003 JhonnyBillM A Oct. 10, 2017, 10:39 a.m. OK GNU C++11 TESTS 36 15 0 1000
32101975 Nuwaisir_Rabi A Nov. 6, 2017, 5:27 p.m. OK GNU C++11 TESTS 36 15 0 1000
32356261 edisonhello A Nov. 16, 2017, 1:26 p.m. OK GNU C++11 TESTS 36 15 0 1000
32529714 cmehedi A Nov. 21, 2017, 3:35 p.m. OK GNU C++11 TESTS 36 15 0 1000
30877556 mohammed.a.elkomy A Sept. 30, 2017, 5:46 p.m. OK GNU C++11 TESTS 36 15 0 1000
30277143 KK_cong A Sept. 12, 2017, 2:52 a.m. OK GNU C++11 TESTS 36 15 0 1000
30084642 O.S.Mozes calamit0us A Sept. 4, 2017, 8:42 p.m. OK GNU C++11 TESTS 36 15 0 1000
58572930 Guru_mani A Aug. 11, 2019, 11:04 a.m. OK GNU C++14 TESTS 36 15 0 1000
68381315 Nursikkkkkkarrrdashian A Jan. 8, 2020, 1:30 a.m. OK GNU C++14 TESTS 36 15 0 1000
64591440 noob31 A Nov. 9, 2019, 2:55 p.m. OK GNU C++14 TESTS 36 15 0 1000
62056542 Coding_Sourabh A Oct. 7, 2019, 12:17 p.m. OK GNU C++14 TESTS 36 15 0 1000
61832169 varun20 A Oct. 4, 2019, 6:53 a.m. OK GNU C++14 TESTS 36 15 0 1000
57846418 umad A July 27, 2019, 11:21 a.m. OK GNU C++14 TESTS 36 15 0 1000
57766701 mohammad_Nour A July 25, 2019, 8:56 p.m. OK GNU C++14 TESTS 36 15 0 1000
57603798 srajang_123 A July 23, 2019, 4:59 p.m. OK GNU C++14 TESTS 36 15 0 1000
54991694 Richie_rich A June 2, 2019, 7:12 p.m. OK GNU C++14 TESTS 36 15 0 1000
54581138 covalent_bond A May 25, 2019, 4:46 a.m. OK GNU C++14 TESTS 36 15 0 1000
67967299 satyampandey A Dec. 30, 2019, 1:47 p.m. OK GNU C++17 TESTS 36 15 0 1000
46767360 __hosam A Dec. 8, 2018, 3:02 p.m. OK GNU C++17 TESTS 36 15 0 1000
47490175 Sheth_Smit A Dec. 25, 2018, 11:37 a.m. OK GNU C++17 TESTS 36 15 0 1000
47661192 animesh.ab99 A Dec. 28, 2018, 7:07 p.m. OK GNU C++17 TESTS 36 15 0 1000
51410440 RachaelGreen A March 17, 2019, 11:50 a.m. OK GNU C++17 TESTS 36 15 0 1000
54642328 sid779 A May 25, 2019, 8:23 p.m. OK GNU C++17 TESTS 36 15 0 1000
58698291 hiva_ A Aug. 13, 2019, 6:55 a.m. OK GNU C++17 TESTS 36 15 0 1000
60432624 Belalmoawad A Sept. 12, 2019, 9:51 a.m. OK GNU C++17 TESTS 36 15 0 1000
62009054 _b1n0ry_ A Oct. 6, 2019, 3:41 p.m. OK GNU C++17 TESTS 36 15 0 1000
67471112 MSBrar A Dec. 23, 2019, 12:51 p.m. OK GNU C++17 TESTS 36 15 0 1000
32896596 RelyOnTheTruth A Dec. 3, 2017, 10:43 a.m. OK GNU C++17 Diagnostics TESTS 36 779 99020800 1000
46699680 jedikni A Dec. 7, 2018, 12:14 a.m. OK Haskell TESTS 36 31 0 1000
20729483 pavel.rosputko A Sept. 18, 2016, 9:40 a.m. OK Haskell TESTS 36 31 0 1000
58537737 edsomjr A Aug. 10, 2019, 12:40 p.m. OK Haskell TESTS 36 31 102400 1000
59256914 vjudge4 A Aug. 22, 2019, 7:05 a.m. OK Haskell TESTS 36 46 102400 1000
18763791 harsh11298 A June 28, 2016, 7:53 a.m. OK Java 7 TESTS 36 124 0 1000
18621061 Ferrumit A June 20, 2016, 8:58 p.m. OK Java 7 TESTS 36 124 0 1000
18573486 shereifhawary A June 18, 2016, 7:15 a.m. OK Java 7 TESTS 36 139 0 1000
18147135 saket9450 A May 29, 2016, 12:56 p.m. OK Java 7 TESTS 36 139 39014400 1000
25485193 moh_yehia A March 14, 2017, 7:57 p.m. OK Java 8 TESTS 36 108 20480000 1000
66180348 sreevathsan A Dec. 2, 2019, 12:37 p.m. OK Java 8 TESTS 36 109 0 1000
65093823 vishal.a.burman23 A Nov. 15, 2019, 6:33 p.m. OK Java 8 TESTS 36 109 0 1000
62901857 T_Nady A Oct. 19, 2019, 4:28 a.m. OK Java 8 TESTS 36 109 0 1000
61235030 deepak4669 A Sept. 24, 2019, 5:45 p.m. OK Java 8 TESTS 36 109 0 1000
56173378 Avi_2506 A June 27, 2019, 5:46 p.m. OK Java 8 TESTS 36 109 0 1000
46262691 fatnassiahmed A Nov. 26, 2018, 9:37 p.m. OK Java 8 TESTS 36 109 0 1000
45399974 I.A.K.O.V A Nov. 7, 2018, 7:48 a.m. OK Java 8 TESTS 36 109 0 1000
44769465 aman28rwt A Oct. 24, 2018, 11:40 a.m. OK Java 8 TESTS 36 109 0 1000
44254476 deepak4669 A Oct. 13, 2018, 11:48 a.m. OK Java 8 TESTS 36 109 0 1000
57993308 teitus A July 30, 2019, 2:04 p.m. OK JavaScript TESTS 36 31 102400 1000
51265597 nemars A March 13, 2019, 3:23 p.m. OK Mono C# TESTS 36 93 3686400 1000
19175386 anoopgupta166 A July 16, 2016, 2:53 p.m. OK MS C# TESTS 36 46 0 1000
31997699 Skndr A Nov. 3, 2017, 5:18 a.m. OK MS C# TESTS 36 46 102400 1000
17715664 Arcey A May 5, 2016, 8:19 a.m. OK MS C# TESTS 36 61 9113600 1000
22103080 mdadil2019 A Nov. 7, 2016, 10:53 p.m. OK MS C# TESTS 36 62 0 1000
19481822 Islam_Atef A July 29, 2016, 2:35 p.m. OK MS C++ TESTS 36 15 0 1000
22637987 thenoobestever A Dec. 1, 2016, 11:32 a.m. OK MS C++ TESTS 36 15 0 1000
30262484 daniil.maltsev.md A Sept. 11, 2017, 9:27 a.m. OK MS C++ TESTS 36 15 102400 1000
27740366 Muhammad_Mustafa A June 12, 2017, 3:12 p.m. OK MS C++ TESTS 36 15 102400 1000
29589661 mohamadshalodi A Aug. 19, 2017, 5:57 a.m. OK MS C++ TESTS 36 15 102400 1000
27740055 1627405131_ws A June 12, 2017, 2:54 p.m. OK MS C++ TESTS 36 15 204800 1000
27753663 1627405131_ws A June 13, 2017, 10:53 a.m. OK MS C++ TESTS 36 15 204800 1000
28052877 magzhan.talpin A June 26, 2017, 8:26 a.m. OK MS C++ TESTS 36 15 1945600 1000
35276425 Pris-sad A Feb. 14, 2018, 9 p.m. OK MS C++ TESTS 36 15 2048000 1000
34906718 Husne_Matar A Feb. 3, 2018, 7:27 p.m. OK MS C++ TESTS 36 15 2048000 1000
69463139 tuknait_akshat A Jan. 24, 2020, 11:41 a.m. OK MS C++ 2017 TESTS 36 31 0 1000
66629324 Razan_H A Dec. 11, 2019, 10:32 a.m. OK MS C++ 2017 TESTS 36 31 0 1000
63978899 parisa.mqdm A Nov. 1, 2019, 9:31 a.m. OK MS C++ 2017 TESTS 36 31 0 1000
60411210 Moen1578 A Sept. 11, 2019, 9:45 p.m. OK MS C++ 2017 TESTS 36 31 0 1000
59887695 HishamDroubi A Sept. 2, 2019, 8:51 a.m. OK MS C++ 2017 TESTS 36 31 0 1000
59861507 a7madsam A Sept. 1, 2019, 3:30 p.m. OK MS C++ 2017 TESTS 36 31 0 1000
58430549 FumeiYaziwa A Aug. 7, 2019, 11:41 a.m. OK MS C++ 2017 TESTS 36 31 0 1000
57983908 Spiritum A July 30, 2019, 10:33 a.m. OK MS C++ 2017 TESTS 36 31 0 1000
56174955 awsm1123 A June 27, 2019, 6:35 p.m. OK MS C++ 2017 TESTS 36 31 0 1000
66162718 icomplex09 A Dec. 2, 2019, 5:38 a.m. OK MS C++ 2017 TESTS 36 31 307200 1000
66191746 28Nik A Dec. 2, 2019, 4:43 p.m. OK PascalABC.NET TESTS 36 296 102400 1000
44107298 TopGun__ A Oct. 11, 2018, 9:57 a.m. OK PyPy 2 TESTS 36 140 0 1000
31087564 vjudge3 A Oct. 6, 2017, 5:01 p.m. OK PyPy 3 TESTS 36 93 307200 1000
31665319 nonis A Oct. 24, 2017, 12:38 a.m. OK PyPy 3 TESTS 36 108 23142400 1000
55681833 vjudge2 A June 17, 2019, 1:27 p.m. OK PyPy 3 TESTS 36 124 0 1000
59654667 KA_Rma A Aug. 29, 2019, 9:48 a.m. OK PyPy 3 TESTS 36 139 0 1000
58970299 nikhily.725 A Aug. 17, 2019, 8 p.m. OK PyPy 3 TESTS 36 139 0 1000
67994640 pranaymalhan1 A Dec. 31, 2019, 7:22 a.m. OK PyPy 3 TESTS 36 140 0 1000
67971204 Sharma__Vipul A Dec. 30, 2019, 3:05 p.m. OK PyPy 3 TESTS 36 140 0 1000
65314554 enraged A Nov. 18, 2019, 4:42 p.m. OK PyPy 3 TESTS 36 140 0 1000
59868509 zapdospops A Sept. 1, 2019, 6:13 p.m. OK PyPy 3 TESTS 36 140 0 1000
58872593 essi A Aug. 15, 2019, 4:09 p.m. OK PyPy 3 TESTS 36 140 0 1000
27306526 KiPu A May 23, 2017, 5:57 p.m. OK Python 2 TESTS 36 46 0 1000
23660936 Ali.Pi A Jan. 9, 2017, 6:36 a.m. OK Python 2 TESTS 36 61 4710400 1000
21745622 drchuck A Oct. 24, 2016, 1:35 p.m. OK Python 2 TESTS 36 62 0 1000
35862023 ______u______ A March 2, 2018, 10:16 p.m. OK Python 2 TESTS 36 62 4608000 1000
35861849 ______n______ A March 2, 2018, 10:11 p.m. OK Python 2 TESTS 36 62 4608000 1000
35861427 _____i_____ A March 2, 2018, 10:03 p.m. OK Python 2 TESTS 36 62 4608000 1000
35861356 _____k_____ A March 2, 2018, 10:01 p.m. OK Python 2 TESTS 36 62 4608000 1000
35858259 ______h______ A March 2, 2018, 8:56 p.m. OK Python 2 TESTS 36 62 4608000 1000
35858257 ______k______ A March 2, 2018, 8:56 p.m. OK Python 2 TESTS 36 62 4608000 1000
35857650 ______i______ A March 2, 2018, 8:44 p.m. OK Python 2 TESTS 36 62 4608000 1000
27302913 poyodr A May 23, 2017, 2:08 p.m. OK Python 3 TESTS 36 61 0 1000
27748826 vjudge1 A June 13, 2017, 4:51 a.m. OK Python 3 TESTS 36 62 0 1000
27747045 vjudge4 A June 13, 2017, 1:52 a.m. OK Python 3 TESTS 36 62 0 1000
27000774 YazanRi A May 10, 2017, 5:31 p.m. OK Python 3 TESTS 36 62 0 1000
20751940 Amores A Sept. 19, 2016, 10:12 a.m. OK Python 3 TESTS 36 62 0 1000
29094061 LegendaryTooth A Aug. 1, 2017, 9:05 a.m. OK Python 3 TESTS 36 62 4608000 1000
23536564 amanxstriker A Jan. 4, 2017, 1:39 p.m. OK Python 3 TESTS 36 62 4608000 1000
32448280 DRW A Nov. 19, 2017, 6 a.m. OK Python 3 TESTS 36 62 5529600 1000
35505953 khiari.nader.kali A Feb. 19, 2018, 9:22 p.m. OK Python 3 TESTS 36 62 5632000 1000
35134794 MSteine A Feb. 10, 2018, 6:55 p.m. OK Python 3 TESTS 36 62 5632000 1000
20675181 karthickpdy A Sept. 17, 2016, 7:21 a.m. OK Ruby TESTS 36 62 0 1000
18743564 redchrom A June 26, 2016, 10:12 p.m. OK Ruby TESTS 36 77 0 1000
17839007 wasiq.bhamla A May 11, 2016, 5:12 a.m. OK Ruby TESTS 36 78 6553600 1000
61849919 chinmaykousik1 A Oct. 4, 2019, 12:25 p.m. OK Rust TESTS 36 31 0 1000
25706213 techaddict A March 22, 2017, 8:18 a.m. OK Scala TESTS 36 249 23347200 1000

remove filters

Back to search problems