Codeforces Round 106 (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
149 Codeforces Round 106 (Div. 2) FINISHED False 7200 408293963 Feb. 10, 2012, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2285 ) B Martian Clock PROGRAMMING implementation 1600

B'Having stayed home alone, Petya decided to watch forbidden films on the Net in secret. "What ungentlemanly behavior!" -- you can say that, of course, but don 't be too harsh on the kid. In his country films about the Martians and other extraterrestrial civilizations are forbidden. It was very unfair to Petya as he adored adventure stories that featured lasers and robots. Today Petya is watching a shocking blockbuster about the Martians called "R2:D2". What can "R2:D2" possibly mean? It might be the Martian time represented in the Martian numeral system. Petya knows that time on Mars is counted just like on the Earth (that is, there are 24 hours and each hour has 60 minutes). The time is written as "a:b", where the string a stands for the number of hours (from 0 to 23 inclusive), and string b stands for the number of minutes (from 0 to 59 inclusive). The only thing Petya doesn 't know is in what numeral system the Martian time is written. Your task is to print the radixes of all numeral system which can contain the time "a:b". The first line contains a single string as "a:b" (without the quotes). There a is a non-empty string, consisting of numbers and uppercase Latin letters. String a shows the number of hours. String b is a non-empty string that consists of numbers and uppercase Latin letters. String b shows the number of minutes. The lengths of strings a and b are from 1 to 5 characters, inclusive. Please note that strings a and b can have leading zeroes that do not influence the result in any way (for example, string "008:1" in decimal notation denotes correctly written time). We consider characters 0, 1, ..., 9 as denoting the corresponding digits of the number 's representation in some numeral system, and characters A, B, ..., Z correspond to numbers 10, 11, ..., 35. Print the radixes of the numeral systems that can represent the time "a:b" in the increasing order. Separate the numbers with spaces or line breaks. If there is no numeral system that can '...

Tutorials

Editorial Round #106

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3044009 AleksanderBalobanov B Feb. 1, 2013, 9:48 a.m. OK Delphi TESTS 77 15 102400 1600
1686818 Ramp B May 13, 2012, 6:34 p.m. OK Delphi TESTS 77 30 9420800 1600
2004422 Misha100896 B Aug. 13, 2012, 2:02 p.m. OK Delphi TESTS 77 30 9523200 1600
3082071 Mosyagin B Feb. 7, 2013, 8:01 p.m. OK Delphi TESTS 77 31 102400 1600
4046669 Omelianenko B July 10, 2013, 1:15 p.m. OK FPC TESTS 77 15 0 1600
5600769 Erfan.aa B Jan. 1, 2014, 9:50 p.m. OK FPC TESTS 77 30 204800 1600
1898148 gskhirtladze B July 13, 2012, 4:18 p.m. OK FPC TESTS 77 30 1228800 1600
1701670 superpear B May 18, 2012, 2 p.m. OK FPC TESTS 77 30 1228800 1600
2391395 ZOTAC89 B Oct. 20, 2012, 5:54 p.m. OK FPC TESTS 77 31 102400 1600
1687955 akim B May 14, 2012, 4:06 p.m. OK FPC TESTS 77 50 1228800 1600
48571303 Kk1506 B Jan. 19, 2019, 12:06 p.m. OK FPC TESTS 77 62 102400 1600
11912026 irevt B July 3, 2015, 2:13 p.m. OK FPC TESTS 77 62 102400 1600
33842435 TShT B Jan. 1, 2018, 6:28 a.m. OK FPC TESTS 77 62 1638400 1600
4110293 liyuanhang B July 20, 2013, 7:33 a.m. OK GNU C TESTS 77 15 0 1600
4602344 chirjeev94 B Sept. 29, 2013, 4:21 a.m. OK GNU C TESTS 77 30 0 1600
13626470 vjudge4 B Oct. 15, 2015, 4:17 p.m. OK GNU C TESTS 77 30 0 1600
19016738 rainboy B July 10, 2016, 10:59 p.m. OK GNU C TESTS 77 30 0 1600
19016355 rainboy B July 10, 2016, 10 p.m. OK GNU C TESTS 77 30 0 1600
13626392 group01cse15b B Oct. 15, 2015, 4:11 p.m. OK GNU C TESTS 77 30 0 1600
9212935 CQU-Songer B Dec. 21, 2014, 6:20 a.m. OK GNU C TESTS 77 60 0 1600
9212946 vjudge2 B Dec. 21, 2014, 6:21 a.m. OK GNU C TESTS 77 62 0 1600
13675060 fuadrafid B Oct. 17, 2015, 5:39 a.m. OK GNU C TESTS 77 62 0 1600
9212943 CQU-Songer B Dec. 21, 2014, 6:21 a.m. OK GNU C TESTS 77 62 0 1600
3770717 kybconnor B May 26, 2013, 7 a.m. OK GNU C++ TESTS 77 15 0 1600
3770723 judge B May 26, 2013, 7:01 a.m. OK GNU C++ TESTS 77 15 0 1600
3490738 madxmad B April 7, 2013, 8:14 p.m. OK GNU C++ TESTS 77 15 0 1600
3497833 MarioYC B April 9, 2013, 7:27 p.m. OK GNU C++ TESTS 77 15 0 1600
3502228 vjudge2 B April 11, 2013, 7:01 a.m. OK GNU C++ TESTS 77 15 0 1600
3502602 vjudge5 B April 11, 2013, 8:50 a.m. OK GNU C++ TESTS 77 15 0 1600
3502806 vjudge3 B April 11, 2013, 9:55 a.m. OK GNU C++ TESTS 77 15 0 1600
3502819 vjudge3 B April 11, 2013, 9:57 a.m. OK GNU C++ TESTS 77 15 0 1600
3502860 vjudge5 B April 11, 2013, 10:07 a.m. OK GNU C++ TESTS 77 15 0 1600
3503491 vjudge3 B April 11, 2013, 12:19 p.m. OK GNU C++ TESTS 77 15 0 1600
3137022 Chen_ChaoRui B Feb. 16, 2013, 2:45 p.m. OK GNU C++0x TESTS 77 15 0 1600
3852793 nebulae B June 10, 2013, 6:09 a.m. OK GNU C++0x TESTS 77 15 0 1600
3851235 A_Le_K B June 9, 2013, 3:36 p.m. OK GNU C++0x TESTS 77 15 0 1600
2995883 Doxer B Jan. 23, 2013, 8:01 a.m. OK GNU C++0x TESTS 77 15 102400 1600
3852724 nebulae B June 10, 2013, 5:39 a.m. OK GNU C++0x TESTS 77 15 102400 1600
5685251 sokian B Jan. 13, 2014, 4:15 p.m. OK GNU C++0x TESTS 77 30 0 1600
7411499 to_my_love B Aug. 10, 2014, 7:03 a.m. OK GNU C++0x TESTS 77 30 0 1600
9707299 heba_gamal B Feb. 3, 2015, 11:01 p.m. OK GNU C++0x TESTS 77 30 0 1600
5208588 irwan_ap B Nov. 24, 2013, 1:40 p.m. OK GNU C++0x TESTS 77 30 0 1600
5614713 sping128 B Jan. 4, 2014, 8:43 a.m. OK GNU C++0x TESTS 77 30 0 1600
22586972 Batpro B Nov. 28, 2016, 10:07 p.m. OK GNU C++11 TESTS 77 30 0 1600
22586912 Captain_JackSparrow B Nov. 28, 2016, 9:58 p.m. OK GNU C++11 TESTS 77 30 0 1600
21756943 spentplaying B Oct. 24, 2016, 6:27 p.m. OK GNU C++11 TESTS 77 30 0 1600
30630053 hamtory B Sept. 23, 2017, 4:41 a.m. OK GNU C++11 TESTS 77 30 0 1600
30309484 Chunchao B Sept. 13, 2017, 2:34 p.m. OK GNU C++11 TESTS 77 30 0 1600
30286448 shyoldman B Sept. 12, 2017, 12:44 p.m. OK GNU C++11 TESTS 77 30 0 1600
29711574 ea6102 B Aug. 23, 2017, 3:37 p.m. OK GNU C++11 TESTS 77 30 0 1600
27790362 saisurya027 B June 15, 2017, 9:21 a.m. OK GNU C++11 TESTS 77 30 0 1600
27716304 eisenheim01 B June 11, 2017, 6:55 a.m. OK GNU C++11 TESTS 77 30 0 1600
27656317 mrwhite B June 7, 2017, 6:08 p.m. OK GNU C++11 TESTS 77 30 0 1600
21715775 Silver_ B Oct. 23, 2016, 3:12 p.m. OK GNU C++14 TESTS 77 30 0 1600
20425773 Mohamed_Shawkat B Sept. 6, 2016, 9:44 p.m. OK GNU C++14 TESTS 77 30 0 1600
27827625 Math_Master B June 16, 2017, 2:41 p.m. OK GNU C++14 TESTS 77 30 0 1600
29963632 pPractise B Sept. 1, 2017, 3:44 a.m. OK GNU C++14 TESTS 77 30 0 1600
30285488 shyoldman B Sept. 12, 2017, 12:04 p.m. OK GNU C++14 TESTS 77 30 0 1600
31944557 Dalenator B Nov. 1, 2017, 9:38 a.m. OK GNU C++14 TESTS 77 30 0 1600
27508272 Solve_Every_Where B June 1, 2017, 6:33 p.m. OK GNU C++14 TESTS 77 30 0 1600
26897451 mostafa-elmohandes B May 6, 2017, 9:18 a.m. OK GNU C++14 TESTS 77 30 0 1600
22814774 CodyMaker B Dec. 8, 2016, 4:10 p.m. OK GNU C++14 TESTS 77 30 0 1600
21829773 neil145912 B Oct. 27, 2016, 5 p.m. OK GNU C++14 TESTS 77 30 0 1600
52555144 ashishkr23438 B April 10, 2019, 7:17 a.m. OK GNU C++17 TESTS 77 60 0 1600
42556352 ruo B Sept. 6, 2018, 2:21 p.m. OK GNU C++17 TESTS 77 60 307200 1600
49514909 ggml B Feb. 6, 2019, 1:11 a.m. OK GNU C++17 TESTS 77 60 307200 1600
67029174 drishtadyumn B Dec. 16, 2019, 3:19 p.m. OK GNU C++17 TESTS 77 62 0 1600
68659643 jineshj2800 B Jan. 12, 2020, 1:15 p.m. OK GNU C++17 TESTS 77 62 0 1600
68338583 VagrantAC B Jan. 7, 2020, 1:04 a.m. OK GNU C++17 TESTS 77 62 0 1600
67692637 voltag3 B Dec. 27, 2019, 11:47 a.m. OK GNU C++17 TESTS 77 62 0 1600
67162915 m.shreyansh B Dec. 18, 2019, 2:33 p.m. OK GNU C++17 TESTS 77 62 0 1600
66810175 vjudge4 B Dec. 14, 2019, 1:35 a.m. OK GNU C++17 TESTS 77 62 0 1600
59184421 manideep8 B Aug. 20, 2019, 6:02 p.m. OK GNU C++17 TESTS 77 62 0 1600
1668701 nickbuelich B May 8, 2012, 4:59 a.m. OK Java 6 TESTS 77 80 43110400 1600
3471167 santjuan B April 4, 2013, 2:43 a.m. OK Java 6 TESTS 77 93 0 1600
3471328 sfmunera B April 4, 2013, 3:58 a.m. OK Java 6 TESTS 77 93 0 1600
3471359 DiegoAE B April 4, 2013, 4:17 a.m. OK Java 6 TESTS 77 93 0 1600
3996408 mkirsche B June 30, 2013, 3:22 p.m. OK Java 6 TESTS 77 93 2252800 1600
5665319 Ahed-Alrashaida B Jan. 12, 2014, 1:03 p.m. OK Java 6 TESTS 77 124 0 1600
5461562 alibaba B Dec. 18, 2013, 3:09 p.m. OK Java 6 TESTS 77 124 2252800 1600
2819743 xiaowuc1 B Dec. 23, 2012, 4:35 p.m. OK Java 6 TESTS 77 125 2252800 1600
2016660 tipra_lawsiaj B Aug. 15, 2012, 12:22 p.m. OK Java 6 TESTS 77 130 43212800 1600
1969275 ilovepink B Aug. 1, 2012, 9:33 p.m. OK Java 6 TESTS 77 160 43315200 1600
4100186 Elabasery B July 18, 2013, 4:16 p.m. OK Java 7 TESTS 77 78 0 1600
4100087 Mostafa_Hamdy B July 18, 2013, 3:43 p.m. OK Java 7 TESTS 77 78 0 1600
3264695 Spellbound B March 8, 2013, 7:28 a.m. OK Java 7 TESTS 77 109 0 1600
2395147 eipie B Oct. 21, 2012, 6:37 a.m. OK Java 7 TESTS 77 109 0 1600
4081431 0p9o8i B July 16, 2013, 2:54 p.m. OK Java 7 TESTS 77 109 102400 1600
5656906 aladdin3 B Jan. 10, 2014, 7:29 p.m. OK Java 7 TESTS 77 124 0 1600
7577623 DL.Meteor B Aug. 26, 2014, 6:49 a.m. OK Java 7 TESTS 77 154 0 1600
12331322 kirik13 B Aug. 3, 2015, 11:02 p.m. OK Java 7 TESTS 77 154 0 1600
7577841 DL.Meteor B Aug. 26, 2014, 7:23 a.m. OK Java 7 TESTS 77 154 0 1600
9444487 upsolving B Jan. 16, 2015, 3:15 p.m. OK Java 7 TESTS 77 154 0 1600
18616254 El5dewy B June 20, 2016, 3:05 p.m. OK Java 8 TESTS 77 218 0 1600
27573527 Carson B June 5, 2017, 12:48 a.m. OK Java 8 TESTS 77 218 0 1600
11825138 Hartha B June 28, 2015, 3:19 p.m. OK Java 8 TESTS 77 218 0 1600
47497348 deepak4669 B Dec. 25, 2018, 3:44 p.m. OK Java 8 TESTS 77 218 0 1600
11092693 poikniok B May 13, 2015, 8 p.m. OK Java 8 TESTS 77 218 0 1600
29545954 rtoni B Aug. 18, 2017, 7:54 a.m. OK Java 8 TESTS 77 218 0 1600
25245396 xodiac B March 5, 2017, 12:35 p.m. OK Java 8 TESTS 77 218 20172800 1600
57583673 di_halt B July 23, 2019, 9:45 a.m. OK Java 8 TESTS 77 248 0 1600
62931451 BiggestPrime B Oct. 19, 2019, 12:50 p.m. OK Java 8 TESTS 77 248 0 1600
52123332 vjudge3 B March 31, 2019, 4:33 p.m. OK Java 8 TESTS 77 248 0 1600
19193011 anvesh16 B July 17, 2016, 4:09 p.m. OK JavaScript TESTS 77 62 204800 1600
29168023 fexolm B Aug. 3, 2017, 4:23 p.m. OK MS C# TESTS 77 92 9318400 1600
33468062 sameh_isaac B Dec. 21, 2017, 12:23 a.m. OK MS C# TESTS 77 92 11776000 1600
22842521 og.kostya B Dec. 9, 2016, 7:30 p.m. OK MS C# TESTS 77 124 2560000 1600
3082682 Trytrytry B Feb. 8, 2013, 6:42 a.m. OK MS C++ TESTS 77 15 0 1600
3148282 Khersiii B Feb. 19, 2013, 8:15 p.m. OK MS C++ TESTS 77 15 3993600 1600
7749747 JaoChenJzhong B Sept. 12, 2014, 8:54 a.m. OK MS C++ TESTS 77 30 0 1600
4607090 Vlad_kv B Sept. 29, 2013, 5:57 p.m. OK MS C++ TESTS 77 30 0 1600
5023265 Roms B Nov. 7, 2013, 2:06 p.m. OK MS C++ TESTS 77 30 0 1600
5359685 Sloe B Dec. 6, 2013, 10:26 a.m. OK MS C++ TESTS 77 30 0 1600
13954774 Sunnat B Oct. 30, 2015, 2:55 p.m. OK MS C++ TESTS 77 30 0 1600
5409265 carber B Dec. 11, 2013, 12:36 p.m. OK MS C++ TESTS 77 30 0 1600
22898610 siscon_org B Dec. 12, 2016, 6:27 a.m. OK MS C++ TESTS 77 30 0 1600
14427547 moreda B Nov. 23, 2015, 1:57 p.m. OK MS C++ TESTS 77 30 0 1600
66810783 vjudge5 B Dec. 14, 2019, 2:11 a.m. OK MS C++ 2017 TESTS 77 92 307200 1600
15416528 kofhearts B Jan. 17, 2016, 3:58 p.m. OK PyPy 2 TESTS 77 216 0 1600
60452425 rajat_2548 B Sept. 12, 2019, 4:30 p.m. OK PyPy 2 TESTS 77 248 0 1600
62827290 ashok123 B Oct. 17, 2019, 6:30 p.m. OK PyPy 2 TESTS 77 248 0 1600
59945628 LukaSsS B Sept. 3, 2019, 12:54 p.m. OK PyPy 3 TESTS 77 280 0 1600
60246709 _Shravann_ B Sept. 8, 2019, 3:24 a.m. OK PyPy 3 TESTS 77 280 0 1600
66935636 ashwin2000 B Dec. 15, 2019, 8:24 a.m. OK PyPy 3 TESTS 77 280 0 1600
62056305 Voneone B Oct. 7, 2019, 12:12 p.m. OK PyPy 3 TESTS 77 280 0 1600
20160791 yashar_sb_sb B Aug. 25, 2016, 5:49 p.m. OK PyPy 3 TESTS 77 280 23040000 1600
66756676 rivalq B Dec. 13, 2019, 6:16 a.m. OK PyPy 3 TESTS 77 310 0 1600
2094520 xlk B Sept. 4, 2012, 6:57 a.m. OK Python 2 TESTS 77 60 2457600 1600
1406531 Kelang B March 24, 2012, 8:31 p.m. OK Python 2 TESTS 77 60 2867200 1600
2681108 daidailanlan B Nov. 30, 2012, 3:17 p.m. OK Python 2 TESTS 77 62 0 1600
3358001 hs484 B March 19, 2013, 4:55 p.m. OK Python 2 TESTS 77 62 0 1600
2470083 dut200901102 B Oct. 30, 2012, 10:35 a.m. OK Python 2 TESTS 77 78 0 1600
2470070 dut200901102 B Oct. 30, 2012, 10:28 a.m. OK Python 2 TESTS 77 78 0 1600
4832006 Unlenin B Oct. 20, 2013, 7:42 a.m. OK Python 2 TESTS 77 92 0 1600
26223650 Peral B April 8, 2017, 5:01 p.m. OK Python 2 TESTS 77 92 4710400 1600
15914863 not_bot_but_POT B Feb. 9, 2016, 1:54 p.m. OK Python 2 TESTS 77 122 0 1600
13001773 m7mdbadawy B Sept. 15, 2015, 12:30 a.m. OK Python 2 TESTS 77 122 0 1600
14827298 merolish B Dec. 15, 2015, 8:51 p.m. OK Python 3 TESTS 77 124 0 1600
5125256 yugle7 B Nov. 16, 2013, 12:18 p.m. OK Python 3 TESTS 77 124 0 1600
14817509 Eeyore B Dec. 15, 2015, 3:56 p.m. OK Python 3 TESTS 77 154 716800 1600
54087310 Mohamed_Ayman B May 14, 2019, 8:15 a.m. OK Python 3 TESTS 77 218 0 1600
52055500 vjudge5 B March 30, 2019, 7:54 p.m. OK Python 3 TESTS 77 218 307200 1600
42123328 Mk_Python_v1 B Aug. 26, 2018, 1:39 p.m. OK Python 3 TESTS 77 248 0 1600
67092505 wakii B Dec. 17, 2019, 3:38 p.m. OK Python 3 TESTS 77 248 307200 1600
49393083 AMosa3d B Feb. 3, 2019, 11:05 a.m. OK Python 3 TESTS 77 248 307200 1600
17417864 vinitgandhi007 B April 21, 2016, 11:18 a.m. OK Python 3 TESTS 77 278 6348800 1600
55825719 MajAK B June 20, 2019, 10:45 a.m. OK Python 3 TESTS 77 342 819200 1600
22802092 karthickpdy B Dec. 8, 2016, 5:23 a.m. OK Ruby TESTS 77 124 6451200 1600

remove filters

Back to search problems