Codeforces Round 282 (Div. 1)

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
494 Codeforces Round 282 (Div. 1) FINISHED False 7200 319123804 Dec. 13, 2014, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6303 ) A Treasure PROGRAMMING greedy 1700

B"Malek has recently found a treasure map. While he was looking for a treasure he found a locked door. There was a string s written on the door consisting of characters '(', ')' and '#'. Below there was a manual on how to open the door. After spending a long time Malek managed to decode the manual and found out that the goal is to replace each '#' with one or more ')' characters so that the final string becomes beautiful. Below there was also written that a string is called beautiful if for each i (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s|) there are no more ')' characters than '(' characters among the first i characters of s and also the total number of '(' characters is equal to the total number of ')' characters. Help Malek open the door by telling him for each '#' character how many ')' characters he must replace it with. The first line of the input contains a string s (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). Each character of this string is one of the characters '(', ')' or '#'. It is guaranteed that s contains at least one '#' character. If there is no way of replacing '#' characters which leads to a beautiful string print xe2 x80 x89- xe2 x80 x891. Otherwise for each character '#' print a separate line containing a positive integer, the number of ')' characters this character must be replaced with. If there are several possible answers, you may output any of them. |s| denotes the length of the string s."...

Tutorials

15148

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
10013710 cpy A Feb. 25, 2015, 4:53 a.m. OK D TESTS 56 31 1126400 1700
10013988 cpy A Feb. 25, 2015, 5:16 a.m. OK D TESTS 56 31 1126400 1700
9106566 AHTuTTuTyX A Dec. 13, 2014, 4:52 p.m. OK Delphi TESTS 56 62 307200 1700
9109573 ruban A Dec. 13, 2014, 5:12 p.m. OK Delphi TESTS 56 78 160768000 1700
9105081 TheHedgehog A Dec. 13, 2014, 4:43 p.m. OK Delphi TESTS 56 109 15360000 1700
9190356 hangto A Dec. 18, 2014, 6:05 p.m. OK FPC TESTS 56 62 1228800 1700
9106771 Freedom A Dec. 13, 2014, 4:53 p.m. OK FPC TESTS 56 78 307200 1700
9125608 arsijo A Dec. 14, 2014, 7:40 a.m. OK FPC TESTS 56 78 819200 1700
9120972 timoxaxa A Dec. 13, 2014, 8:52 p.m. OK FPC TESTS 56 93 307200 1700
9163140 AliD A Dec. 17, 2014, 3:18 p.m. OK FPC TESTS 56 93 716800 1700
9147045 RomanDerkach A Dec. 15, 2014, 11:31 p.m. OK FPC TESTS 56 93 716800 1700
9124099 voquocthang A Dec. 14, 2014, 4:52 a.m. OK FPC TESTS 56 93 716800 1700
9118889 qjc98 A Dec. 13, 2014, 7:26 p.m. OK FPC TESTS 56 93 716800 1700
9103916 Alex_2oo8 A Dec. 13, 2014, 4:35 p.m. OK FPC TESTS 56 93 716800 1700
9122614 I_Love_EEvilCatt A Dec. 14, 2014, 12:29 a.m. OK FPC TESTS 56 93 921600 1700
9508228 vjudge1 A Jan. 23, 2015, 5:32 a.m. OK GNU C TESTS 56 15 102400 1700
9126208 scube0211 A Dec. 14, 2014, 8:50 a.m. OK GNU C TESTS 56 15 921600 1700
9138433 umeshksingla A Dec. 15, 2014, 10:41 a.m. OK GNU C TESTS 56 15 1331200 1700
10936774 ving.xia A April 30, 2015, 9:32 a.m. OK GNU C TESTS 56 15 1945600 1700
17987967 yigezhe A May 19, 2016, 8:32 a.m. OK GNU C TESTS 56 15 2150400 1700
10139025 optimus___prime A March 3, 2015, 11 p.m. OK GNU C TESTS 56 30 102400 1700
9355042 divash A Jan. 3, 2015, 6:09 p.m. OK GNU C TESTS 56 30 512000 1700
9159480 govind53 A Dec. 17, 2014, 8:35 a.m. OK GNU C TESTS 56 31 102400 1700
9153238 Servant_of_Allah A Dec. 16, 2014, 3:44 p.m. OK GNU C TESTS 56 31 102400 1700
14038317 buetian_abir A Nov. 3, 2015, 7:35 a.m. OK GNU C TESTS 56 31 512000 1700
27369326 vjudge2 A May 27, 2017, 7:51 a.m. OK GNU C++ TESTS 56 15 0 1700
15733956 niu A Feb. 1, 2016, 3:08 p.m. OK GNU C++ TESTS 56 15 0 1700
15167826 mdwudier A Jan. 3, 2016, 11:50 a.m. OK GNU C++ TESTS 56 15 0 1700
13919772 130705009 A Oct. 28, 2015, 5:09 p.m. OK GNU C++ TESTS 56 15 0 1700
10535597 KeremC A March 31, 2015, 5:31 p.m. OK GNU C++ TESTS 56 15 0 1700
9617461 formela2 A Jan. 29, 2015, 4:19 p.m. OK GNU C++ TESTS 56 15 0 1700
9151473 sdust_sirius A Dec. 16, 2014, 1:13 p.m. OK GNU C++ TESTS 56 15 0 1700
19303097 vjudge4 A July 21, 2016, 1:28 p.m. OK GNU C++ TESTS 56 15 102400 1700
19186871 vjudge5 A July 17, 2016, 8:33 a.m. OK GNU C++ TESTS 56 15 102400 1700
19175029 vjudge1 A July 16, 2016, 2:26 p.m. OK GNU C++ TESTS 56 15 102400 1700
9200157 otrewyi191 A Dec. 19, 2014, 6:05 p.m. OK GNU C++0x TESTS 56 15 0 1700
9156236 nosy A Dec. 16, 2014, 8:49 p.m. OK GNU C++0x TESTS 56 15 102400 1700
9960212 maschuet A Feb. 22, 2015, 2:33 p.m. OK GNU C++0x TESTS 56 15 204800 1700
9122430 Misha100896 A Dec. 13, 2014, 11:42 p.m. OK GNU C++0x TESTS 56 15 307200 1700
9155125 s17k A Dec. 16, 2014, 6:52 p.m. OK GNU C++0x TESTS 56 15 307200 1700
9133838 waterfall A Dec. 14, 2014, 6:28 p.m. OK GNU C++0x TESTS 56 15 307200 1700
9194671 Bhaha A Dec. 19, 2014, 8:37 a.m. OK GNU C++0x TESTS 56 15 614400 1700
9156250 Amor727 A Dec. 16, 2014, 8:50 p.m. OK GNU C++0x TESTS 56 15 819200 1700
9213695 mraron A Dec. 21, 2014, 8:32 a.m. OK GNU C++0x TESTS 56 15 1126400 1700
9291197 hank55663 A Dec. 28, 2014, 12:35 p.m. OK GNU C++0x TESTS 56 30 102400 1700
53438849 MQstafa A April 27, 2019, 9:15 p.m. OK GNU C11 TESTS 56 140 512000 1700
53438880 MQstafa A April 27, 2019, 9:17 p.m. OK GNU C11 TESTS 56 155 102400 1700
53438931 MQstafa A April 27, 2019, 9:19 p.m. OK GNU C11 TESTS 56 155 102400 1700
57807474 rainboy A July 26, 2019, 3:45 p.m. OK GNU C11 TESTS 56 156 102400 1700
53438799 MQstafa A April 27, 2019, 9:12 p.m. OK GNU C11 TESTS 56 156 921600 1700
27909576 petrescu A June 19, 2017, 5:13 p.m. OK GNU C++11 TESTS 56 15 0 1700
14250580 nuonuo A Nov. 14, 2015, 8:26 a.m. OK GNU C++11 TESTS 56 15 102400 1700
18997321 vjudge3 A July 10, 2016, 7:30 a.m. OK GNU C++11 TESTS 56 15 102400 1700
20958428 pedrodelyra A Sept. 28, 2016, 1:13 a.m. OK GNU C++11 TESTS 56 15 102400 1700
22823594 naumazeredo A Dec. 9, 2016, 12:19 a.m. OK GNU C++11 TESTS 56 15 102400 1700
22926902 noelnadal A Dec. 13, 2016, 1:10 p.m. OK GNU C++11 TESTS 56 15 102400 1700
30243538 gauravsharma A Sept. 10, 2017, 11:06 a.m. OK GNU C++11 TESTS 56 15 307200 1700
39344385 benmirt A June 17, 2018, 10:57 p.m. OK GNU C++11 TESTS 56 15 307200 1700
18996946 zhzy0077 A July 10, 2016, 7:02 a.m. OK GNU C++11 TESTS 56 15 307200 1700
27500331 tqyaaaaaaaang A June 1, 2017, 3:48 p.m. OK GNU C++11 TESTS 56 15 512000 1700
22852357 Jakube A Dec. 10, 2016, 9:49 a.m. OK GNU C++14 TESTS 56 15 307200 1700
20358702 Mucosolvan A Sept. 3, 2016, 10:36 a.m. OK GNU C++14 TESTS 56 15 307200 1700
30203028 burraahaah A Sept. 8, 2017, 1:13 p.m. OK GNU C++14 TESTS 56 15 307200 1700
29713771 GT_18 A Aug. 23, 2017, 5:26 p.m. OK GNU C++14 TESTS 56 15 512000 1700
22518516 OnionPringles A Nov. 26, 2016, 11:41 p.m. OK GNU C++14 TESTS 56 15 512000 1700
27501625 Sonechko A June 1, 2017, 3:58 p.m. OK GNU C++14 TESTS 56 15 614400 1700
22728865 simiao A Dec. 6, 2016, 11:29 a.m. OK GNU C++14 TESTS 56 15 614400 1700
22338063 KhaleD_ A Nov. 19, 2016, 9:59 p.m. OK GNU C++14 TESTS 56 15 614400 1700
27903105 tHeMaskedMan98 A June 19, 2017, 11:17 a.m. OK GNU C++14 TESTS 56 15 716800 1700
27620648 gaporf A June 6, 2017, 7:25 p.m. OK GNU C++14 TESTS 56 15 716800 1700
38590849 Akikaze A May 24, 2018, 3:28 p.m. OK GNU C++17 TESTS 56 15 1228800 1700
47178816 failed_coder A Dec. 17, 2018, 7:09 p.m. OK GNU C++17 TESTS 56 15 1228800 1700
39634686 Growth A June 25, 2018, 12:31 a.m. OK GNU C++17 TESTS 56 30 307200 1700
55232823 OnlyLatinLetters A June 7, 2019, 6:42 a.m. OK GNU C++17 TESTS 56 30 307200 1700
63229632 PracticeAccount123 A Oct. 23, 2019, 10:31 a.m. OK GNU C++17 TESTS 56 30 307200 1700
54414618 AlmoezAli A May 20, 2019, 11:53 a.m. OK GNU C++17 TESTS 56 30 1126400 1700
69271505 aps554 A Jan. 21, 2020, 9:28 p.m. OK GNU C++17 TESTS 56 30 1228800 1700
54350986 _dipu A May 18, 2019, 2:49 p.m. OK GNU C++17 TESTS 56 30 1331200 1700
54521948 312352145215 A May 23, 2019, 12:40 p.m. OK GNU C++17 TESTS 56 30 1638400 1700
38719509 souravvv A May 29, 2018, 1:16 p.m. OK GNU C++17 TESTS 56 30 1740800 1700
9123419 cojna A Dec. 14, 2014, 3:09 a.m. OK Haskell TESTS 56 31 4198400 1700
17548580 ramesh.baskaran A April 28, 2016, 3:03 a.m. OK Haskell TESTS 56 31 53452800 1700
9156392 stevegregg A Dec. 16, 2014, 9:08 p.m. OK Java 6 TESTS 56 109 0 1700
9123105 marcose18 A Dec. 14, 2014, 2:20 a.m. OK Java 6 TESTS 56 124 0 1700
9123093 marcose18 A Dec. 14, 2014, 2:17 a.m. OK Java 6 TESTS 56 124 0 1700
9106768 meijun A Dec. 13, 2014, 4:53 p.m. OK Java 6 TESTS 56 156 0 1700
9329159 xiaowuc1 A Dec. 31, 2014, 2:20 a.m. OK Java 6 TESTS 56 233 0 1700
9201054 abababab A Dec. 19, 2014, 7:54 p.m. OK Java 6 TESTS 56 311 0 1700
9144627 Narutokun A Dec. 15, 2014, 5:29 p.m. OK Java 6 TESTS 56 327 0 1700
9105858 BECEJIb4AK_U A Dec. 13, 2014, 4:48 p.m. OK Java 6 TESTS 56 327 0 1700
9200909 Ahed-Alrashaida A Dec. 19, 2014, 7:37 p.m. OK Java 6 TESTS 56 343 0 1700
9441788 mukeshmit A Jan. 16, 2015, 9:13 a.m. OK Java 6 TESTS 56 358 0 1700
12848394 Trasier A Sept. 5, 2015, 5:35 a.m. OK Java 7 TESTS 56 78 0 1700
9124004 mithunmk93 A Dec. 14, 2014, 4:35 a.m. OK Java 7 TESTS 56 78 0 1700
9145784 kubusgol A Dec. 15, 2014, 8:13 p.m. OK Java 7 TESTS 56 92 0 1700
9135731 beroul A Dec. 14, 2014, 11:43 p.m. OK Java 7 TESTS 56 92 0 1700
9121615 Omar_Mahmoud A Dec. 13, 2014, 9:46 p.m. OK Java 7 TESTS 56 92 0 1700
13690847 Hartha A Oct. 17, 2015, 12:01 p.m. OK Java 7 TESTS 56 93 0 1700
10645419 amanchik A April 10, 2015, 4:41 a.m. OK Java 7 TESTS 56 93 0 1700
9945503 amr.f.eldfrawy A Feb. 21, 2015, 7:14 a.m. OK Java 7 TESTS 56 93 0 1700
9373759 megaspazz A Jan. 6, 2015, 3:49 p.m. OK Java 7 TESTS 56 93 0 1700
9373735 megaspazz A Jan. 6, 2015, 3:45 p.m. OK Java 7 TESTS 56 93 0 1700
29594626 zodiacleo A Aug. 19, 2017, 9:40 a.m. OK Java 8 TESTS 56 109 0 1700
27011247 aabdelzaher A May 11, 2017, 11:42 a.m. OK Java 8 TESTS 56 109 0 1700
25473027 Kammola A March 14, 2017, 12:38 p.m. OK Java 8 TESTS 56 109 20582400 1700
57295239 JCKG A July 18, 2019, 6:51 p.m. OK Java 8 TESTS 56 124 0 1700
56995000 yorky A July 13, 2019, 9:13 p.m. OK Java 8 TESTS 56 124 0 1700
54856246 thisSideAnonymous A May 30, 2019, 7:44 p.m. OK Java 8 TESTS 56 124 0 1700
51258427 AWCXV A March 13, 2019, 12:18 p.m. OK Java 8 TESTS 56 124 0 1700
48326066 K_B_C_S A Jan. 13, 2019, 11:53 a.m. OK Java 8 TESTS 56 124 0 1700
45895463 ViciousCoder A Nov. 17, 2018, 9:52 p.m. OK Java 8 TESTS 56 124 0 1700
44751653 atarw A Oct. 23, 2018, 8:17 p.m. OK Java 8 TESTS 56 124 0 1700
51968677 nemars A March 29, 2019, 11:20 a.m. OK Mono C# TESTS 56 62 4812800 1700
9281602 m.radwan A Dec. 27, 2014, 7:45 a.m. OK Mono C# TESTS 56 187 5734400 1700
9105619 Acc3pted A Dec. 13, 2014, 4:46 p.m. OK Mono C# TESTS 56 248 2150400 1700
11201929 T-D-K A May 22, 2015, 1:35 p.m. OK MS C# TESTS 56 62 1740800 1700
11350991 sicon54 A May 29, 2015, 9:46 p.m. OK MS C# TESTS 56 62 3686400 1700
9138063 azukun A Dec. 15, 2014, 9:47 a.m. OK MS C# TESTS 56 62 3788800 1700
12837295 og.kostya A Sept. 4, 2015, 6:26 a.m. OK MS C# TESTS 56 92 3686400 1700
9120575 camypaper A Dec. 13, 2014, 8:26 p.m. OK MS C# TESTS 56 93 3686400 1700
22596386 Chubcheg A Nov. 29, 2016, 10:44 a.m. OK MS C# TESTS 56 217 1638400 1700
10748047 BingshiAcmer A April 17, 2015, 5:28 a.m. OK MS C++ TESTS 56 15 102400 1700
27432517 vjudge4 A May 29, 2017, 4:35 p.m. OK MS C++ TESTS 56 15 409600 1700
9671574 a88027180 A Feb. 2, 2015, 3:34 a.m. OK MS C++ TESTS 56 15 512000 1700
11268207 OmarHashim A May 25, 2015, 5:12 p.m. OK MS C++ TESTS 56 15 614400 1700
9131227 besher A Dec. 14, 2014, 2:15 p.m. OK MS C++ TESTS 56 15 716800 1700
28725893 scorpiowf A July 20, 2017, 1:13 p.m. OK MS C++ TESTS 56 15 3174400 1700
19185697 vjudge4 A July 17, 2016, 7:09 a.m. OK MS C++ TESTS 56 30 102400 1700
9377505 silsaj A Jan. 7, 2015, 8:08 a.m. OK MS C++ TESTS 56 30 102400 1700
9304942 szsz A Dec. 30, 2014, 11:51 a.m. OK MS C++ TESTS 56 30 102400 1700
18903730 DEGwer A July 5, 2016, 3:45 p.m. OK MS C++ TESTS 56 30 307200 1700
63059581 utasoft.ru A Oct. 21, 2019, 8:05 a.m. OK MS C++ 2017 TESTS 56 186 204800 1700
40821231 zacker-22 A July 26, 2018, 11:48 p.m. OK PyPy 2 TESTS 56 514 6144000 1700
20488651 dsharma080 A Sept. 10, 2016, 2:05 a.m. OK PyPy 2 TESTS 56 1855 11468800 1700
50497561 toysheeyeyraku A Feb. 25, 2019, 3:48 p.m. OK PyPy 3 TESTS 56 140 4300800 1700
58663642 vjudge4 A Aug. 12, 2019, 11:51 a.m. OK PyPy 3 TESTS 56 170 6348800 1700
17144400 ximo A April 3, 2016, 11:50 a.m. OK PyPy 3 TESTS 56 187 28876800 1700
9136006 leeaa A Dec. 15, 2014, 1:38 a.m. OK Python 2 TESTS 56 78 204800 1700
9217827 abufct A Dec. 21, 2014, 6:03 p.m. OK Python 2 TESTS 56 78 2252800 1700
34947708 laoliumang A Feb. 5, 2018, 3:08 p.m. OK Python 2 TESTS 56 78 5120000 1700
35883166 ______u______ A March 3, 2018, 12:50 p.m. OK Python 2 TESTS 56 93 5632000 1700
35882832 ______n______ A March 3, 2018, 12:45 p.m. OK Python 2 TESTS 56 93 5632000 1700
35875168 _____k_____ A March 3, 2018, 8:09 a.m. OK Python 2 TESTS 56 93 5632000 1700
35874995 _____i_____ A March 3, 2018, 8:03 a.m. OK Python 2 TESTS 56 93 5632000 1700
35871770 ______h______ A March 3, 2018, 6:58 a.m. OK Python 2 TESTS 56 93 5632000 1700
35871709 ______k______ A March 3, 2018, 6:57 a.m. OK Python 2 TESTS 56 93 5632000 1700
35871000 ______i______ A March 3, 2018, 6:40 a.m. OK Python 2 TESTS 56 93 5632000 1700
9293522 yugle7 A Dec. 28, 2014, 6:20 p.m. OK Python 3 TESTS 56 77 1843200 1700
24273082 tomdmitriev A Jan. 30, 2017, 5:11 p.m. OK Python 3 TESTS 56 93 6860800 1700
28368085 thelastprime A July 8, 2017, 11:46 a.m. OK Python 3 TESTS 56 124 8192000 1700
13768909 atzaruri A Oct. 21, 2015, 10:08 a.m. OK Python 3 TESTS 56 155 3993600 1700
9401006 SteelRaven A Jan. 11, 2015, 5:11 a.m. OK Python 3 TESTS 56 202 716800 1700
9122914 mavrik A Dec. 14, 2014, 1:45 a.m. OK Python 3 TESTS 56 202 1024000 1700
69997883 vjudge3 A Feb. 1, 2020, 10:52 p.m. OK Python 3 TESTS 56 202 1228800 1700
9112018 hatsuyuki15 A Dec. 13, 2014, 5:32 p.m. OK Python 3 TESTS 56 218 921600 1700
9183159 manhhomienbienthuy A Dec. 18, 2014, 6:26 a.m. OK Python 3 TESTS 56 218 1024000 1700
9105458 jasperH A Dec. 13, 2014, 4:46 p.m. OK Python 3 TESTS 56 218 1024000 1700
9113623 limed A Dec. 13, 2014, 5:46 p.m. OK Scala TESTS 56 264 0 1700
13874939 reldan A Oct. 26, 2015, 3:24 p.m. OK Scala TESTS 56 265 204800 1700
9952355 kachayev A Feb. 21, 2015, 8:14 p.m. OK Scala TESTS 56 545 204800 1700

remove filters

Back to search problems