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 |
---|---|---|---|---|---|---|
1862 | Codeforces Round 894 (Div. 3) | FINISHED | False | 8100 | 44292263 | Aug. 24, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 21277 ) | C | Flower City Fence | PROGRAMMING | implementation |
B'Anya lives in the Flower City. By order of the city mayor, she has to build a fence for herself. The fence consists of n planks, each with a height of a_i meters. According to the order, the heights of the planks must not increase. In other words, it is true that a_i ge a_j for all i < j . Anya became curious whether her fence is symmetrical with respect to the diagonal. In other words, will she get the same fence if she lays all the planks horizontally in the same order. For example, for n = 5 , a = [5, 4, 3, 2, 1] , the fence is symmetrical. Because if all the planks are laid horizontally, the fence will be [5, 4, 3, 2, 1] , as shown in the diagram. On the left is the fence [5, 4, 3, 2, 1] , on the right is the same fence laid horizontally But for n = 3 , a = [4, 2, 1] , the fence is not symmetrical. Because if all the planks are laid horizontally, the fence will be [3, 2, 1, 1] , as shown in the diagram. On the left is the fence [4, 2, 1] , on the right is the same fence laid horizontally Help Anya and determine whether her fence is symmetrical. The first line of the input contains an integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The description of the test cases follows. The first line of a test case contains a single integer n ( 1 <= n <= 2 cdot 10^5 ) -- the length of the fence. The second line of a test case contains n integers a_1 ge a_2 ge a_3 ge ... ge a_n ( 1 <= a_i <= 10^9 ) -- the heights of the planks. The sum of the values of n for all test cases does not exceed 2 cdot 10^5 . For each test case, output "YES" if the fence is symmetrical, otherwise output "NO". You can output each letter in any case (lowercase or uppercase). For example, the strings "yEs", "yes", "Yes" and "YES" will be accepted as a positive answer. In the first and second test cases of the example, the fence is symmetrical. In th'... |
Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
220367145 | Kamill_m | C | Aug. 25, 2023, 11:29 a.m. | OK | C# 10 | TESTS | 18 | 93 | 15667200 | ||
220450157 | mban259 | C | Aug. 26, 2023, 1:47 a.m. | OK | C# 10 | TESTS | 18 | 124 | 16793600 | ||
220404136 | harshsahuhh | C | Aug. 25, 2023, 3:57 p.m. | OK | Clang++17 Diagnostics | TESTS | 18 | 1044 | 8396800 | ||
220371079 | JY1022 | C | Aug. 25, 2023, 12:02 p.m. | OK | Clang++17 Diagnostics | TESTS | 18 | 1185 | 7782400 | ||
220404082 | harshsahuhh | C | Aug. 25, 2023, 3:56 p.m. | OK | Clang++20 Diagnostics | TESTS | 18 | 1060 | 8396800 | ||
220356078 | DarkWillow | C | Aug. 25, 2023, 9 a.m. | OK | GNU C11 | TESTS | 18 | 46 | 2355200 | ||
220411366 | Rutwik_B | C | Aug. 25, 2023, 4:50 p.m. | OK | GNU C11 | TESTS | 18 | 62 | 819200 | ||
220412540 | Rutwik_B | C | Aug. 25, 2023, 4:59 p.m. | OK | GNU C11 | TESTS | 18 | 78 | 819200 | ||
220412283 | Rutwik_B | C | Aug. 25, 2023, 4:57 p.m. | OK | GNU C11 | TESTS | 18 | 78 | 819200 | ||
220358732 | just_noone_really | C | Aug. 25, 2023, 9:45 a.m. | OK | GNU C11 | TESTS | 18 | 93 | 1638400 | ||
220378864 | Deamer | C | Aug. 25, 2023, 1:02 p.m. | OK | GNU C++14 | TESTS | 18 | 46 | 819200 | ||
220356913 | kashinbrij | C | Aug. 25, 2023, 9:13 a.m. | OK | GNU C++14 | TESTS | 18 | 46 | 819200 | ||
220462949 | InfiniteChallenge | C | Aug. 26, 2023, 5:26 a.m. | OK | GNU C++14 | TESTS | 18 | 46 | 2457600 | ||
220377294 | oier_1030 | C | Aug. 25, 2023, 12:50 p.m. | OK | GNU C++14 | TESTS | 18 | 46 | 2662400 | ||
220362713 | aiss.27 | C | Aug. 25, 2023, 10:51 a.m. | OK | GNU C++14 | TESTS | 18 | 46 | 3584000 | ||
220390641 | cqbzzhy | C | Aug. 25, 2023, 2:46 p.m. | OK | GNU C++14 | TESTS | 18 | 46 | 15974400 | ||
220429247 | sg2001 | C | Aug. 25, 2023, 7:19 p.m. | OK | GNU C++14 | TESTS | 18 | 61 | 1638400 | ||
220373379 | kuguadawang | C | Aug. 25, 2023, 12:21 p.m. | OK | GNU C++14 | TESTS | 18 | 61 | 1638400 | ||
220440713 | Ridu1 | C | Aug. 25, 2023, 10:04 p.m. | OK | GNU C++14 | TESTS | 18 | 61 | 1638400 | ||
220370688 | deep09 | C | Aug. 25, 2023, 11:58 a.m. | OK | GNU C++14 | TESTS | 18 | 61 | 2457600 | ||
220453012 | expertaq | C | Aug. 26, 2023, 2:45 a.m. | OK | GNU C++17 | TESTS | 18 | 46 | 819200 | ||
220370587 | Firefly1210 | C | Aug. 25, 2023, 11:57 a.m. | OK | GNU C++17 | TESTS | 18 | 46 | 819200 | ||
220347692 | Jes-V | C | Aug. 25, 2023, 6:53 a.m. | OK | GNU C++17 | TESTS | 18 | 46 | 819200 | ||
220416111 | bhanu234 | C | Aug. 25, 2023, 5:25 p.m. | OK | GNU C++17 | TESTS | 18 | 46 | 1638400 | ||
220368530 | cjnwq | C | Aug. 25, 2023, 11:41 a.m. | OK | GNU C++17 | TESTS | 18 | 46 | 1638400 | ||
220375437 | chenchen205 | C | Aug. 25, 2023, 12:36 p.m. | OK | GNU C++17 | TESTS | 18 | 46 | 1638400 | ||
220422451 | DainYron | C | Aug. 25, 2023, 6:14 p.m. | OK | GNU C++17 | TESTS | 18 | 46 | 2457600 | ||
220461478 | yysxy | C | Aug. 26, 2023, 5:06 a.m. | OK | GNU C++17 | TESTS | 18 | 46 | 2457600 | ||
220412662 | FzArK | C | Aug. 25, 2023, 4:59 p.m. | OK | GNU C++17 | TESTS | 18 | 46 | 2457600 | ||
220448710 | Blueberry_1 | C | Aug. 26, 2023, 1:17 a.m. | OK | GNU C++17 | TESTS | 18 | 46 | 2457600 | ||
220463685 | OTTFF | C | Aug. 26, 2023, 5:34 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 31 | 819200 | ||
220382528 | AmirMoris | C | Aug. 25, 2023, 1:33 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 31 | 1638400 | ||
220421893 | ranitnandi | C | Aug. 25, 2023, 6:09 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 31 | 1638400 | ||
220463854 | JorbanS | C | Aug. 26, 2023, 5:36 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 31 | 2457600 | ||
220367096 | Tsupa_Roman | C | Aug. 25, 2023, 11:28 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 31 | 2969600 | ||
220439137 | whatisthis132 | C | Aug. 25, 2023, 9:33 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 31 | 3174400 | ||
220462551 | Followall | C | Aug. 26, 2023, 5:20 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 31 | 3174400 | ||
220453799 | JohanWOW | C | Aug. 26, 2023, 2:58 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 46 | 819200 | ||
220346248 | rishit3234 | C | Aug. 25, 2023, 6:34 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 46 | 819200 | ||
220456857 | CHN_OMoon | C | Aug. 26, 2023, 3:53 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 46 | 1638400 | ||
220406340 | Mahmoud_Elnagar5 | C | Aug. 25, 2023, 4:13 p.m. | OK | GNU C++20 (64) | TESTS | 18 | 31 | 819200 | ||
220402425 | SunnyYuan | C | Aug. 25, 2023, 3:45 p.m. | OK | GNU C++20 (64) | TESTS | 18 | 31 | 819200 | ||
220388225 | nosef | C | Aug. 25, 2023, 2:27 p.m. | OK | GNU C++20 (64) | TESTS | 18 | 31 | 819200 | ||
220388536 | Ras_Vz | C | Aug. 25, 2023, 2:30 p.m. | OK | GNU C++20 (64) | TESTS | 18 | 31 | 819200 | ||
220455873 | dreamjoker | C | Aug. 26, 2023, 3:36 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 31 | 819200 | ||
220453121 | secretman1312 | C | Aug. 26, 2023, 2:47 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 31 | 819200 | ||
220436783 | Eslam_Aymann22 | C | Aug. 25, 2023, 8:55 p.m. | OK | GNU C++20 (64) | TESTS | 18 | 31 | 819200 | ||
220435500 | Heisenberg1899 | C | Aug. 25, 2023, 8:37 p.m. | OK | GNU C++20 (64) | TESTS | 18 | 31 | 819200 | ||
220435212 | osama_tamim. | C | Aug. 25, 2023, 8:33 p.m. | OK | GNU C++20 (64) | TESTS | 18 | 31 | 819200 | ||
220420914 | ag_undercover | C | Aug. 25, 2023, 6:01 p.m. | OK | GNU C++20 (64) | TESTS | 18 | 31 | 819200 | ||
220446288 | iamavalon | C | Aug. 26, 2023, 12:19 a.m. | OK | Java 11 | TESTS | 18 | 171 | 0 | ||
220448939 | profchi | C | Aug. 26, 2023, 1:23 a.m. | OK | Java 11 | TESTS | 18 | 217 | 0 | ||
220373291 | TJ_Codes | C | Aug. 25, 2023, 12:20 p.m. | OK | Java 11 | TESTS | 18 | 296 | 0 | ||
220373198 | TJ_Codes | C | Aug. 25, 2023, 12:19 p.m. | OK | Java 11 | TESTS | 18 | 311 | 0 | ||
220452905 | Siddharth_78 | C | Aug. 26, 2023, 2:43 a.m. | OK | Java 11 | TESTS | 18 | 514 | 0 | ||
220413319 | Siddharth_78 | C | Aug. 25, 2023, 5:05 p.m. | OK | Java 11 | TESTS | 18 | 514 | 0 | ||
220366712 | shivamks2712 | C | Aug. 25, 2023, 11:25 a.m. | OK | Java 11 | TESTS | 18 | 545 | 0 | ||
220349455 | Kunal_Bhardwaj | C | Aug. 25, 2023, 7:15 a.m. | OK | Java 11 | TESTS | 18 | 545 | 0 | ||
220350591 | Kunal_Bhardwaj | C | Aug. 25, 2023, 7:29 a.m. | OK | Java 11 | TESTS | 18 | 560 | 0 | ||
220369253 | shivamks2712 | C | Aug. 25, 2023, 11:47 a.m. | OK | Java 11 | TESTS | 18 | 577 | 0 | ||
220354870 | tbs-jyy | C | Aug. 25, 2023, 8:41 a.m. | OK | Java 17 | TESTS | 18 | 218 | 409600 | ||
220466006 | raito3z | C | Aug. 26, 2023, 5:59 a.m. | OK | Java 17 | TESTS | 18 | 249 | 614400 | ||
220450641 | Ligh0x74 | C | Aug. 26, 2023, 1:58 a.m. | OK | Java 17 | TESTS | 18 | 249 | 921600 | ||
220401247 | Safawt | C | Aug. 25, 2023, 3:38 p.m. | OK | Java 17 | TESTS | 18 | 249 | 921600 | ||
220411498 | swatishivam23 | C | Aug. 25, 2023, 4:51 p.m. | OK | Java 17 | TESTS | 18 | 280 | 512000 | ||
220439826 | utkarsh3112 | C | Aug. 25, 2023, 9:46 p.m. | OK | Java 17 | TESTS | 18 | 280 | 614400 | ||
220376194 | Safawt | C | Aug. 25, 2023, 12:42 p.m. | OK | Java 17 | TESTS | 18 | 280 | 819200 | ||
220429807 | Pradeep880 | C | Aug. 25, 2023, 7:25 p.m. | OK | Java 17 | TESTS | 18 | 280 | 3788800 | ||
220355046 | tbs-jyy | C | Aug. 25, 2023, 8:43 a.m. | OK | Java 17 | TESTS | 18 | 295 | 409600 | ||
220402838 | swatishivam23 | C | Aug. 25, 2023, 3:48 p.m. | OK | Java 17 | TESTS | 18 | 296 | 7987200 | ||
220465503 | magic_kid | C | Aug. 26, 2023, 5:54 a.m. | OK | Java 8 | TESTS | 18 | 139 | 1843200 | ||
220373274 | dhruvil8804 | C | Aug. 25, 2023, 12:19 p.m. | OK | Java 8 | TESTS | 18 | 139 | 2764800 | ||
220426154 | Akarsh2810 | C | Aug. 25, 2023, 6:46 p.m. | OK | Java 8 | TESTS | 18 | 171 | 2764800 | ||
220417720 | Akarsh2810 | C | Aug. 25, 2023, 5:37 p.m. | OK | Java 8 | TESTS | 18 | 186 | 2764800 | ||
220463363 | harry1995 | C | Aug. 26, 2023, 5:30 a.m. | OK | Java 8 | TESTS | 18 | 202 | 12083200 | ||
220358815 | depurador_ik | C | Aug. 25, 2023, 9:46 a.m. | OK | Java 8 | TESTS | 18 | 218 | 29491200 | ||
220423307 | sayantan1821 | C | Aug. 25, 2023, 6:21 p.m. | OK | Java 8 | TESTS | 18 | 280 | 3891200 | ||
220368097 | QianCCC | C | Aug. 25, 2023, 11:38 a.m. | OK | Java 8 | TESTS | 18 | 374 | 3993600 | ||
220369035 | QianCCC | C | Aug. 25, 2023, 11:45 a.m. | OK | Java 8 | TESTS | 18 | 405 | 3891200 | ||
220415796 | codechefpurpose2023 | C | Aug. 25, 2023, 5:23 p.m. | OK | Java 8 | TESTS | 18 | 436 | 5222400 | ||
220409902 | tatianyi | C | Aug. 25, 2023, 4:38 p.m. | OK | MS C++ 2017 | TESTS | 18 | 140 | 1638400 | ||
220409147 | tatianyi | C | Aug. 25, 2023, 4:32 p.m. | OK | MS C++ 2017 | TESTS | 18 | 140 | 1638400 | ||
220465580 | Elastic | C | Aug. 26, 2023, 5:54 a.m. | OK | MS C++ 2017 | TESTS | 18 | 187 | 3072000 | ||
220354300 | Iseeuinmyd | C | Aug. 25, 2023, 8:30 a.m. | OK | MS C++ 2017 | TESTS | 18 | 202 | 3072000 | ||
220364422 | giuliomanuzzi | C | Aug. 25, 2023, 11:06 a.m. | OK | PyPy 3 | TESTS | 18 | 171 | 17612800 | ||
220368455 | Ayushman_123 | C | Aug. 25, 2023, 11:41 a.m. | OK | PyPy 3 | TESTS | 18 | 390 | 22118400 | ||
220411913 | MShah2003 | C | Aug. 25, 2023, 4:54 p.m. | OK | PyPy 3 | TESTS | 18 | 514 | 15564800 | ||
220401783 | l0stempl3 | C | Aug. 25, 2023, 3:41 p.m. | OK | PyPy 3-64 | TESTS | 18 | 93 | 23347200 | ||
220422002 | Tinky1224 | C | Aug. 25, 2023, 6:10 p.m. | OK | PyPy 3-64 | TESTS | 18 | 109 | 20172800 | ||
220434073 | Mastery07 | C | Aug. 25, 2023, 8:18 p.m. | OK | PyPy 3-64 | TESTS | 18 | 109 | 22220800 | ||
220417902 | TDanilV | C | Aug. 25, 2023, 5:39 p.m. | OK | PyPy 3-64 | TESTS | 18 | 109 | 28057600 | ||
220368173 | l0stempl3 | C | Aug. 25, 2023, 11:38 a.m. | OK | PyPy 3-64 | TESTS | 18 | 124 | 23347200 | ||
220366818 | MistaFlash | C | Aug. 25, 2023, 11:26 a.m. | OK | PyPy 3-64 | TESTS | 18 | 124 | 25907200 | ||
220442358 | adamjamil | C | Aug. 25, 2023, 10:41 p.m. | OK | PyPy 3-64 | TESTS | 18 | 124 | 29388800 | ||
220346040 | khalit7 | C | Aug. 25, 2023, 6:31 a.m. | OK | PyPy 3-64 | TESTS | 18 | 140 | 19968000 | ||
220375906 | reijnnn | C | Aug. 25, 2023, 12:40 p.m. | OK | PyPy 3-64 | TESTS | 18 | 140 | 24576000 | ||
220463577 | Ana_naS | C | Aug. 26, 2023, 5:33 a.m. | OK | PyPy 3-64 | TESTS | 18 | 155 | 19968000 | ||
220464456 | araffimenare | C | Aug. 26, 2023, 5:42 a.m. | OK | Python 3 | TESTS | 18 | 140 | 27033600 | ||
220346278 | sly_al | C | Aug. 25, 2023, 6:34 a.m. | OK | Python 3 | TESTS | 18 | 140 | 27033600 | ||
220448435 | xu3kev | C | Aug. 26, 2023, 1:11 a.m. | OK | Python 3 | TESTS | 18 | 155 | 27033600 | ||
220434147 | AhmadObaidat | C | Aug. 25, 2023, 8:19 p.m. | OK | Python 3 | TESTS | 18 | 155 | 27033600 | ||
220446724 | Adeer_Bakht | C | Aug. 26, 2023, 12:30 a.m. | OK | Python 3 | TESTS | 18 | 155 | 27340800 | ||
220409293 | devasaikishore | C | Aug. 25, 2023, 4:33 p.m. | OK | Python 3 | TESTS | 18 | 156 | 27852800 | ||
220348518 | rostoki | C | Aug. 25, 2023, 7:03 a.m. | OK | Python 3 | TESTS | 18 | 170 | 27955200 | ||
220349834 | VerEfr | C | Aug. 25, 2023, 7:20 a.m. | OK | Python 3 | TESTS | 18 | 171 | 26521600 | ||
220349035 | rostoki | C | Aug. 25, 2023, 7:10 a.m. | OK | Python 3 | TESTS | 18 | 171 | 26521600 | ||
220465838 | jairamgnanavadivel | C | Aug. 26, 2023, 5:57 a.m. | OK | Python 3 | TESTS | 18 | 171 | 27033600 | ||
220414608 | Parth_Dhokane | C | Aug. 25, 2023, 5:14 p.m. | OK | Ruby 3 | TESTS | 18 | 436 | 15769600 |
Back to search problems