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 |
---|---|---|---|---|---|---|
1110 | Codeforces Global Round 1 | FINISHED | False | 7200 | 187979123 | Feb. 7, 2019, 1:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 4242 ) | E | Magic Stones | PROGRAMMING | constructive algorithms math sortings | 2200 |
B'Grigory has n magic stones, conveniently numbered from 1 to n . The charge of the i -th stone is equal to c_i . Sometimes Grigory gets bored and selects some inner stone (that is, some stone with index i , where 2 <= i <= n - 1 ), and after that synchronizes it with neighboring stones. After that, the chosen stone loses its own charge, but acquires the charges from neighboring stones. In other words, its charge c_i changes to c_i ' = c_{i + 1} + c_{i - 1} - c_i . Andrew, Grigory 's friend, also has n stones with charges t_i . Grigory is curious, whether there exists a sequence of zero or more synchronization operations, which transforms charges of Grigory 's stones into charges of corresponding Andrew 's stones, that is, changes c_i into t_i for all i ? The first line contains one integer n ( 2 <= n <= 10^5 ) -- the number of magic stones. The second line contains integers c_1, c_2, ldots, c_n ( 0 <= c_i <= 2 cdot 10^9 ) -- the charges of Grigory 's stones. The second line contains integers t_1, t_2, ldots, t_n ( 0 <= t_i <= 2 cdot 10^9 ) -- the charges of Andrew 's stones. If there exists a (possibly empty) sequence of synchronization operations, which changes all charges to the required ones, print "Yes". Otherwise, print "No". In the first example, we can perform the following synchronizations ( 1 -indexed): In the second example, any operation with the second stone will not change its charge. '... |
The Editorial of the First Codeforces Global Round |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
50882609 | vjudge3 | E | March 6, 2019, 9:36 a.m. | OK | Clang++17 Diagnostics | TESTS | 54 | 233 | 2867200 | 2200 | |
50882593 | vjudge3 | E | March 6, 2019, 9:35 a.m. | OK | Clang++17 Diagnostics | TESTS | 54 | 234 | 2867200 | 2200 | |
52145600 | ouuan | E | April 1, 2019, 9:09 a.m. | OK | Clang++17 Diagnostics | TESTS | 54 | 685 | 7270400 | 2200 | |
49586980 | Gassa | E | Feb. 7, 2019, 2:48 p.m. | OK | D | TESTS | 54 | 108 | 11571200 | 2200 | |
49632708 | ruban | E | Feb. 8, 2019, 4:56 p.m. | OK | Delphi | TESTS | 54 | 140 | 200601600 | 2200 | |
49943244 | geeyiiz | E | Feb. 15, 2019, 10:49 a.m. | OK | GNU C11 | TESTS | 54 | 78 | 1638400 | 2200 | |
49907556 | hankeke | E | Feb. 14, 2019, 12:43 p.m. | OK | GNU C++11 | TESTS | 54 | 31 | 819200 | 2200 | |
58470736 | xcxxcx | E | Aug. 8, 2019, 11:54 p.m. | OK | GNU C++11 | TESTS | 54 | 31 | 1433600 | 2200 | |
58470738 | luogu_bot5 | E | Aug. 8, 2019, 11:54 p.m. | OK | GNU C++11 | TESTS | 54 | 31 | 1433600 | 2200 | |
58077263 | bojverdict2 | E | July 31, 2019, 12:47 p.m. | OK | GNU C++11 | TESTS | 54 | 31 | 2662400 | 2200 | |
49610130 | Qingyu | E | Feb. 7, 2019, 11:03 p.m. | OK | GNU C++11 | TESTS | 54 | 31 | 9011200 | 2200 | |
56414876 | luogu_bot5 | E | July 2, 2019, 3:43 a.m. | OK | GNU C++11 | TESTS | 54 | 31 | 15872000 | 2200 | |
50144533 | luogu_bot3 | E | Feb. 19, 2019, 2:35 a.m. | OK | GNU C++11 | TESTS | 54 | 46 | 614400 | 2200 | |
50042704 | luogu_bot4 | E | Feb. 17, 2019, 3:25 a.m. | OK | GNU C++11 | TESTS | 54 | 46 | 614400 | 2200 | |
50042698 | nianheng | E | Feb. 17, 2019, 3:25 a.m. | OK | GNU C++11 | TESTS | 54 | 46 | 614400 | 2200 | |
59079547 | luogu_bot4 | E | Aug. 19, 2019, 8:32 a.m. | OK | GNU C++11 | TESTS | 54 | 46 | 614400 | 2200 | |
49611479 | wleung_bvg | E | Feb. 8, 2019, 1:25 a.m. | OK | GNU C++14 | TESTS | 54 | 46 | 921600 | 2200 | |
49612595 | nickluo | E | Feb. 8, 2019, 3:10 a.m. | OK | GNU C++14 | TESTS | 54 | 46 | 1331200 | 2200 | |
49612533 | nickluo | E | Feb. 8, 2019, 3:05 a.m. | OK | GNU C++14 | TESTS | 54 | 46 | 1331200 | 2200 | |
49601532 | tokitsukaze | E | Feb. 7, 2019, 5:20 p.m. | OK | GNU C++14 | TESTS | 54 | 46 | 2560000 | 2200 | |
49590217 | hagikaze | E | Feb. 7, 2019, 3:03 p.m. | OK | GNU C++14 | TESTS | 54 | 46 | 2560000 | 2200 | |
49612254 | HatsuneMikuo | E | Feb. 8, 2019, 2:48 a.m. | OK | GNU C++14 | TESTS | 54 | 46 | 5529600 | 2200 | |
49589121 | interestingLSY | E | Feb. 7, 2019, 2:58 p.m. | OK | GNU C++14 | TESTS | 54 | 46 | 5632000 | 2200 | |
49599780 | H4XeO6 | E | Feb. 7, 2019, 4:45 p.m. | OK | GNU C++14 | TESTS | 54 | 62 | 1126400 | 2200 | |
49630037 | lazyc97 | E | Feb. 8, 2019, 3:31 p.m. | OK | GNU C++14 | TESTS | 54 | 62 | 1740800 | 2200 | |
49647795 | tjd229 | E | Feb. 9, 2019, 5:53 a.m. | OK | GNU C++14 | TESTS | 54 | 62 | 1843200 | 2200 | |
49584964 | Trisolaris | E | Feb. 7, 2019, 2:40 p.m. | OK | GNU C++17 | TESTS | 54 | 46 | 921600 | 2200 | |
54887230 | .tx | E | May 31, 2019, 6:04 p.m. | OK | GNU C++17 | TESTS | 54 | 46 | 1638400 | 2200 | |
49589899 | Qingyu | E | Feb. 7, 2019, 3:01 p.m. | OK | GNU C++17 | TESTS | 54 | 46 | 9318400 | 2200 | |
49592308 | Real_EnderDragon | E | Feb. 7, 2019, 3:13 p.m. | OK | GNU C++17 | TESTS | 54 | 62 | 1126400 | 2200 | |
49609745 | mohamedeltair | E | Feb. 7, 2019, 10:32 p.m. | OK | GNU C++17 | TESTS | 54 | 62 | 1843200 | 2200 | |
49694552 | sundaysea | E | Feb. 10, 2019, 1:05 p.m. | OK | GNU C++17 | TESTS | 54 | 62 | 1843200 | 2200 | |
49609891 | mohamedeltair | E | Feb. 7, 2019, 10:44 p.m. | OK | GNU C++17 | TESTS | 54 | 62 | 1843200 | 2200 | |
49599091 | RCG | E | Feb. 7, 2019, 4:36 p.m. | OK | GNU C++17 | TESTS | 54 | 62 | 3174400 | 2200 | |
68380404 | nbsjy | E | Jan. 8, 2020, 12:12 a.m. | OK | GNU C++17 | TESTS | 54 | 77 | 819200 | 2200 | |
52345065 | maximumSHOT | E | April 5, 2019, 12:20 p.m. | OK | GNU C++17 | TESTS | 54 | 77 | 819200 | 2200 | |
49640152 | Young_god | E | Feb. 8, 2019, 9:07 p.m. | OK | Go | TESTS | 54 | 218 | 4505600 | 2200 | |
49889963 | 2008061626 | E | Feb. 14, 2019, 2:37 a.m. | OK | Go | TESTS | 54 | 218 | 5324800 | 2200 | |
49606801 | savinov | E | Feb. 7, 2019, 7:59 p.m. | OK | Go | TESTS | 54 | 218 | 5324800 | 2200 | |
49668358 | KharYusuf | E | Feb. 9, 2019, 3:32 p.m. | OK | Java 8 | TESTS | 54 | 124 | 0 | 2200 | |
49613044 | aman28rwt | E | Feb. 8, 2019, 3:39 a.m. | OK | Java 8 | TESTS | 54 | 139 | 0 | 2200 | |
50127099 | mufaddalnaya | E | Feb. 18, 2019, 5:16 p.m. | OK | Java 8 | TESTS | 54 | 139 | 0 | 2200 | |
50125938 | mufaddalnaya | E | Feb. 18, 2019, 5:10 p.m. | OK | Java 8 | TESTS | 54 | 140 | 0 | 2200 | |
49675833 | xodiac | E | Feb. 9, 2019, 7:41 p.m. | OK | Java 8 | TESTS | 54 | 140 | 0 | 2200 | |
49620165 | StayAwayFromBitches | E | Feb. 8, 2019, 8:56 a.m. | OK | Java 8 | TESTS | 54 | 140 | 0 | 2200 | |
49611708 | wery0 | E | Feb. 8, 2019, 1:44 a.m. | OK | Java 8 | TESTS | 54 | 140 | 0 | 2200 | |
65445894 | dalt | E | Nov. 20, 2019, 3:58 p.m. | OK | Java 8 | TESTS | 54 | 140 | 19148800 | 2200 | |
49632457 | Celesta | E | Feb. 8, 2019, 4:49 p.m. | OK | Java 8 | TESTS | 54 | 155 | 0 | 2200 | |
49676849 | jenish9599 | E | Feb. 9, 2019, 8:22 p.m. | OK | Java 8 | TESTS | 54 | 155 | 0 | 2200 | |
50584812 | exs | E | Feb. 28, 2019, 2:19 a.m. | OK | Kotlin | TESTS | 54 | 234 | 7782400 | 2200 | |
49611204 | eki | E | Feb. 8, 2019, 12:58 a.m. | OK | Mono C# | TESTS | 54 | 140 | 24678400 | 2200 | |
49688878 | claw88 | E | Feb. 10, 2019, 9:52 a.m. | OK | Mono C# | TESTS | 54 | 140 | 29900800 | 2200 | |
52927333 | TrabajoNocturno | E | April 17, 2019, 9:47 p.m. | OK | Mono C# | TESTS | 54 | 155 | 96768000 | 2200 | |
49593676 | selpo | E | Feb. 7, 2019, 3:19 p.m. | OK | Mono C# | TESTS | 54 | 171 | 35942400 | 2200 | |
51849326 | wjfwjfwjf | E | March 26, 2019, 6:59 a.m. | OK | MS C++ | TESTS | 54 | 61 | 819200 | 2200 | |
60672807 | vjudge2 | E | Sept. 16, 2019, 11:25 a.m. | OK | MS C++ | TESTS | 54 | 61 | 819200 | 2200 | |
64467724 | vjudge5 | E | Nov. 7, 2019, 12:12 p.m. | OK | MS C++ | TESTS | 54 | 62 | 1638400 | 2200 | |
64311813 | vjudge2 | E | Nov. 5, 2019, 12:58 p.m. | OK | MS C++ | TESTS | 54 | 62 | 1638400 | 2200 | |
63078298 | vjudge5 | E | Oct. 21, 2019, 2:20 p.m. | OK | MS C++ | TESTS | 54 | 62 | 1638400 | 2200 | |
50084058 | vjudge3 | E | Feb. 18, 2019, 6:23 a.m. | OK | MS C++ | TESTS | 54 | 62 | 1638400 | 2200 | |
50084056 | vjudge4 | E | Feb. 18, 2019, 6:23 a.m. | OK | MS C++ | TESTS | 54 | 62 | 1638400 | 2200 | |
49602686 | Ivan11 | E | Feb. 7, 2019, 5:56 p.m. | OK | MS C++ | TESTS | 54 | 62 | 2764800 | 2200 | |
49600709 | dkyun | E | Feb. 7, 2019, 5:02 p.m. | OK | MS C++ | TESTS | 54 | 77 | 1638400 | 2200 | |
49765394 | RomeoFantastik | E | Feb. 11, 2019, 11:26 a.m. | OK | MS C++ | TESTS | 54 | 78 | 819200 | 2200 | |
53805954 | petko_mitkov | E | May 6, 2019, 12:46 a.m. | OK | MS C++ 2017 | TESTS | 54 | 78 | 1638400 | 2200 | |
64357770 | vjudge3 | E | Nov. 6, 2019, 10:49 a.m. | OK | MS C++ 2017 | TESTS | 54 | 78 | 1843200 | 2200 | |
54805419 | R99 | E | May 29, 2019, 1:51 p.m. | OK | MS C++ 2017 | TESTS | 54 | 93 | 1638400 | 2200 | |
64357546 | vjudge5 | E | Nov. 6, 2019, 10:45 a.m. | OK | MS C++ 2017 | TESTS | 54 | 93 | 1638400 | 2200 | |
64221117 | vjudge3 | E | Nov. 4, 2019, 1:38 p.m. | OK | MS C++ 2017 | TESTS | 54 | 93 | 1638400 | 2200 | |
64218870 | vjudge4 | E | Nov. 4, 2019, 1:33 p.m. | OK | MS C++ 2017 | TESTS | 54 | 93 | 1843200 | 2200 | |
64215673 | vjudge1 | E | Nov. 4, 2019, 1:28 p.m. | OK | MS C++ 2017 | TESTS | 54 | 93 | 1843200 | 2200 | |
57872523 | yuanhaowei | E | July 28, 2019, 2:53 a.m. | OK | MS C++ 2017 | TESTS | 54 | 93 | 3174400 | 2200 | |
49944727 | DavitMarg | E | Feb. 15, 2019, 11:31 a.m. | OK | MS C++ 2017 | TESTS | 54 | 202 | 1638400 | 2200 | |
50588415 | tangbinjie | E | Feb. 28, 2019, 5:46 a.m. | OK | MS C++ 2017 | TESTS | 54 | 202 | 1638400 | 2200 | |
49633043 | YESMAths | E | Feb. 8, 2019, 5:10 p.m. | OK | PyPy 2 | TESTS | 54 | 187 | 9830400 | 2200 | |
49598620 | c1729 | E | Feb. 7, 2019, 4:31 p.m. | OK | PyPy 2 | TESTS | 54 | 187 | 11878400 | 2200 | |
50731914 | sy_chen | E | March 3, 2019, 11:25 a.m. | OK | PyPy 2 | TESTS | 54 | 202 | 10035200 | 2200 | |
61335806 | pajenegod | E | Sept. 26, 2019, 4:23 p.m. | OK | PyPy 2 | TESTS | 54 | 202 | 11161600 | 2200 | |
49610851 | conjecture_xyz | E | Feb. 8, 2019, 12:19 a.m. | OK | PyPy 2 | TESTS | 54 | 202 | 15155200 | 2200 | |
49610204 | gatsko | E | Feb. 7, 2019, 11:09 p.m. | OK | PyPy 2 | TESTS | 54 | 218 | 16793600 | 2200 | |
49623522 | frederika | E | Feb. 8, 2019, 10:40 a.m. | OK | PyPy 2 | TESTS | 54 | 233 | 11980800 | 2200 | |
49753028 | Regius | E | Feb. 11, 2019, 4:15 a.m. | OK | PyPy 3 | TESTS | 54 | 296 | 15462400 | 2200 | |
49620372 | BB2211 | E | Feb. 8, 2019, 9:04 a.m. | OK | PyPy 3 | TESTS | 54 | 296 | 15769600 | 2200 | |
49600261 | Python_in_one_line | E | Feb. 7, 2019, 4:54 p.m. | OK | PyPy 3 | TESTS | 54 | 296 | 15872000 | 2200 | |
49599409 | DICS | E | Feb. 7, 2019, 4:40 p.m. | OK | PyPy 3 | TESTS | 54 | 296 | 16998400 | 2200 | |
49598757 | Bovniova | E | Feb. 7, 2019, 4:33 p.m. | OK | PyPy 3 | TESTS | 54 | 311 | 15974400 | 2200 | |
50913041 | vjudge5 | E | March 7, 2019, 4:09 a.m. | OK | PyPy 3 | TESTS | 54 | 311 | 16384000 | 2200 | |
49601034 | Guendabiaani | E | Feb. 7, 2019, 5:09 p.m. | OK | PyPy 3 | TESTS | 54 | 311 | 17612800 | 2200 | |
49600436 | DICS | E | Feb. 7, 2019, 4:57 p.m. | OK | PyPy 3 | TESTS | 54 | 312 | 16179200 | 2200 | |
49590230 | Kiri8128 | E | Feb. 7, 2019, 3:03 p.m. | OK | PyPy 3 | TESTS | 54 | 312 | 16588800 | 2200 | |
49611649 | E-Maks | E | Feb. 8, 2019, 1:40 a.m. | OK | PyPy 3 | TESTS | 54 | 312 | 16793600 | 2200 | |
59659073 | vjudge2 | E | Aug. 29, 2019, 11:42 a.m. | OK | Python 2 | TESTS | 54 | 374 | 10547200 | 2200 | |
49608798 | OpalDshawn | E | Feb. 7, 2019, 9:28 p.m. | OK | Python 2 | TESTS | 54 | 389 | 8806400 | 2200 | |
49614396 | KanhuKeNanu | E | Feb. 8, 2019, 5 a.m. | OK | Python 3 | TESTS | 54 | 249 | 10956800 | 2200 | |
59975654 | vjudge1 | E | Sept. 4, 2019, 5:39 a.m. | OK | Python 3 | TESTS | 54 | 264 | 10649600 | 2200 | |
49620191 | Mirali | E | Feb. 8, 2019, 8:57 a.m. | OK | Python 3 | TESTS | 54 | 264 | 10649600 | 2200 | |
49600882 | c1729 | E | Feb. 7, 2019, 5:05 p.m. | OK | Python 3 | TESTS | 54 | 264 | 17920000 | 2200 | |
49624993 | meooow | E | Feb. 8, 2019, 11:29 a.m. | OK | Python 3 | TESTS | 54 | 265 | 10444800 | 2200 | |
59975602 | vjudge5 | E | Sept. 4, 2019, 5:38 a.m. | OK | Python 3 | TESTS | 54 | 265 | 10649600 | 2200 | |
59975444 | vjudge4 | E | Sept. 4, 2019, 5:31 a.m. | OK | Python 3 | TESTS | 54 | 265 | 10649600 | 2200 | |
50255185 | galim665 | E | Feb. 20, 2019, 7:16 p.m. | OK | Python 3 | TESTS | 54 | 265 | 10649600 | 2200 | |
49613335 | r57shell | E | Feb. 8, 2019, 3:59 a.m. | OK | Python 3 | TESTS | 54 | 265 | 10649600 | 2200 | |
49815858 | amrutha01 | E | Feb. 12, 2019, 5:50 a.m. | OK | Python 3 | TESTS | 54 | 280 | 10444800 | 2200 | |
63668912 | sansen | E | Oct. 28, 2019, 4:16 p.m. | OK | Rust | TESTS | 54 | 62 | 6348800 | 2200 | |
49585237 | ichyo | E | Feb. 7, 2019, 2:41 p.m. | OK | Rust | TESTS | 54 | 78 | 5427200 | 2200 |
Back to search problems