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 |
---|---|---|---|---|---|---|
1462 | Codeforces Round 690 (Div. 3) | FINISHED | False | 7200 | 129223463 | Dec. 15, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 42902 ) | A | Favorite Sequence | PROGRAMMING | implementation two pointers |
B"Polycarp has a favorite sequence a[1 ... n] consisting of n integers. He wrote it out on the whiteboard as follows: For example, if n=7 and a=[3, 1, 4, 1, 5, 9, 2] , then Polycarp will write a sequence on the whiteboard [3, 4, 5, 2, 9, 1, 1] . You saw the sequence written on the whiteboard and now you want to restore Polycarp's favorite sequence. The first line contains a single positive integer t ( 1 <= t <= 300 ) -- the number of test cases in the test. Then t test cases follow. The first line of each test case contains an integer n ( 1 <= n <= 300 ) -- the length of the sequence written on the whiteboard. The next line contains n integers b_1, b_2, ldots, b_n ( 1 <= b_i <= 10^9 ) -- the sequence written on the whiteboard. Output t answers to the test cases. Each answer -- is a sequence a that Polycarp wrote out on the whiteboard. In the first test case, the sequence a matches the sequence from the statement. The whiteboard states after each step look like this: [3] Rightarrow [3, 1] Rightarrow [3, 4, 1] Rightarrow [3, 4, 1, 1] Rightarrow [3, 4, 5, 1, 1] Rightarrow [3, 4, 5, 9, 1, 1] Rightarrow [3, 4, 5, 2, 9, 1, 1] . "... |
Codeforces Round #690 (Div. 3) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
101390297 | Debasish1610177113 | A | Dec. 16, 2020, 6:56 a.m. | OK | .NET Core C# | TESTS | 20 | 140 | 3072000 | ||
101396411 | Ebu | A | Dec. 16, 2020, 7:59 a.m. | OK | .NET Core C# | TESTS | 20 | 170 | 3276800 | ||
101396265 | Ebu | A | Dec. 16, 2020, 7:57 a.m. | OK | .NET Core C# | TESTS | 20 | 202 | 3379200 | ||
101389902 | Debasish1610177113 | A | Dec. 16, 2020, 6:52 a.m. | OK | .NET Core C# | TESTS | 20 | 233 | 9420800 | ||
101449942 | mepromee | A | Dec. 16, 2020, 5:14 p.m. | OK | .NET Core C# | TESTS | 20 | 249 | 3174400 |
Back to search problems