Codeforces Beta Round 63 (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
69 Codeforces Beta Round 63 (Div. 2) FINISHED False 7200 475596023 March 22, 2011, 4 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 672 ) C Game PROGRAMMING implementation 1900

In one school with Vasya there is a student Kostya. Kostya does not like physics, he likes different online games. Every day, having come home, Kostya throws his bag in the farthest corner and sits down at his beloved computer. Kostya even eats glued to the game. A few days ago Kostya bought a new RPG game "HaresButtle", which differs from all other games in this genre. It has a huge number of artifacts. As we know, artifacts are divided into basic and composite ones. Only the basic artifacts are available on sale. More powerful composite artifacts are collected from some number of basic artifacts. After the composing composite artifact, all the components disappear. Kostya is the head of the alliance, so he has to remember, what artifacts has not only himself, but also his allies. You must identify by sequence of artifacts purchased by Kostya and his allies, how many and which artifacts has been collected by each of them. It is believed that initially no one has any artifacts. The first line has 4 natural numbers: k ( 1 ≤ k ≤ 100 ) — the number of Kostya's allies, n ( 1 ≤ n ≤ 50 ) — the number of basic artifacts, m ( 0 ≤ m ≤ 50 ) — the number of composite artifacts, q ( 1 ≤ q ≤ 500 ) — the number of his friends' purchases. The following n lines contain the names of basic artifacts. After them m lines contain the descriptions of composite artifacts in the following format: : , , ... All the numbers are natural numbers not exceeding 100 ( 1 ≤ X ≤ n ). The names of all artifacts are different, they are composed of lowercase Latin letters, and the length of each name is from 1 to 100 characters inclusive. All the words in the format of the description of a composite artifact are separated by exactly one space. It is guaranteed that all components of the new artifact are different and have already been met in the input data as the names of basic artifacts. Next, each of the following q lines is characterized by the number a i , the number of a friend who has b

Tutorials

Analysis Codeforces Beta Round #63 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
40992949 ReaLNero1 C July 31, 2018, 1:40 a.m. OK GNU C++ TESTS 47 62 1024000 1900
36375226 vjudge3 C March 18, 2018, 2:54 a.m. OK GNU C++ TESTS 47 62 3686400 1900
59363031 rainboy C Aug. 23, 2019, 4:04 p.m. OK GNU C11 TESTS 47 62 1126400 1900
40169873 Ahmad__ C July 10, 2018, 11:55 a.m. OK GNU C++11 TESTS 47 62 102400 1900
40151148 Ahmad__ C July 9, 2018, 9 p.m. OK GNU C++11 TESTS 47 62 102400 1900
51484987 nanatoday C March 19, 2019, 1:11 p.m. OK GNU C++11 TESTS 47 62 102400 1900
52458240 Xing_Ling C April 7, 2019, 12:24 p.m. OK GNU C++11 TESTS 47 62 204800 1900
52458103 Xing_Ling C April 7, 2019, 12:24 p.m. OK GNU C++11 TESTS 47 62 204800 1900
52457554 Xing_Ling C April 7, 2019, 12:19 p.m. OK GNU C++11 TESTS 47 62 204800 1900
51670888 nanatoday C March 22, 2019, 8:12 a.m. OK GNU C++11 TESTS 47 62 204800 1900
51618303 digcboy C March 21, 2019, 1:18 p.m. OK GNU C++11 TESTS 47 62 204800 1900
51474787 luogu_bot5 C March 19, 2019, 8:45 a.m. OK GNU C++11 TESTS 47 62 204800 1900
57905982 lopare C July 28, 2019, 5:38 p.m. OK GNU C++11 TESTS 47 62 204800 1900
35079847 haizhe C Feb. 9, 2018, 6:17 a.m. OK GNU C++14 TESTS 47 30 2252800 1900
37226976 alfadel C April 11, 2018, 2:36 p.m. OK GNU C++14 TESTS 47 60 4096000 1900
65108731 islammohsen C Nov. 15, 2019, 8:44 p.m. OK GNU C++14 TESTS 47 62 307200 1900
65108687 islammohsen C Nov. 15, 2019, 8:43 p.m. OK GNU C++14 TESTS 47 62 307200 1900
40463794 satvik007 C July 17, 2018, 5:51 a.m. OK GNU C++14 TESTS 47 62 307200 1900
69544032 Kareem_Khaled C Jan. 26, 2020, 12:17 a.m. OK GNU C++14 TESTS 47 62 307200 1900
40249767 I_love_Y_UME C July 13, 2018, 5:15 a.m. OK GNU C++14 TESTS 47 62 409600 1900
37227016 alfadel C April 11, 2018, 2:37 p.m. OK GNU C++14 TESTS 47 62 4096000 1900
36375956 carott C March 18, 2018, 4:09 a.m. OK GNU C++14 TESTS 47 62 4300800 1900
66897650 Hipster_ C Dec. 15, 2019, 3:08 a.m. OK GNU C++14 TESTS 47 62 8499200 1900
60267771 saketh C Sept. 8, 2019, 2:07 p.m. OK GNU C++17 TESTS 47 62 204800 1900
52933526 tnakao C April 18, 2019, 4:41 a.m. OK GNU C++17 TESTS 47 62 307200 1900
50146371 deadRabbit C Feb. 19, 2019, 4:29 a.m. OK GNU C++17 TESTS 47 62 307200 1900
61868318 arftdipto C Oct. 4, 2019, 5:17 p.m. OK GNU C++17 TESTS 47 62 512000 1900
68204151 Michicosun C Jan. 4, 2020, 4:51 p.m. OK GNU C++17 TESTS 47 62 512000 1900
59932242 platypus179 C Sept. 3, 2019, 7:47 a.m. OK GNU C++17 TESTS 47 62 614400 1900
59936504 Eran C Sept. 3, 2019, 9:41 a.m. OK GNU C++17 TESTS 47 62 1536000 1900
36376133 XGN C March 18, 2018, 4:23 a.m. OK GNU C++17 TESTS 47 62 3891200 1900
42808519 abhikalpu_123 C Sept. 12, 2018, 6:26 p.m. OK GNU C++17 TESTS 47 92 204800 1900
55118093 quake0 C June 5, 2019, 9:39 a.m. OK GNU C++17 TESTS 47 92 409600 1900
52321507 jcazalas C April 4, 2019, 8:05 p.m. OK Java 8 TESTS 47 248 0 1900
52514559 jlewis6 C April 9, 2019, 4 a.m. OK Java 8 TESTS 47 248 0 1900
52514526 Huhls C April 9, 2019, 3:58 a.m. OK Java 8 TESTS 47 248 0 1900
52514474 trillionaire C April 9, 2019, 3:54 a.m. OK Java 8 TESTS 47 248 0 1900
52321540 jcazalas C April 4, 2019, 8:06 p.m. OK Java 8 TESTS 47 280 0 1900
37110685 peTar3121 C April 8, 2018, 11 p.m. OK Java 8 TESTS 47 310 20787200 1900
59363030 Dukkha C Aug. 23, 2019, 4:04 p.m. OK Java 8 TESTS 47 404 0 1900
37105778 Rborr C April 8, 2018, 5:19 p.m. OK Java 8 TESTS 47 622 22937600 1900
42134194 Mk_Python_v1 C Aug. 26, 2018, 9:32 p.m. OK Python 3 TESTS 47 248 409600 1900
52341028 DannyGCM C April 5, 2019, 10:31 a.m. OK Python 3 TESTS 47 248 716800 1900
52314627 meicholtz C April 4, 2019, 4:22 p.m. OK Python 3 TESTS 47 248 921600 1900
52241213 meicholtz C April 2, 2019, 3:58 p.m. OK Python 3 TESTS 47 248 921600 1900
56016488 sorry_im_smurfing C June 24, 2019, 9:40 p.m. OK Ruby TESTS 47 248 716800 1900
43638019 DragoonKiller C Oct. 1, 2018, 9:46 a.m. OK Rust TESTS 47 62 307200 1900

remove filters

Back to search problems