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 |
---|---|---|---|---|---|---|
1975 | Codeforces Round 947 (Div. 1 + Div. 2) | FINISHED | False | 10800 | 15175499 | May 25, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 18509 ) | A | Bazoka and Mocha's Array | PROGRAMMING | brute force greedy implementation sortings | 800 |
B'Mocha likes arrays, so before her departure, Bazoka gave her an array a consisting of n positive integers as a gift. Now Mocha wants to know whether array a could become sorted in non-decreasing order after performing the following operation some (possibly, zero) times: For example, if a=[3,1,4,1,5] , we can choose x=[3,1] and y=[4,1,5] , satisfying a=x+y . Then, we can set a:= y + x = [4,1,5,3,1] . We can also choose x=[3,1,4,1,5] and y=[ ,] , satisfying a=x+y . Then, we can set a := y+x = [3,1,4,1,5] . Note that we are not allowed to choose x=[3,1,1] and y=[4,5] , neither are we allowed to choose x=[1,3] and y=[5,1,4] , as both these choices do not satisfy a=x+y . Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= q t <= q 1000 ). The description of the test cases follows. The first line of each test case contains a single integer n ( 2 <= q n <= q 50 ) -- the length of the array a . The second line of each test case contains n integers a_1,a_2, ldots,a_n ( 1 <= q a_i <= q 10^6 ) -- the elements of array a . For each test case, output "Yes" if a could become non-decreasing after performing the operation any number of times, and output "No" if not. You can output "Yes" and "No" in any case (for example, strings "yEs", "yes", "Yes" and "YES" will be recognized as a positive response). In the first test case, it can be proven that a cannot become non-decreasing after performing the operation any number of times. In the second test case, we can perform the following operations to make a sorted in non-decreasing order: '... |
editorial_zh.pdf |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
263104472 | mar1g | A | May 29, 2024, 7:35 a.m. | OK | C# 10 | TESTS | 11 | 108 | 2867200 | 800 | |
263103162 | mar1g | A | May 29, 2024, 7:25 a.m. | OK | C# 10 | TESTS | 11 | 109 | 2969600 | 800 | |
263104307 | nes21 | A | May 29, 2024, 7:34 a.m. | OK | C# 10 | TESTS | 11 | 124 | 3072000 | 800 | |
263569497 | little__bug | A | June 1, 2024, 3:43 a.m. | OK | C++14 (GCC 6-32) | TESTS | 11 | 46 | 0 | 800 | |
263082506 | Jalendra_123 | A | May 29, 2024, 3:42 a.m. | OK | C++14 (GCC 6-32) | TESTS | 11 | 46 | 0 | 800 | |
263073757 | zflm | A | May 29, 2024, 12:50 a.m. | OK | C++14 (GCC 6-32) | TESTS | 11 | 46 | 0 | 800 | |
262992369 | yyrwlj | A | May 28, 2024, 10:04 a.m. | OK | C++14 (GCC 6-32) | TESTS | 11 | 46 | 0 | 800 | |
262834639 | MitakeMoca | A | May 27, 2024, 6:21 a.m. | OK | C++14 (GCC 6-32) | TESTS | 11 | 46 | 0 | 800 | |
262813105 | luogu_bot2 | A | May 27, 2024, 1:48 a.m. | OK | C++14 (GCC 6-32) | TESTS | 11 | 46 | 0 | 800 | |
262952411 | FXY_AC | A | May 28, 2024, 3:50 a.m. | OK | C++14 (GCC 6-32) | TESTS | 11 | 46 | 3993600 | 800 | |
263640729 | Freezerhan | A | June 1, 2024, 2:14 p.m. | OK | C++14 (GCC 6-32) | TESTS | 11 | 61 | 0 | 800 | |
263590168 | Shah_0024 | A | June 1, 2024, 7:15 a.m. | OK | C++14 (GCC 6-32) | TESTS | 11 | 61 | 0 | 800 | |
263072534 | luogu_bot2 | A | May 29, 2024, 12:13 a.m. | OK | C++14 (GCC 6-32) | TESTS | 11 | 61 | 0 | 800 | |
263701724 | supremeashu | A | June 2, 2024, 5:16 a.m. | OK | C++17 (GCC 7-32) | TESTS | 11 | 46 | 0 | 800 | |
263699577 | minank38 | A | June 2, 2024, 4:47 a.m. | OK | C++17 (GCC 7-32) | TESTS | 11 | 46 | 0 | 800 | |
263666782 | apkabiraj | A | June 1, 2024, 5:57 p.m. | OK | C++17 (GCC 7-32) | TESTS | 11 | 46 | 0 | 800 | |
263637732 | wangpaopao1 | A | June 1, 2024, 1:47 p.m. | OK | C++17 (GCC 7-32) | TESTS | 11 | 46 | 0 | 800 | |
263586403 | don_2004 | A | June 1, 2024, 6:45 a.m. | OK | C++17 (GCC 7-32) | TESTS | 11 | 46 | 0 | 800 | |
263576536 | smitp_04 | A | June 1, 2024, 5:10 a.m. | OK | C++17 (GCC 7-32) | TESTS | 11 | 46 | 0 | 800 | |
263574316 | parab_059 | A | June 1, 2024, 4:42 a.m. | OK | C++17 (GCC 7-32) | TESTS | 11 | 46 | 0 | 800 | |
263559380 | dogra1598 | A | June 1, 2024, 12:46 a.m. | OK | C++17 (GCC 7-32) | TESTS | 11 | 46 | 0 | 800 | |
263406609 | thefakepranav | A | May 31, 2024, 4:02 a.m. | OK | C++17 (GCC 7-32) | TESTS | 11 | 46 | 0 | 800 | |
263219322 | godgenji | A | May 30, 2024, 10 a.m. | OK | C++17 (GCC 7-32) | TESTS | 11 | 46 | 0 | 800 | |
263674280 | Ahnaf0002003 | A | June 1, 2024, 7:16 p.m. | OK | C++20 (GCC 13-64) | TESTS | 11 | 46 | 0 | 800 | |
263657168 | _biscuit | A | June 1, 2024, 4:33 p.m. | OK | C++20 (GCC 13-64) | TESTS | 11 | 46 | 0 | 800 | |
263652902 | Dwarkesh | A | June 1, 2024, 3:58 p.m. | OK | C++20 (GCC 13-64) | TESTS | 11 | 46 | 0 | 800 | |
263590197 | Omar_Mahmoud_ | A | June 1, 2024, 7:16 a.m. | OK | C++20 (GCC 13-64) | TESTS | 11 | 46 | 0 | 800 | |
263378906 | seaSmoke | A | May 30, 2024, 7:04 p.m. | OK | C++20 (GCC 13-64) | TESTS | 11 | 46 | 0 | 800 | |
263378826 | elysian | A | May 30, 2024, 7:03 p.m. | OK | C++20 (GCC 13-64) | TESTS | 11 | 46 | 0 | 800 | |
263373632 | CodeHaashira | A | May 30, 2024, 6:09 p.m. | OK | C++20 (GCC 13-64) | TESTS | 11 | 46 | 0 | 800 | |
263208014 | ntxyl | A | May 30, 2024, 7:14 a.m. | OK | C++20 (GCC 13-64) | TESTS | 11 | 46 | 0 | 800 | |
263191237 | _A7mad | A | May 29, 2024, 11:43 p.m. | OK | C++20 (GCC 13-64) | TESTS | 11 | 46 | 0 | 800 | |
263174340 | tanukhanna | A | May 29, 2024, 6:02 p.m. | OK | C++20 (GCC 13-64) | TESTS | 11 | 46 | 0 | 800 | |
263117024 | eh_Sami | A | May 29, 2024, 9:16 a.m. | OK | GNU C11 | TESTS | 11 | 46 | 102400 | 800 | |
263042577 | san.agarwal | A | May 28, 2024, 4:51 p.m. | OK | GNU C11 | TESTS | 11 | 61 | 0 | 800 | |
263596631 | IshtiaqurRahman | A | June 1, 2024, 8:09 a.m. | OK | GNU C11 | TESTS | 11 | 61 | 102400 | 800 | |
263116688 | eh_Sami | A | May 29, 2024, 9:13 a.m. | OK | GNU C11 | TESTS | 11 | 61 | 102400 | 800 | |
262915067 | zamanatia8 | A | May 27, 2024, 5:18 p.m. | OK | GNU C11 | TESTS | 11 | 61 | 102400 | 800 | |
262844060 | naman_hehe | A | May 27, 2024, 7:35 a.m. | OK | GNU C11 | TESTS | 11 | 61 | 102400 | 800 | |
263506592 | pragspuda | A | May 31, 2024, 1:43 p.m. | OK | GNU C11 | TESTS | 11 | 62 | 0 | 800 | |
263631479 | chandini_chinta | A | June 1, 2024, 12:52 p.m. | OK | GNU C11 | TESTS | 11 | 62 | 102400 | 800 | |
263103632 | Chanduuu | A | May 29, 2024, 7:29 a.m. | OK | GNU C11 | TESTS | 11 | 77 | 0 | 800 | |
263040315 | san.agarwal | A | May 28, 2024, 4:31 p.m. | OK | GNU C11 | TESTS | 11 | 77 | 0 | 800 | |
262850033 | Tobo | A | May 27, 2024, 8:24 a.m. | OK | Go | TESTS | 11 | 77 | 921600 | 800 | |
262917098 | nabil_salah | A | May 27, 2024, 5:38 p.m. | OK | Go | TESTS | 11 | 78 | 819200 | 800 | |
263627739 | nguyenquocthao00 | A | June 1, 2024, 12:19 p.m. | OK | Go | TESTS | 11 | 78 | 1740800 | 800 | |
262802516 | SD125 | A | May 26, 2024, 9:10 p.m. | OK | Java 21 | TESTS | 11 | 249 | 716800 | 800 | |
262973477 | dzhi | A | May 28, 2024, 7:21 a.m. | OK | Java 21 | TESTS | 11 | 250 | 614400 | 800 | |
262804810 | AkshatSaxena_05 | A | May 26, 2024, 9:56 p.m. | OK | Java 21 | TESTS | 11 | 264 | 819200 | 800 | |
262938605 | mangos194 | A | May 27, 2024, 10:46 p.m. | OK | Java 21 | TESTS | 11 | 281 | 819200 | 800 | |
262779490 | preetam_g | A | May 26, 2024, 4:37 p.m. | OK | Java 21 | TESTS | 11 | 296 | 819200 | 800 | |
262794020 | wintersoldier2004 | A | May 26, 2024, 7:09 p.m. | OK | Java 21 | TESTS | 11 | 296 | 921600 | 800 | |
263053726 | himneesh9 | A | May 28, 2024, 6:33 p.m. | OK | Java 21 | TESTS | 11 | 311 | 716800 | 800 | |
263041339 | Nazmul42726 | A | May 28, 2024, 4:40 p.m. | OK | Java 21 | TESTS | 11 | 343 | 1126400 | 800 | |
263049284 | Omar_Morsi | A | May 28, 2024, 5:53 p.m. | OK | Java 21 | TESTS | 11 | 343 | 1433600 | 800 | |
262814966 | kyokun | A | May 27, 2024, 2:29 a.m. | OK | Java 21 | TESTS | 11 | 358 | 1228800 | 800 | |
263172861 | sharnittest | A | May 29, 2024, 5:40 p.m. | OK | Java 8 | TESTS | 11 | 140 | 0 | 800 | |
262949494 | yvbf | A | May 28, 2024, 3:05 a.m. | OK | Java 8 | TESTS | 11 | 155 | 0 | 800 | |
262716775 | AgniWarrior | A | May 26, 2024, 2:31 p.m. | OK | Java 8 | TESTS | 11 | 156 | 0 | 800 | |
262813339 | ChongQY | A | May 27, 2024, 1:54 a.m. | OK | Java 8 | TESTS | 11 | 171 | 0 | 800 | |
263627415 | Teenaupadhyay | A | June 1, 2024, 12:16 p.m. | OK | Java 8 | TESTS | 11 | 234 | 0 | 800 | |
263566338 | adibhai0845R | A | June 1, 2024, 3 a.m. | OK | Java 8 | TESTS | 11 | 234 | 0 | 800 | |
262951666 | Mr_A | A | May 28, 2024, 3:39 a.m. | OK | Java 8 | TESTS | 11 | 234 | 0 | 800 | |
262949444 | Mr.BearCoder | A | May 28, 2024, 3:04 a.m. | OK | Java 8 | TESTS | 11 | 234 | 0 | 800 | |
262927988 | UniversalAdmin | A | May 27, 2024, 7:33 p.m. | OK | Java 8 | TESTS | 11 | 234 | 0 | 800 | |
263595865 | AshekMishra | A | June 1, 2024, 8:03 a.m. | OK | Java 8 | TESTS | 11 | 249 | 0 | 800 | |
263534926 | harshgoutam | A | May 31, 2024, 5:45 p.m. | OK | PyPy 3 | TESTS | 11 | 155 | 5427200 | 800 | |
262970108 | nealzane | A | May 28, 2024, 6:52 a.m. | OK | PyPy 3 | TESTS | 11 | 234 | 5939200 | 800 | |
262861755 | xxx.ego | A | May 27, 2024, 10:06 a.m. | OK | PyPy 3 | TESTS | 11 | 249 | 6963200 | 800 | |
263209122 | bergus | A | May 30, 2024, 7:34 a.m. | OK | PyPy 3-64 | TESTS | 11 | 109 | 1945600 | 800 | |
262842157 | jvatsal0709 | A | May 27, 2024, 7:21 a.m. | OK | PyPy 3-64 | TESTS | 11 | 109 | 3174400 | 800 | |
262991476 | Exyon75 | A | May 28, 2024, 9:56 a.m. | OK | PyPy 3-64 | TESTS | 11 | 109 | 3379200 | 800 | |
262896952 | AndreiZherder | A | May 27, 2024, 2:45 p.m. | OK | PyPy 3-64 | TESTS | 11 | 124 | 2662400 | 800 | |
262848125 | reijnnn | A | May 27, 2024, 8:08 a.m. | OK | PyPy 3-64 | TESTS | 11 | 124 | 2662400 | 800 | |
263624141 | dorecorn | A | June 1, 2024, 11:49 a.m. | OK | PyPy 3-64 | TESTS | 11 | 124 | 3276800 | 800 | |
263172407 | sangeeta | A | May 29, 2024, 5:33 p.m. | OK | PyPy 3-64 | TESTS | 11 | 124 | 3276800 | 800 | |
263051056 | sohampalkar | A | May 28, 2024, 6:08 p.m. | OK | PyPy 3-64 | TESTS | 11 | 124 | 3481600 | 800 | |
263222265 | torfee | A | May 30, 2024, 10:30 a.m. | OK | PyPy 3-64 | TESTS | 11 | 124 | 5529600 | 800 | |
263095458 | MengxinWalkingGrass | A | May 29, 2024, 6:27 a.m. | OK | PyPy 3-64 | TESTS | 11 | 139 | 3993600 | 800 | |
262783297 | CodeArmy | A | May 26, 2024, 5:17 p.m. | OK | Python 3 | TESTS | 11 | 62 | 0 | 800 | |
263689190 | yousufali_8 | A | June 2, 2024, 1:10 a.m. | OK | Python 3 | TESTS | 11 | 77 | 0 | 800 | |
263685847 | ngocle2001 | A | June 1, 2024, 11:14 p.m. | OK | Python 3 | TESTS | 11 | 77 | 0 | 800 | |
263529347 | m.olimovvv | A | May 31, 2024, 4:55 p.m. | OK | Python 3 | TESTS | 11 | 77 | 0 | 800 | |
262760190 | areana__ | A | May 26, 2024, 3:37 p.m. | OK | Python 3 | TESTS | 11 | 77 | 0 | 800 | |
263106281 | prateekkhicher | A | May 29, 2024, 7:49 a.m. | OK | Python 3 | TESTS | 11 | 78 | 0 | 800 | |
263052552 | Namra004 | A | May 28, 2024, 6:22 p.m. | OK | Python 3 | TESTS | 11 | 78 | 0 | 800 | |
262791042 | Daniel_14 | A | May 26, 2024, 6:33 p.m. | OK | Python 3 | TESTS | 11 | 78 | 0 | 800 | |
262714876 | OstrikovVA | A | May 26, 2024, 2:11 p.m. | OK | Python 3 | TESTS | 11 | 78 | 0 | 800 | |
262908638 | _BLACK__MAMBA_ | A | May 27, 2024, 4:19 p.m. | OK | Python 3 | TESTS | 11 | 92 | 0 | 800 | |
263048969 | Maksim1744 | A | May 28, 2024, 5:50 p.m. | OK | Rust 2021 | TESTS | 11 | 46 | 0 | 800 | |
263608089 | torio | A | June 1, 2024, 9:44 a.m. | OK | Rust 2021 | TESTS | 11 | 61 | 0 | 800 | |
263603793 | torio | A | June 1, 2024, 9:08 a.m. | OK | Rust 2021 | TESTS | 11 | 61 | 0 | 800 | |
262867806 | kshitij | A | May 27, 2024, 10:57 a.m. | OK | Rust 2021 | TESTS | 11 | 61 | 0 | 800 | |
263104618 | BetterThanNobita | A | May 29, 2024, 7:36 a.m. | OK | Rust 2021 | TESTS | 11 | 62 | 0 | 800 | |
263165542 | urparvezali | A | May 29, 2024, 3:56 p.m. | OK | Rust 2021 | TESTS | 11 | 77 | 0 | 800 | |
263019744 | camc | A | May 28, 2024, 1:46 p.m. | OK | Rust 2021 | TESTS | 11 | 77 | 0 | 800 |
Back to search problems