Codeforces Global Round 15

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
1552 Codeforces Global Round 15 FINISHED False 9900 109956263 July 25, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7169 ) D Array Differentiation PROGRAMMING bitmasks dp graphs math

B'You are given a sequence of n integers a_1, , a_2, , ... , , a_n . Does there exist a sequence of n integers b_1, , b_2, , ... , , b_n such that the following property holds? The first line contains a single integer t ( 1 <= t <= 20 ) -- the number of test cases. Then t test cases follow. The first line of each test case contains one integer n ( 1 <= n <= 10 ). The second line of each test case contains the n integers a_1, , ... , , a_n ( -10^5 <= a_i <= 10^5 ). For each test case, output a line containing YES if a sequence b_1, , ... , , b_n satisfying the required property exists, and NO otherwise. In the first test case, the sequence b = [-9, , 2, , 1, , 3, , -2] satisfies the property. Indeed, the following holds: In the second test case, it is sufficient to choose b = [0] , since a_1 = 0 = 0 - 0 = b_1 - b_1 . In the third test case, it is possible to show that no sequence b of length 3 satisfies the property. '...

Tutorials

Editorial of Global Round 15

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
123771483 ruban D July 25, 2021, 6:21 p.m. OK Delphi TESTS 21 62 160256000
123759448 I_love_Yuuki_Asuna D July 25, 2021, 4:49 p.m. OK FPC TESTS 21 124 3481600
123755509 sdutxy D July 25, 2021, 4:32 p.m. OK GNU C11 TESTS 21 78 3686400
123773693 rainboy D July 25, 2021, 6:54 p.m. OK GNU C11 TESTS 21 78 3686400
123758870 iceys D July 25, 2021, 4:46 p.m. OK GNU C++11 TESTS 21 15 3891200
123790393 cxccxc D July 26, 2021, 2:38 a.m. OK GNU C++11 TESTS 21 15 3891200
123758887 Terrasse D July 25, 2021, 4:47 p.m. OK GNU C++11 TESTS 21 15 3891200
123793014 ruccs D July 26, 2021, 3:30 a.m. OK GNU C++11 TESTS 21 15 3891200
123787986 godhands D July 26, 2021, 1:43 a.m. OK GNU C++11 TESTS 21 15 3993600
123786813 BlingBling. D July 26, 2021, 1:13 a.m. OK GNU C++11 TESTS 21 15 4300800
123759435 kldrgon D July 25, 2021, 4:49 p.m. OK GNU C++11 TESTS 21 15 7884800
123782734 flynn_wu D July 25, 2021, 10:35 p.m. OK GNU C++11 TESTS 21 30 3686400
123779609 eiff D July 25, 2021, 8:57 p.m. OK GNU C++11 TESTS 21 30 3891200
123789775 et3_tsy3.0 D July 26, 2021, 2:25 a.m. OK GNU C++11 TESTS 21 30 3891200
123779448 lonew0lf D July 25, 2021, 8:52 p.m. OK GNU C++14 TESTS 21 15 3788800
123778472 s0049449 D July 25, 2021, 8:28 p.m. OK GNU C++14 TESTS 21 15 3788800
123766527 Master-baiter D July 25, 2021, 5:17 p.m. OK GNU C++14 TESTS 21 15 3788800
123760655 clover_black D July 25, 2021, 4:54 p.m. OK GNU C++14 TESTS 21 15 3788800
123758032 Millad D July 25, 2021, 4:43 p.m. OK GNU C++14 TESTS 21 15 3788800
123795198 ritik151112 D July 26, 2021, 4:12 a.m. OK GNU C++14 TESTS 21 15 3788800
123774844 royal_sandhu D July 25, 2021, 7:14 p.m. OK GNU C++14 TESTS 21 15 3891200
123767162 K-DA D July 25, 2021, 5:18 p.m. OK GNU C++14 TESTS 21 15 3891200
123800370 Deadshot007 D July 26, 2021, 5:46 a.m. OK GNU C++14 TESTS 21 15 3891200
123772264 DeadPillow D July 25, 2021, 6:31 p.m. OK GNU C++14 TESTS 21 15 3993600
123763516 zwu2020014736 D July 25, 2021, 5:06 p.m. OK GNU C++17 TESTS 21 15 3788800
123797083 robinsen D July 26, 2021, 4:49 a.m. OK GNU C++17 TESTS 21 15 3788800
123797001 abhimishraabhi D July 26, 2021, 4:48 a.m. OK GNU C++17 TESTS 21 15 3788800
123790530 SOCAER D July 26, 2021, 2:41 a.m. OK GNU C++17 TESTS 21 15 3788800
123772056 yk_ax D July 25, 2021, 6:28 p.m. OK GNU C++17 TESTS 21 15 3788800
123771921 NikitochkaHrum D July 25, 2021, 6:27 p.m. OK GNU C++17 TESTS 21 15 3788800
123758484 dufresne_1949 D July 25, 2021, 4:45 p.m. OK GNU C++17 TESTS 21 15 3788800
123783227 class_bunker_real D July 25, 2021, 10:55 p.m. OK GNU C++17 TESTS 21 15 3891200
123783283 Johnit D July 25, 2021, 10:57 p.m. OK GNU C++17 TESTS 21 15 3891200
123786901 Bernini D July 26, 2021, 1:16 a.m. OK GNU C++17 TESTS 21 15 3891200
123774886 Bit_Master_2205 D July 25, 2021, 7:15 p.m. OK GNU C++17 (64) TESTS 21 15 4300800
123769703 evenny D July 25, 2021, 6:03 p.m. OK GNU C++17 (64) TESTS 21 15 4300800
123766524 cute_hater D July 25, 2021, 5:17 p.m. OK GNU C++17 (64) TESTS 21 15 4300800
123761787 hsay42 D July 25, 2021, 4:59 p.m. OK GNU C++17 (64) TESTS 21 15 4300800
123757438 ZeroScar D July 25, 2021, 4:40 p.m. OK GNU C++17 (64) TESTS 21 15 4300800
123764276 Thallium54 D July 25, 2021, 5:09 p.m. OK GNU C++17 (64) TESTS 21 15 4300800
123796187 iyangye D July 26, 2021, 4:32 a.m. OK GNU C++17 (64) TESTS 21 15 4300800
123780157 BikAdi D July 25, 2021, 9:13 p.m. OK GNU C++17 (64) TESTS 21 15 4300800
123795679 imtiyazrasool92 D July 26, 2021, 4:22 a.m. OK GNU C++17 (64) TESTS 21 15 4403200
123797384 Tema255 D July 26, 2021, 4:56 a.m. OK GNU C++17 (64) TESTS 21 15 4403200
123771821 0x3F D July 25, 2021, 6:26 p.m. OK Go TESTS 21 30 10752000
123774798 zed_22 D July 25, 2021, 7:14 p.m. OK Go TESTS 21 31 10752000
123779541 codelegend D July 25, 2021, 8:55 p.m. OK Haskell TESTS 21 31 11571200
123761265 akshatj07 D July 25, 2021, 4:57 p.m. OK Java 11 TESTS 21 187 23756800
123796029 sanjayram21 D July 26, 2021, 4:29 a.m. OK Java 11 TESTS 21 187 23756800
123770613 eyangch D July 25, 2021, 6:11 p.m. OK Java 11 TESTS 21 187 23756800
123777318 Near13 D July 25, 2021, 8:02 p.m. OK Java 11 TESTS 21 187 29184000
123753955 Ste D July 25, 2021, 4:26 p.m. OK Java 11 TESTS 21 202 23756800
123798996 pravin_as D July 26, 2021, 5:24 a.m. OK Java 11 TESTS 21 202 23859200
123757272 vineet16 D July 25, 2021, 4:40 p.m. OK Java 11 TESTS 21 202 23961600
123775776 Dukkha D July 25, 2021, 7:31 p.m. OK Java 11 TESTS 21 217 24371200
123769750 flying_rocket D July 25, 2021, 6:03 p.m. OK Java 11 TESTS 21 218 23756800
123777381 chandelsahil0004 D July 25, 2021, 8:03 p.m. OK Java 11 TESTS 21 218 24473600
123770555 hu_tao D July 25, 2021, 6:10 p.m. OK Java 8 TESTS 21 109 20377600
123757574 NighTurs D July 25, 2021, 4:41 p.m. OK Java 8 TESTS 21 124 20275200
123771142 shubhargava D July 25, 2021, 6:17 p.m. OK Java 8 TESTS 21 124 20377600
123769110 pribic D July 25, 2021, 5:59 p.m. OK Java 8 TESTS 21 124 20480000
123796109 sanjayram21 D July 26, 2021, 4:31 a.m. OK Java 8 TESTS 21 124 20480000
123778827 akshaygupta26 D July 25, 2021, 8:36 p.m. OK Java 8 TESTS 21 124 20480000
123759369 pulkit1411 D July 25, 2021, 4:49 p.m. OK Java 8 TESTS 21 139 38400000
123762641 Sarthak480 D July 25, 2021, 5:02 p.m. OK Java 8 TESTS 21 140 21196800
123763105 kkkkush D July 25, 2021, 5:04 p.m. OK Java 8 TESTS 21 155 20684800
123791953 edenSpace D July 26, 2021, 3:08 a.m. OK Java 8 TESTS 21 171 20377600
123769417 Hakiobo D July 25, 2021, 6:01 p.m. OK Kotlin TESTS 21 155 20480000
123792000 yyeshell D July 26, 2021, 3:10 a.m. OK MS C++ 2017 TESTS 21 30 4198400
123761238 lrb666 D July 25, 2021, 4:57 p.m. OK MS C++ 2017 TESTS 21 31 3686400
123764292 xsc D July 25, 2021, 5:09 p.m. OK MS C++ 2017 TESTS 21 31 3788800
123763798 vandartem D July 25, 2021, 5:07 p.m. OK MS C++ 2017 TESTS 21 31 3788800
123777707 LeThuHuyen D July 25, 2021, 8:10 p.m. OK .NET Core C# TESTS 21 124 11161600
123767154 hhsproclub D July 25, 2021, 5:18 p.m. OK Node.js TESTS 21 108 12595200
123753667 acorn11 D July 25, 2021, 4:25 p.m. OK PyPy 2 TESTS 21 93 23654400
123773849 shehebe D July 25, 2021, 6:56 p.m. OK PyPy 2 TESTS 21 264 24780800
123773787 shehebe D July 25, 2021, 6:55 p.m. OK PyPy 2 TESTS 21 264 24780800
123773632 shehebe D July 25, 2021, 6:53 p.m. OK PyPy 2 TESTS 21 358 25190400
123769711 bcollet D July 25, 2021, 6:03 p.m. OK PyPy 2 TESTS 21 467 24780800
123779829 coden00b2021 D July 25, 2021, 9:03 p.m. OK PyPy 2 TESTS 21 639 27955200
123779777 coden00b2021 D July 25, 2021, 9:02 p.m. OK PyPy 2 TESTS 21 655 34918400
123764450 Anti-Neutrino D July 25, 2021, 5:10 p.m. OK PyPy 3 TESTS 21 93 21606400
123778060 Jayce_Tang D July 25, 2021, 8:19 p.m. OK PyPy 3 TESTS 21 109 22220800
123762330 Het_Fadia D July 25, 2021, 5:01 p.m. OK PyPy 3 TESTS 21 109 22630400
123777758 Jayce_Tang D July 25, 2021, 8:11 p.m. OK PyPy 3 TESTS 21 124 22220800
123762272 Het_Fadia1814 D July 25, 2021, 5:01 p.m. OK PyPy 3 TESTS 21 124 22220800
123766145 i_am_trigger D July 25, 2021, 5:16 p.m. OK PyPy 3 TESTS 21 124 22323200
123774529 Melmetal D July 25, 2021, 7:09 p.m. OK PyPy 3 TESTS 21 124 22425600
123797978 s_prateek26 D July 26, 2021, 5:07 a.m. OK PyPy 3 TESTS 21 124 22835200
123763109 FruminousBandersnatch D July 25, 2021, 5:04 p.m. OK PyPy 3 TESTS 21 124 29593600
123761073 dorado7 D July 25, 2021, 4:56 p.m. OK PyPy 3 TESTS 21 140 23449600
123766684 unknown030405 D July 25, 2021, 5:17 p.m. OK Python 3 TESTS 21 93 6963200
123769735 emil18 D July 25, 2021, 6:03 p.m. OK Python 3 TESTS 21 155 6963200
123778828 belkka D July 25, 2021, 8:36 p.m. OK Python 3 TESTS 21 171 9216000
123780875 Intruder_2712 D July 25, 2021, 9:34 p.m. OK Python 3 TESTS 21 545 6963200

remove filters

Back to search problems