Codeforces Beta Round 10

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
10 Codeforces Beta Round 10 FINISHED False 7200 504972880 April 15, 2010, 3:45 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 5593 ) D LCIS PROGRAMMING dp 2700

This problem differs from one which was on the online contest. The sequence a 1 , a 2 , ..., a n is called increasing, if a i < a i + 1 for i < n . The sequence s 1 , s 2 , ..., s k is called the subsequence of the sequence a 1 , a 2 , ..., a n , if there exist such a set of indexes 1 ≤ i 1 < i 2 < ... < i k ≤ n that a i j = s j . In other words, the sequence s can be derived from the sequence a by crossing out some elements. You are given two sequences of integer numbers. You are to find their longest common increasing subsequence, i.e. an increasing sequence of maximum length that is the subsequence of both sequences. The first line contains an integer n ( 1 ≤ n ≤ 500 ) — the length of the first sequence. The second line contains n space-separated integers from the range 0, 10 9 — elements of the first sequence. The third line contains an integer m ( 1 ≤ m ≤ 500 ) — the length of the second sequence. The fourth line contains m space-separated integers from the range 0, 10 9 — elements of the second sequence. In the first line output k — the length of the longest common increasing subsequence. In the second line output the subsequence itself. Separate the elements with a space. If there are several solutions, output any.

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
44728 ainu7 D April 15, 2010, 5:18 p.m. OK GNU C++ TESTS 60 230 11878400 2700
44332 Romka D April 15, 2010, 4:49 p.m. OK GNU C++ TESTS 60 280 19865600 2700
44306 Romka D April 15, 2010, 4:46 p.m. OK GNU C++ TESTS 60 280 19865600 2700
44775 cafelier D April 15, 2010, 5:23 p.m. OK GNU C++ TESTS 60 420 3891200 2700
44941 Oleg D April 15, 2010, 5:34 p.m. OK GNU C++ TESTS 60 950 16281600 2700
44937 RAVEman D April 15, 2010, 5:34 p.m. OK MS C++ TESTS 60 940 22323200 2700

remove filters

Back to search problems