2018-2019 Russia Open High School Programming Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred)

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
1090 2018-2019 Russia Open High School Programming Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) FINISHED False 18000 232062923 Dec. 9, 2018, 8:05 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 600 ) J Two Prefixes PROGRAMMING strings 2700

Misha didn't do his math homework for today's lesson once again. As a punishment, his teacher Dr. Andrew decided to give him a hard, but very useless task. Dr. Andrew has written two strings s and t of lowercase English letters at the blackboard. He reminded Misha that prefix of a string is a string formed by removing several (possibly none) of its last characters, and a concatenation of two strings is a string formed by appending the second string to the right of the first string. The teacher asked Misha to write down on the blackboard all strings that are the concatenations of some non-empty prefix of s and some non-empty prefix of t . When Misha did it, Dr. Andrew asked him how many distinct strings are there. Misha spent almost the entire lesson doing that and completed the task. Now he asks you to write a program that would do this task automatically. The first line contains the string s consisting of lowercase English letters. The second line contains the string t consisting of lowercase English letters. The lengths of both string do not exceed 10 5 . Output a single integer — the number of distinct strings that are concatenations of some non-empty prefix of s with some non-empty prefix of t . In the first example, the string s has three non-empty prefixes: { a , ab , aba }. The string t has two non-empty prefixes: { a , aa }. In total, Misha has written five distinct strings: { aa , aaa , aba , abaa , abaaa }. The string abaa has been written twice. In the second example, Misha has written eight distinct strings: { aa , aaa , aaaa , aaaaa , aaaaaa , aaaaaaa , aaaaaaaa , aaaaaaaaa }.

Tutorials

ru-olymp-team-russia-2018-presentation.pdf

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
46857397 Tooc0ld J Dec. 10, 2018, 3:42 p.m. OK GNU C++11 TESTS 62 31 1433600 2700
46915282 devanshg27 born2rule FundamentalEq J Dec. 11, 2018, 7:50 p.m. OK GNU C++11 TESTS 62 31 1740800 2700
46850234 yasugongshang J Dec. 10, 2018, 11:53 a.m. OK GNU C++11 TESTS 62 31 2048000 2700
46835497 HeHere J Dec. 10, 2018, 1:41 a.m. OK GNU C++11 TESTS 62 31 2048000 2700
53284883 207M J April 25, 2019, 1:31 p.m. OK GNU C++11 TESTS 62 31 2048000 2700
59813987 pbihao J Aug. 31, 2019, 2:35 p.m. OK GNU C++11 TESTS 62 31 2252800 2700
57734715 py_ultron J July 25, 2019, 9:36 a.m. OK GNU C++11 TESTS 62 31 2764800 2700
56140754 hanyuwei J June 27, 2019, 3:07 a.m. OK GNU C++11 TESTS 62 31 2867200 2700
61899271 lengyanze J Oct. 5, 2019, 8:09 a.m. OK GNU C++11 TESTS 62 31 2867200 2700
58412021 luogu_bot5 J Aug. 7, 2019, 2:16 a.m. OK GNU C++11 TESTS 62 31 2867200 2700
64266014 tiliguzov J Nov. 4, 2019, 5:23 p.m. OK GNU C++14 TESTS 62 30 2764800 2700
47534553 guanaco96 J Dec. 26, 2018, 11:04 p.m. OK GNU C++14 TESTS 62 31 1331200 2700
47534516 guanaco96 J Dec. 26, 2018, 11 p.m. OK GNU C++14 TESTS 62 31 1331200 2700
47534430 guanaco96 J Dec. 26, 2018, 10:53 p.m. OK GNU C++14 TESTS 62 31 1740800 2700
47534370 guanaco96 J Dec. 26, 2018, 10:48 p.m. OK GNU C++14 TESTS 62 31 1740800 2700
46924747 jslijin J Dec. 12, 2018, 7:51 a.m. OK GNU C++14 TESTS 62 31 1843200 2700
47816849 krijgertje J Jan. 1, 2019, 3 p.m. OK GNU C++14 TESTS 62 31 2048000 2700
49555053 wakaka J Feb. 7, 2019, 9:04 a.m. OK GNU C++14 TESTS 62 31 2764800 2700
46821731 chemthan J Dec. 9, 2018, 3:42 p.m. OK GNU C++14 TESTS 62 31 2867200 2700
51317367 Dreamless_Dreams J March 15, 2019, 2:15 a.m. OK GNU C++14 TESTS 62 31 2867200 2700
46974555 Minnakhmetov J Dec. 13, 2018, 3:46 p.m. OK GNU C++17 TESTS 62 15 3584000 2700
46923506 Nakagawa.Kanon J Dec. 12, 2018, 6:59 a.m. OK GNU C++17 TESTS 62 30 2560000 2700
50874531 CMXRYNP J March 6, 2019, 5:15 a.m. OK GNU C++17 TESTS 62 31 1536000 2700
58670716 Atreus J Aug. 12, 2019, 2:19 p.m. OK GNU C++17 TESTS 62 31 1740800 2700
46815139 TooDumbToWin DeshiBasara hitman623 J Dec. 9, 2018, 12:16 p.m. OK GNU C++17 TESTS 62 31 1740800 2700
48654549 ReaLNero1 J Jan. 21, 2019, 1:38 a.m. OK GNU C++17 TESTS 62 31 2764800 2700
46843151 I_Love_Equinox J Dec. 10, 2018, 9:08 a.m. OK GNU C++17 TESTS 62 31 2764800 2700
46843131 I_Love_Equinox J Dec. 10, 2018, 9:07 a.m. OK GNU C++17 TESTS 62 31 2764800 2700
47370093 zerolin J Dec. 22, 2018, 1:47 p.m. OK GNU C++17 TESTS 62 31 2867200 2700
47348713 saketh J Dec. 21, 2018, 11 p.m. OK GNU C++17 TESTS 62 31 2969600 2700
47000483 Jeel_Vaishnav J Dec. 14, 2018, 11:18 a.m. OK Java 8 TESTS 62 124 0 2700
46816785 golikovnik iakovlev.zakhar J Dec. 9, 2018, 12:48 p.m. OK Java 8 TESTS 62 124 0 2700
47802894 vjudge5 J Jan. 1, 2019, 3:03 a.m. OK MS C++ TESTS 62 93 6656000 2700
46811539 J Dec. 9, 2018, 11:13 a.m. OK Unknown TESTS 0 0 0 2700

remove filters

Back to search problems