Russian Code Cup 2016 - Finals [Unofficial Mirror, Div. 1 Only Recommended]

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
720 Russian Code Cup 2016 - Finals [Unofficial Mirror, Div. 1 Only Recommended] FINISHED False 7200 302295285 Sept. 18, 2016, 11:05 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 72 ) E Cipher PROGRAMMING implementation 3100

Borya has recently found a big electronic display. The computer that manages the display stores some integer number. The number has n decimal digits, the display shows the encoded version of the number, where each digit is shown using some lowercase letter of the English alphabet. There is a legend near the display, that describes how the number is encoded. For each digit position i and each digit j the character c is known, that encodes this digit at this position. Different digits can have the same code characters. Each second the number is increased by 1. And one second after a moment when the number reaches the value that is represented as n 9-s in decimal notation, the loud beep sounds. Andrew knows the number that is stored in the computer. Now he wants to know how many seconds must pass until Borya can definitely tell what was the original number encoded by the display. Assume that Borya can precisely measure time, and that the encoded number will first be increased exactly one second after Borya started watching at the display. Input data contains multiple test cases. The first line of input contains t ( 1 ≤ t ≤ 100 ) — the number of test cases. Each test case is described as follows. The first line of the description contains n ( 1 ≤ n ≤ 18 ) — the number of digits in the number. The second line contains n decimal digits without spaces (but possibly with leading zeroes) — the number initially stored in the display computer. The following n lines contain 10 characters each. The j -th character of the i -th of these lines is the code character for a digit j - 1 in position i , most significant digit positions are described first. For each test case print an integer: the number of seconds until Borya definitely knows what was the initial number stored on the display of the computer. Do not print leading zeroes.

Tutorials

Russian Code Cup 2016 — Results and Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
21311569 Los_Angelos_Laycurse E Oct. 9, 2016, 7:03 a.m. OK GNU C++ TESTS 27 15 2048000 3100
21311544 Los_Angelos_Laycurse E Oct. 9, 2016, 7:01 a.m. OK GNU C++ TESTS 27 15 2048000 3100
40983586 ReaLNero1 E July 30, 2018, 6:56 p.m. OK GNU C++ TESTS 27 31 0 3100
21518104 guille E Oct. 17, 2016, 11:58 a.m. OK GNU C++ TESTS 27 31 2048000 3100
21241150 visitWorld E Oct. 6, 2016, 4:49 p.m. OK GNU C++ TESTS 27 312 0 3100
25138208 Dylans E March 2, 2017, 12:59 a.m. OK GNU C++ TESTS 27 390 2048000 3100
20994582 krijgertje E Sept. 29, 2016, 2:08 p.m. OK GNU C++11 TESTS 27 15 0 3100
20803571 danick E Sept. 21, 2016, 6:17 p.m. OK GNU C++11 TESTS 27 30 0 3100
22598098 codemasterisme E Nov. 29, 2016, 12:18 p.m. OK GNU C++11 TESTS 27 31 0 3100
20746510 winger E Sept. 19, 2016, 2:17 a.m. OK GNU C++11 TESTS 27 171 0 3100
57879002 lopare E July 28, 2019, 6:53 a.m. OK GNU C++11 TESTS 27 249 0 3100
57814130 py_ultron E July 26, 2019, 6:48 p.m. OK GNU C++11 TESTS 27 249 0 3100
50624179 0202 E March 1, 2019, 4:40 a.m. OK GNU C++11 TESTS 27 249 0 3100
27626343 I_Love_Umirzhanova_Amina E June 7, 2017, 6:17 a.m. OK GNU C++11 TESTS 27 312 0 3100
35340455 Georgia_001 E Feb. 16, 2018, 2:28 p.m. OK GNU C++11 TESTS 27 327 2048000 3100
23364964 Ali.Pi E Dec. 27, 2016, 6:23 p.m. OK GNU C++14 TESTS 27 15 1945600 3100
22267645 NiroBC E Nov. 16, 2016, 1:05 p.m. OK GNU C++14 TESTS 27 31 0 3100
20760503 armanatrin79 E Sept. 19, 2016, 4:29 p.m. OK GNU C++14 TESTS 27 171 204800 3100
20746511 winger E Sept. 19, 2016, 2:17 a.m. OK GNU C++14 TESTS 27 171 204800 3100
23994364 havar_xxx_qu E Jan. 20, 2017, 5:10 p.m. OK GNU C++14 TESTS 27 187 1945600 3100
21069666 LasHa1998 E Oct. 1, 2016, 1:11 p.m. OK GNU C++14 TESTS 27 296 0 3100
20812902 Philipsweng E Sept. 22, 2016, 8:38 a.m. OK GNU C++14 TESTS 27 296 0 3100
21190762 vkla E Oct. 4, 2016, 3:55 p.m. OK GNU C++14 TESTS 27 312 0 3100
20902017 DAVID-Z E Sept. 25, 2016, 6:44 a.m. OK GNU C++14 TESTS 27 312 0 3100
24426113 Batman E Feb. 4, 2017, 6:36 a.m. OK GNU C++14 TESTS 27 343 1843200 3100
50481471 Shayan.P E Feb. 25, 2019, 9:13 a.m. OK GNU C++17 TESTS 27 31 0 3100
57122761 Benq E July 16, 2019, 2:22 a.m. OK GNU C++17 TESTS 27 748 204800 3100

remove filters

Back to search problems