Codeforces Round 905 (Div. 3)

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
1883 Codeforces Round 905 (Div. 3) FINISHED False 7200 39207263 Oct. 22, 2023, 11:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 10024 ) F You Are So Beautiful PROGRAMMING data structures

B'You are given an array of integers a_1, a_2, ldots, a_n . Calculate the number of subarrays of this array 1 <= q l <= q r <= q n , such that: Each test consists of multiple test cases. The first line contains a single integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. This is followed by their description. The first line of each test case contains an integer n ( 1 <= q n <= q 10^5 ) -- the size 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^9 ). It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case, output the number of suitable subarrays. In the first test case, there is exactly one subarray (1, 1) that suits us. In the second test case, there is exactly one subarray (1, 2) that suits us. Subarrays (1, 1) and (2, 2) do not suit us, as the subsequence [1] occurs twice in the array. In the third test case, all subarrays except (1, 1) and (3, 3) are suitable. '...

Tutorials

Codeforces Round #905 (Div. 1, Div. 2, Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
229356089 dictionary F Oct. 23, 2023, 12:32 a.m. OK GNU C++14 TESTS 18 78 3788800
229358756 username1919810 F Oct. 23, 2023, 1:43 a.m. OK GNU C++14 TESTS 18 93 3072000
229295080 KonjakLAF F Oct. 22, 2023, 1:57 p.m. OK GNU C++14 TESTS 18 93 5222400
229358811 username1919810 F Oct. 23, 2023, 1:44 a.m. OK GNU C++14 TESTS 18 108 3072000
229304361 xuantianhao F Oct. 22, 2023, 2:52 p.m. OK GNU C++14 TESTS 18 109 160358400
229299586 xjcwbot1 F Oct. 22, 2023, 2:20 p.m. OK GNU C++14 TESTS 18 124 4915200
229354790 rickyxrc F Oct. 22, 2023, 11:52 p.m. OK GNU C++14 TESTS 18 139 4915200
229353897 xjcwbot1 F Oct. 22, 2023, 11:19 p.m. OK GNU C++14 TESTS 18 139 4915200
229367170 pring F Oct. 23, 2023, 4:23 a.m. OK GNU C++14 TESTS 18 156 5120000
229286908 December456 F Oct. 22, 2023, 1:02 p.m. OK GNU C++14 TESTS 18 171 3993600
229368813 bourbon111 F Oct. 23, 2023, 4:50 a.m. OK GNU C++17 TESTS 18 93 1638400
229312533 newestsolego F Oct. 22, 2023, 3:56 p.m. OK GNU C++17 TESTS 18 93 3993600
229371596 hangpengjie F Oct. 23, 2023, 5:29 a.m. OK GNU C++17 TESTS 18 139 6758400
229371553 hangpengjie F Oct. 23, 2023, 5:28 a.m. OK GNU C++17 TESTS 18 139 6758400
229293759 programmingysx F Oct. 22, 2023, 1:51 p.m. OK GNU C++17 TESTS 18 140 4403200
229370785 mohammad_agha F Oct. 23, 2023, 5:19 a.m. OK GNU C++17 TESTS 18 140 5120000
229332985 Hesham_eg F Oct. 22, 2023, 6:57 p.m. OK GNU C++17 TESTS 18 140 5939200
229302359 Vlad09 F Oct. 22, 2023, 2:38 p.m. OK GNU C++17 TESTS 18 140 6348800
229286842 specter_ross F Oct. 22, 2023, 1:02 p.m. OK GNU C++17 TESTS 18 155 5939200
229301819 q2045891621. F Oct. 22, 2023, 2:35 p.m. OK GNU C++17 TESTS 18 156 4300800
229363380 cjnwq F Oct. 23, 2023, 3:15 a.m. OK GNU C++17 (64) TESTS 18 62 1638400
229308580 Petercc F Oct. 22, 2023, 3:24 p.m. OK GNU C++17 (64) TESTS 18 124 15564800
229300597 xioachou F Oct. 22, 2023, 2:27 p.m. OK GNU C++17 (64) TESTS 18 140 11161600
229366745 sarvesh_87 F Oct. 23, 2023, 4:16 a.m. OK GNU C++17 (64) TESTS 18 171 6246400
229362619 Once_I_Liked_AGirl F Oct. 23, 2023, 3:01 a.m. OK GNU C++17 (64) TESTS 18 171 8806400
229372304 asdvgy F Oct. 23, 2023, 5:37 a.m. OK GNU C++17 (64) TESTS 18 187 6348800
229297155 Sua_GGG F Oct. 22, 2023, 2:07 p.m. OK GNU C++17 (64) TESTS 18 218 13926400
229323637 alaevS F Oct. 22, 2023, 5:32 p.m. OK GNU C++17 (64) TESTS 18 233 10547200
229368189 Xiomara_YiJie F Oct. 23, 2023, 4:41 a.m. OK GNU C++17 (64) TESTS 18 233 13004800
229354504 chappy1 F Oct. 22, 2023, 11:42 p.m. OK GNU C++17 (64) TESTS 18 249 25088000
229351435 ecnerwala F Oct. 22, 2023, 10:10 p.m. OK GNU C++20 (64) TESTS 18 46 4710400
229351539 ecnerwala F Oct. 22, 2023, 10:13 p.m. OK GNU C++20 (64) TESTS 18 46 5120000
229332533 BucketPotato F Oct. 22, 2023, 6:53 p.m. OK GNU C++20 (64) TESTS 18 62 2048000
229293481 Memo_Century F Oct. 22, 2023, 1:51 p.m. OK GNU C++20 (64) TESTS 18 62 2457600
229361645 seeeeeeven7 F Oct. 23, 2023, 2:42 a.m. OK GNU C++20 (64) TESTS 18 62 2560000
229306124 btac F Oct. 22, 2023, 3:05 p.m. OK GNU C++20 (64) TESTS 18 78 2252800
229316397 n4Make F Oct. 22, 2023, 4:28 p.m. OK GNU C++20 (64) TESTS 18 93 5324800
229293820 qhj0906 F Oct. 22, 2023, 1:52 p.m. OK GNU C++20 (64) TESTS 18 93 6348800
229292795 wangyu0915 F Oct. 22, 2023, 1:48 p.m. OK GNU C++20 (64) TESTS 18 93 11980800
229311800 timusmanovs F Oct. 22, 2023, 3:50 p.m. OK GNU C++20 (64) TESTS 18 109 5427200
229370402 utsav_deep F Oct. 23, 2023, 5:13 a.m. OK Java 11 TESTS 18 374 80384000
229292944 wdjuruo F Oct. 22, 2023, 1:49 p.m. OK Java 11 TESTS 18 639 5222400
229367327 cpp10 F Oct. 23, 2023, 4:26 a.m. OK Java 17 TESTS 18 311 2355200
229302725 mlangc F Oct. 22, 2023, 2:41 p.m. OK Java 17 TESTS 18 326 7168000
229367274 cpp10 F Oct. 23, 2023, 4:25 a.m. OK Java 17 TESTS 18 327 1638400
229374663 TopCloser F Oct. 23, 2023, 6:03 a.m. OK Java 17 TESTS 18 499 14643200
229341026 dzhi F Oct. 22, 2023, 8:26 p.m. OK Java 17 TESTS 18 623 31027200
229354801 NTE200705 F Oct. 22, 2023, 11:52 p.m. OK Java 17 TESTS 18 702 6144000
229326363 not_just_rr F Oct. 22, 2023, 5:56 p.m. OK Java 17 TESTS 18 779 37990400
229286744 XeF2 F Oct. 22, 2023, 1:02 p.m. OK Java 21 TESTS 18 405 13209600
229360094 ccj123 F Oct. 23, 2023, 2:10 a.m. OK Java 8 TESTS 18 265 9932800
229313943 1091857051 F Oct. 22, 2023, 4:08 p.m. OK Java 8 TESTS 18 717 31744000
229371861 priyaroy3370 F Oct. 23, 2023, 5:32 a.m. OK Java 8 TESTS 18 873 15769600
229306817 silvertint10 F Oct. 22, 2023, 3:10 p.m. OK PyPy 3-64 TESTS 18 170 29491200
229293040 agalets F Oct. 22, 2023, 1:49 p.m. OK PyPy 3-64 TESTS 18 171 36556800
229361235 mikeac F Oct. 23, 2023, 2:33 a.m. OK PyPy 3-64 TESTS 18 186 22220800
229362336 JinYuManTang F Oct. 23, 2023, 2:56 a.m. OK PyPy 3-64 TESTS 18 186 26009600
229369689 harshk_52 F Oct. 23, 2023, 5:03 a.m. OK PyPy 3-64 TESTS 18 280 33484800
229315168 filliones F Oct. 22, 2023, 4:19 p.m. OK PyPy 3-64 TESTS 18 296 27955200
229341474 lionel.m F Oct. 22, 2023, 8:32 p.m. OK PyPy 3-64 TESTS 18 358 20275200
229320829 peb F Oct. 22, 2023, 5:07 p.m. OK PyPy 3-64 TESTS 18 373 22323200
229302247 zhenfisher F Oct. 22, 2023, 2:37 p.m. OK PyPy 3-64 TESTS 18 405 23244800
229293815 re-wa-tl-ok F Oct. 22, 2023, 1:52 p.m. OK Python 3 TESTS 18 233 28467200
229313068 0x81 F Oct. 22, 2023, 4:01 p.m. OK Ruby 3 TESTS 18 763 39321600

remove filters

Back to search problems