CodeCraft-22 and Codeforces Round 795 (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
1691 CodeCraft-22 and Codeforces Round 795 (Div. 2) FINISHED False 7200 77815499 May 31, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5866 ) D Max GEQ Sum PROGRAMMING binary search constructive algorithms data structures divide and conquer implementation sortings two pointers

B'You are given an array a of n integers. You are asked to find out if the inequality max(a_i, a_{i + 1}, ldots, a_{j - 1}, a_{j}) geq a_i + a_{i + 1} + ... + a_{j - 1} + a_{j} holds for all pairs of indices (i, j) , where 1 <= q i <= q j <= q n . Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10^5 ). Description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= q n <= q 2 cdot 10^5 ) -- the size of the array. The next line of each test case contains n integers a_1, a_2, ldots, a_n ( -10^9 <= a_i <= 10^9 ). It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case, on a new line output "YES" if the condition is satisfied for the given array, and "NO" otherwise. You can print each letter in any case (upper or lower). In test cases 1 and 2 , the given condition is satisfied for all (i, j) pairs. In test case 3 , the condition isn 't satisfied for the pair (1, 2) as max(2, 3) < 2 + 3 . '...

Tutorials

Editorial for CodeCraft-22 and Codeforces Round #795 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
159202893 GTrigger D June 1, 2022, 11:08 p.m. OK GNU C11 TESTS 104 93 13619200
159158736 dougn711 D June 1, 2022, 12:11 p.m. OK GNU C11 TESTS 101 499 19558400
159182198 ray-Kun D June 1, 2022, 4:40 p.m. OK GNU C++14 TESTS 103 77 1638400
159140164 100476241 D June 1, 2022, 8:43 a.m. OK GNU C++14 TESTS 100 78 3993600
159160420 hiki_hachiman D June 1, 2022, 12:31 p.m. OK GNU C++14 TESTS 102 78 6451200
159162016 lsroi D June 1, 2022, 12:49 p.m. OK GNU C++14 TESTS 102 93 9625600
159181307 duoluoluo D June 1, 2022, 4:29 p.m. OK GNU C++14 TESTS 103 108 24883200
159158855 TomoriNao D June 1, 2022, 12:12 p.m. OK GNU C++14 TESTS 101 108 27238400
159198656 moyung D June 1, 2022, 8:53 p.m. OK GNU C++14 TESTS 104 109 819200
159140120 LeeT D June 1, 2022, 8:42 a.m. OK GNU C++14 TESTS 100 109 25702400
159140214 LeeT D June 1, 2022, 8:43 a.m. OK GNU C++14 TESTS 100 109 25702400
159171083 duoluoluo D June 1, 2022, 2:29 p.m. OK GNU C++14 TESTS 103 124 4812800
159165556 Phantom_Knight D June 1, 2022, 1:29 p.m. OK GNU C++17 TESTS 102 62 5120000
159141940 lddlinan D June 1, 2022, 9:02 a.m. OK GNU C++17 TESTS 100 62 7372800
159123757 1459007298 D June 1, 2022, 5:22 a.m. OK GNU C++17 TESTS 99 77 32051200
159165630 Phantom_Knight D June 1, 2022, 1:29 p.m. OK GNU C++17 TESTS 102 77 32051200
159207677 zjgkjts D June 2, 2022, 2:22 a.m. OK GNU C++17 TESTS 104 78 3993600
159166162 chang-you-ren D June 1, 2022, 1:35 p.m. OK GNU C++17 TESTS 102 78 4608000
159122667 Haruka_rue D June 1, 2022, 5:07 a.m. OK GNU C++17 TESTS 99 78 6451200
159150648 waiittt D June 1, 2022, 10:36 a.m. OK GNU C++17 TESTS 100 78 6451200
159153679 waiittt D June 1, 2022, 11:11 a.m. OK GNU C++17 TESTS 101 78 6451200
159199863 celin D June 1, 2022, 9:26 p.m. OK GNU C++17 TESTS 104 78 7987200
159134006 Bullet D June 1, 2022, 7:29 a.m. OK GNU C++17 (64) TESTS 99 46 1638400
159183086 MisbahUddinTareQ D June 1, 2022, 4:51 p.m. OK GNU C++17 (64) TESTS 103 46 1638400
159183120 MisbahUddinTareQ D June 1, 2022, 4:51 p.m. OK GNU C++17 (64) TESTS 103 46 1638400
159123212 Coinln D June 1, 2022, 5:14 a.m. OK GNU C++17 (64) TESTS 99 46 5324800
159131540 gqf123 D June 1, 2022, 6:59 a.m. OK GNU C++17 (64) TESTS 99 61 6758400
159146252 niao_v D June 1, 2022, 9:49 a.m. OK GNU C++17 (64) TESTS 100 77 4812800
159187233 keijak D June 1, 2022, 5:41 p.m. OK GNU C++17 (64) TESTS 104 78 14848000
159181273 momenta D June 1, 2022, 4:29 p.m. OK GNU C++17 (64) TESTS 103 78 19251200
159161782 nairnikhil D June 1, 2022, 12:46 p.m. OK GNU C++17 (64) TESTS 102 78 23040000
159157484 nidaboge D June 1, 2022, 11:56 a.m. OK GNU C++17 (64) TESTS 101 78 65126400
159159095 peikez D June 1, 2022, 12:15 p.m. OK GNU C++20 (64) TESTS 101 46 819200
159149470 Pa_sha D June 1, 2022, 10:23 a.m. OK GNU C++20 (64) TESTS 100 46 1638400
159145062 Pa_sha D June 1, 2022, 9:35 a.m. OK GNU C++20 (64) TESTS 100 46 1638400
159175419 Pa_sha D June 1, 2022, 3:23 p.m. OK GNU C++20 (64) TESTS 103 46 1638400
159168445 Kidding_M D June 1, 2022, 2:01 p.m. OK GNU C++20 (64) TESTS 103 46 6451200
159205176 YYYLLL2021 D June 2, 2022, 12:51 a.m. OK GNU C++20 (64) TESTS 104 46 6656000
159206847 YYYLLL2021 D June 2, 2022, 1:57 a.m. OK GNU C++20 (64) TESTS 104 46 7065600
159126914 fishcathu. D June 1, 2022, 6:05 a.m. OK GNU C++20 (64) TESTS 99 46 7270400
159152702 1011zero D June 1, 2022, 10:59 a.m. OK GNU C++20 (64) TESTS 101 46 7372800
159148788 Turkhuuu D June 1, 2022, 10:16 a.m. OK GNU C++20 (64) TESTS 100 46 9830400
159132891 Sempr D June 1, 2022, 7:16 a.m. OK Go TESTS 99 46 9216000
159162060 decrease_mather D June 1, 2022, 12:50 p.m. OK Java 11 TESTS 102 233 4403200
159132484 ArchitSharma D June 1, 2022, 7:11 a.m. OK Java 11 TESTS 99 248 3686400
159140779 vipin__sharma D June 1, 2022, 8:49 a.m. OK Java 11 TESTS 100 264 10444800
159167319 NO__OB D June 1, 2022, 1:48 p.m. OK Java 11 TESTS 103 342 29388800
159148200 Holmes7 D June 1, 2022, 10:09 a.m. OK Java 11 TESTS 100 373 22835200
159207892 __Serendipity D June 2, 2022, 2:30 a.m. OK Java 11 TESTS 104 389 14745600
159208704 __Serendipity D June 2, 2022, 2:55 a.m. OK Java 11 TESTS 104 405 14745600
159209496 naman5811 D June 2, 2022, 3:17 a.m. OK Java 11 TESTS 104 451 77414400
159175932 ITDanmor D June 1, 2022, 3:28 p.m. OK Java 11 TESTS 103 764 73523200
159123310 poopoop D June 1, 2022, 5:15 a.m. OK Java 11 TESTS 99 1060 199782400
159201141 ziduoyi D June 1, 2022, 10:02 p.m. OK Java 8 TESTS 104 997 31027200
159182745 tarakeshpolakolu D June 1, 2022, 4:47 p.m. OK Java 8 TESTS 103 1013 31027200
159203244 serg_alb D June 1, 2022, 11:24 p.m. OK Kotlin 1.5 TESTS 104 1013 118374400
159161801 xsc D June 1, 2022, 12:47 p.m. OK MS C++ 2017 TESTS 102 202 5529600
159161705 xsc D June 1, 2022, 12:45 p.m. OK MS C++ 2017 TESTS 102 202 5632000
159123586 jianguolinyun D June 1, 2022, 5:19 a.m. OK MS C++ 2017 TESTS 99 358 33587200
159162571 De_nis D June 1, 2022, 12:56 p.m. OK MS C++ 2017 TESTS 102 452 6451200
159174065 nikuradze2006 D June 1, 2022, 3:05 p.m. OK MS C++ 2017 TESTS 103 592 10649600
159160337 l1l1l1l1 D June 1, 2022, 12:29 p.m. OK PyPy 3 TESTS 102 311 19353600
159179019 lemiao12 D June 1, 2022, 4:04 p.m. OK PyPy 3-64 TESTS 103 311 49254400
159155946 rajesh_455 D June 1, 2022, 11:38 a.m. OK PyPy 3-64 TESTS 101 327 36966400
159211313 ishans1324 D June 2, 2022, 4:07 a.m. OK PyPy 3-64 TESTS 104 342 31027200
159214518 niumeng D June 2, 2022, 5:12 a.m. OK PyPy 3-64 TESTS 104 343 37376000
159131752 aayush_chhabra D June 1, 2022, 7:02 a.m. OK PyPy 3-64 TESTS 99 405 45363200
159159350 s_prateek26 D June 1, 2022, 12:18 p.m. OK PyPy 3-64 TESTS 101 436 57856000
159171334 legend.ary_as D June 1, 2022, 2:32 p.m. OK PyPy 3-64 TESTS 103 560 34304000
159142780 Wooly18 D June 1, 2022, 9:11 a.m. OK PyPy 3-64 TESTS 100 670 50073600
159142917 Wooly18 D June 1, 2022, 9:13 a.m. OK PyPy 3-64 TESTS 100 748 49971200
159207016 gteu D June 2, 2022, 2:02 a.m. OK PyPy 3-64 TESTS 104 810 46899200
159163700 sansen D June 1, 2022, 1:08 p.m. OK Rust 2021 TESTS 102 46 33177600

remove filters

Back to search problems