Codeforces Round 663 (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
1391 Codeforces Round 663 (Div. 2) FINISHED False 7200 134839499 Aug. 9, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 24445 ) A Suborrays PROGRAMMING constructive algorithms math

B'A permutation of length n is an array consisting of n distinct integers from 1 to n in arbitrary order. For example, [2,3,1,5,4] is a permutation, but [1,2,2] is not a permutation ( 2 appears twice in the array) and [1,3,4] is also not a permutation ( n=3 but there is 4 in the array). For a positive integer n , we call a permutation p of length n good if the following condition holds for every pair i and j ( 1 <= i <= j <= n ) -- In other words, a permutation p is good if for every subarray of p , the text{OR} of all elements in it is not less than the number of elements in that subarray. Given a positive integer n , output any good permutation of length n . We can show that for the given constraints such a permutation always exists. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 100 ). Description of the test cases follows. The first and only line of every test case contains a single integer n ( 1 <= n <= 100 ). For every test, output any good permutation of length n on a separate line. For n = 3 , [3,1,2] is a good permutation. Some of the subarrays are listed below. Similarly, you can verify that [4,3,5,2,7,1,6] is also good. '...

Tutorials

Codeforces Round #663 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
90245728 KRISH99 A Aug. 17, 2020, 4 p.m. OK Clang++17 Diagnostics TESTS 4 31 0
89868641 uyenngo A Aug. 14, 2020, 12:07 p.m. OK FPC TESTS 4 31 0
89778898 1942938446 A Aug. 13, 2020, 9:12 a.m. OK FPC TESTS 4 31 0
89654821 luogu_bot4 A Aug. 12, 2020, 1:32 p.m. OK FPC TESTS 4 31 3379200
89525754 Bronstein0x1ea0556 A Aug. 10, 2020, 4:14 p.m. OK FPC TESTS 4 31 3481600
89636922 luogu_bot2 A Aug. 12, 2020, 9:06 a.m. OK FPC TESTS 4 31 3481600
90232034 SatouYami A Aug. 17, 2020, 1:26 p.m. OK FPC TESTS 4 46 0
89497103 Gaurav_Gadeela A Aug. 10, 2020, 9:25 a.m. OK GNU C11 TESTS 4 15 3686400
91329040 softslayer A Aug. 30, 2020, 8:36 a.m. OK GNU C11 TESTS 4 30 3686400
90048557 iHam898 A Aug. 15, 2020, 10:52 p.m. OK GNU C11 TESTS 4 31 0
90239279 _shiv_ A Aug. 17, 2020, 2:50 p.m. OK GNU C11 TESTS 4 31 0
91192177 pro001 A Aug. 28, 2020, 8:34 a.m. OK GNU C11 TESTS 4 31 0
90073406 felven A Aug. 16, 2020, 10:04 a.m. OK GNU C11 TESTS 4 31 0
90216465 kabir2018331125 A Aug. 17, 2020, 10:07 a.m. OK GNU C11 TESTS 4 31 0
90729082 subarnasaha08041 A Aug. 23, 2020, 5:34 a.m. OK GNU C11 TESTS 4 31 3686400
90729103 sahasubarna08041 A Aug. 23, 2020, 5:35 a.m. OK GNU C11 TESTS 4 31 3686400
89607906 pastglory A Aug. 11, 2020, 8:31 p.m. OK GNU C11 TESTS 4 31 3686400
91614592 hjh A Sept. 2, 2020, 5:49 a.m. OK GNU C++11 TESTS 4 15 0
91591333 ProgerX A Sept. 1, 2020, 6:07 p.m. OK GNU C++11 TESTS 4 15 0
91678056 Youth518 A Sept. 2, 2020, 11:24 p.m. OK GNU C++11 TESTS 4 15 0
91688183 subhajitt A Sept. 3, 2020, 5:09 a.m. OK GNU C++11 TESTS 4 15 0
91706095 tle_error A Sept. 3, 2020, 9:58 a.m. OK GNU C++11 TESTS 4 15 0
91676970 inshorebrand A Sept. 2, 2020, 10:32 p.m. OK GNU C++11 TESTS 4 15 0
91666626 JN_Tuli A Sept. 2, 2020, 6:15 p.m. OK GNU C++11 TESTS 4 15 0
91666588 Nira31 A Sept. 2, 2020, 6:15 p.m. OK GNU C++11 TESTS 4 15 0
91631875 tengant A Sept. 2, 2020, 10:31 a.m. OK GNU C++11 TESTS 4 15 0
91617603 devcode A Sept. 2, 2020, 6:37 a.m. OK GNU C++11 TESTS 4 15 0
89509394 ThinTime A Aug. 10, 2020, 12:35 p.m. OK GNU C++14 TESTS 4 0 3686400
91697302 codester_99 A Sept. 3, 2020, 7:43 a.m. OK GNU C++14 TESTS 4 15 0
91272779 ndhuy A Aug. 29, 2020, 9:34 a.m. OK GNU C++14 TESTS 4 15 0
91309187 Austere7 A Aug. 29, 2020, 7:37 p.m. OK GNU C++14 TESTS 4 15 0
91497570 sourjya7 A Aug. 31, 2020, 2:02 p.m. OK GNU C++14 TESTS 4 15 0
91500691 rahulsingh21247 A Aug. 31, 2020, 2:41 p.m. OK GNU C++14 TESTS 4 15 0
91516289 spectator_only A Aug. 31, 2020, 6:09 p.m. OK GNU C++14 TESTS 4 15 0
91576760 force1234 A Sept. 1, 2020, 2:58 p.m. OK GNU C++14 TESTS 4 15 0
91621806 namitachoudhary000013 A Sept. 2, 2020, 7:46 a.m. OK GNU C++14 TESTS 4 15 0
91630102 sultan_01 A Sept. 2, 2020, 10:04 a.m. OK GNU C++14 TESTS 4 15 0
89528728 abhishek.gururani A Aug. 10, 2020, 5:04 p.m. OK GNU C++17 TESTS 4 0 3686400
91591063 balaram6712 A Sept. 1, 2020, 6:03 p.m. OK GNU C++17 TESTS 4 15 0
91708693 lixiaolx A Sept. 3, 2020, 10:37 a.m. OK GNU C++17 TESTS 4 15 0
91684514 i_m_arin A Sept. 3, 2020, 3:36 a.m. OK GNU C++17 TESTS 4 15 0
91652450 Naheed28 A Sept. 2, 2020, 3:04 p.m. OK GNU C++17 TESTS 4 15 0
91649099 Dark_Mavis_24 A Sept. 2, 2020, 2:24 p.m. OK GNU C++17 TESTS 4 15 0
91649003 vjudge5 A Sept. 2, 2020, 2:23 p.m. OK GNU C++17 TESTS 4 15 0
91646421 Ysk007 A Sept. 2, 2020, 1:52 p.m. OK GNU C++17 TESTS 4 15 0
91620994 Taher_Irfan368 A Sept. 2, 2020, 7:33 a.m. OK GNU C++17 TESTS 4 15 0
91592888 Dk23 A Sept. 1, 2020, 6:32 p.m. OK GNU C++17 TESTS 4 15 0
89487998 AGRU A Aug. 10, 2020, 7:07 a.m. OK GNU C++17 (64) TESTS 4 0 4300800
89654990 raaghavraaj A Aug. 12, 2020, 1:35 p.m. OK GNU C++17 (64) TESTS 4 0 4300800
91297442 embrace_uncertainty A Aug. 29, 2020, 3:58 p.m. OK GNU C++17 (64) TESTS 4 15 0
91491726 vjudge1 A Aug. 31, 2020, 12:51 p.m. OK GNU C++17 (64) TESTS 4 15 0
91579062 marcosmicJack A Sept. 1, 2020, 3:24 p.m. OK GNU C++17 (64) TESTS 4 15 0
91596106 jenilpatel A Sept. 1, 2020, 7:34 p.m. OK GNU C++17 (64) TESTS 4 15 0
91638819 Macdu A Sept. 2, 2020, 12:11 p.m. OK GNU C++17 (64) TESTS 4 15 0
91654818 Anik3146 A Sept. 2, 2020, 3:33 p.m. OK GNU C++17 (64) TESTS 4 15 0
91254272 theempireofQin A Aug. 29, 2020, 4:02 a.m. OK GNU C++17 (64) TESTS 4 15 0
91279282 shelby537 A Aug. 29, 2020, 11:12 a.m. OK GNU C++17 (64) TESTS 4 15 0
89528740 CrackMaster A Aug. 10, 2020, 5:04 p.m. OK Go TESTS 4 31 10649600
89532282 jc881203 A Aug. 10, 2020, 7:28 p.m. OK Go TESTS 4 31 11673600
90691063 maet98 A Aug. 22, 2020, 1:32 p.m. OK Go TESTS 4 46 10649600
89528798 CrackMaster A Aug. 10, 2020, 5:05 p.m. OK Go TESTS 4 46 10649600
89498708 yuszafar A Aug. 10, 2020, 9:51 a.m. OK Go TESTS 4 46 10649600
89573481 Z0RR0 A Aug. 11, 2020, 11:42 a.m. OK Go TESTS 4 62 10649600
90899466 null0124 A Aug. 25, 2020, 12:37 p.m. OK Haskell TESTS 4 15 0
90488904 Andrey_R A Aug. 20, 2020, 6:23 p.m. OK Haskell TESTS 4 15 0
89764242 ramesh.baskaran A Aug. 13, 2020, 5:55 a.m. OK Haskell TESTS 4 15 0
89627609 dantal1930 A Aug. 12, 2020, 6:44 a.m. OK Haskell TESTS 4 15 11571200
90899503 null0124 A Aug. 25, 2020, 12:37 p.m. OK Haskell TESTS 4 30 0
91081929 satya_2810 A Aug. 26, 2020, 5:56 p.m. OK Java 11 TESTS 4 155 0
89871302 Aayush.007 A Aug. 14, 2020, 12:44 p.m. OK Java 11 TESTS 4 155 0
89483581 Pranav194 A Aug. 10, 2020, 5:58 a.m. OK Java 11 TESTS 4 155 23756800
90730912 jyoti369 A Aug. 23, 2020, 6:16 a.m. OK Java 11 TESTS 4 155 23961600
89743638 UpperManagment A Aug. 12, 2020, 8:41 p.m. OK Java 11 TESTS 4 170 0
91638700 kjkrgjopl A Sept. 2, 2020, 12:09 p.m. OK Java 11 TESTS 4 171 0
91522035 aquarius_gaurav A Aug. 31, 2020, 8:05 p.m. OK Java 11 TESTS 4 171 0
89654283 tirth9960 A Aug. 12, 2020, 1:25 p.m. OK Java 11 TESTS 4 171 24064000
89489486 glider.g A Aug. 10, 2020, 7:27 a.m. OK Java 11 TESTS 4 171 24064000
89497846 supershravan469 A Aug. 10, 2020, 9:37 a.m. OK Java 11 TESTS 4 171 30515200
89655065 kocko A Aug. 12, 2020, 1:36 p.m. OK Java 8 TESTS 4 78 20377600
90046349 Amazed A Aug. 15, 2020, 9:07 p.m. OK Java 8 TESTS 4 92 0
89610606 kbadrinath A Aug. 11, 2020, 10:01 p.m. OK Java 8 TESTS 4 92 20377600
90391288 ghaint_ A Aug. 19, 2020, 1:17 p.m. OK Java 8 TESTS 4 93 0
90285138 wretar A Aug. 18, 2020, 7:17 a.m. OK Java 8 TESTS 4 93 0
90244248 PratyushS7 A Aug. 17, 2020, 3:44 p.m. OK Java 8 TESTS 4 93 0
90170558 aearly A Aug. 16, 2020, 6:53 p.m. OK Java 8 TESTS 4 93 0
89842198 MagentaCobra A Aug. 14, 2020, 5:06 a.m. OK Java 8 TESTS 4 93 0
89638117 stringtheory2800 A Aug. 12, 2020, 9:24 a.m. OK Java 8 TESTS 4 93 20377600
89622360 tarangparikh A Aug. 12, 2020, 5:11 a.m. OK Java 8 TESTS 4 93 20377600
89536390 Daredevilrg_33 A Aug. 10, 2020, 9:16 p.m. OK Kotlin TESTS 4 124 20889600
89540240 Spheniscine A Aug. 11, 2020, 12:18 a.m. OK Kotlin TESTS 4 124 21606400
89572085 ZeroAmbition A Aug. 11, 2020, 11:21 a.m. OK Kotlin TESTS 4 124 21708800
89586752 dkozak94 A Aug. 11, 2020, 2:42 p.m. OK Kotlin TESTS 4 124 22118400
89782909 Ghasem A Aug. 13, 2020, 10:06 a.m. OK Kotlin TESTS 4 139 0
91147206 whiter4bbit A Aug. 27, 2020, 3:36 p.m. OK Kotlin TESTS 4 140 0
90341646 speshuric A Aug. 18, 2020, 7:51 p.m. OK Kotlin TESTS 4 155 512000
89572023 ZeroAmbition A Aug. 11, 2020, 11:20 a.m. OK Kotlin TESTS 4 156 20480000
89826427 pycyu A Aug. 13, 2020, 8:27 p.m. OK Mono C# TESTS 4 61 204800
89485248 gurpreet_ait A Aug. 10, 2020, 6:25 a.m. OK Mono C# TESTS 4 62 8806400
89501340 TRR A Aug. 10, 2020, 10:35 a.m. OK Mono C# TESTS 4 62 8806400
89634163 gaozqxin A Aug. 12, 2020, 8:24 a.m. OK Mono C# TESTS 4 77 8601600
89529785 juancarlostapiab.1 A Aug. 10, 2020, 6:24 p.m. OK MS C++ TESTS 4 15 3891200
89548591 chika10 A Aug. 11, 2020, 4:55 a.m. OK MS C++ TESTS 4 15 4096000
89641759 Sahil1678kumar A Aug. 12, 2020, 10:20 a.m. OK MS C++ TESTS 4 30 3891200
90060683 AliceNCsyuk A Aug. 16, 2020, 6:19 a.m. OK MS C++ TESTS 4 31 0
90381447 htija A Aug. 19, 2020, 10:59 a.m. OK MS C++ 2017 TESTS 4 15 0
89659020 vjudge4 A Aug. 12, 2020, 2:32 p.m. OK MS C++ 2017 TESTS 4 15 0
89645407 Roman02 A Aug. 12, 2020, 11:17 a.m. OK MS C++ 2017 TESTS 4 15 3686400
89791880 vjudge5 A Aug. 13, 2020, 12:11 p.m. OK MS C++ 2017 TESTS 4 30 0
89798685 wjddms206 A Aug. 13, 2020, 1:36 p.m. OK MS C++ 2017 TESTS 4 30 0
89600299 To_became_top A Aug. 11, 2020, 5:53 p.m. OK MS C++ 2017 TESTS 4 30 3686400
89482783 new_deal A Aug. 10, 2020, 5:43 a.m. OK MS C++ 2017 TESTS 4 30 3686400
89559927 ummd A Aug. 11, 2020, 8:06 a.m. OK MS C++ 2017 TESTS 4 30 3686400
89506204 choyj2012 A Aug. 10, 2020, 11:50 a.m. OK MS C++ 2017 TESTS 4 30 3993600
90336351 Bluelight A Aug. 18, 2020, 6:18 p.m. OK MS C++ 2017 TESTS 4 31 0
89635789 wqt_ A Aug. 12, 2020, 8:49 a.m. OK Node.js TESTS 4 62 12185600
89502615 BugLeave A Aug. 10, 2020, 10:55 a.m. OK Perl TESTS 4 31 2969600
89763391 shreyansv1 A Aug. 13, 2020, 5:41 a.m. OK PyPy 2 TESTS 4 140 614400
89688940 mstexas A Aug. 12, 2020, 3:13 p.m. OK PyPy 2 TESTS 4 140 716800
89488161 guptakhushi345 A Aug. 10, 2020, 7:09 a.m. OK PyPy 2 TESTS 4 186 23756800
91073462 coolsanderslin A Aug. 26, 2020, 4:14 p.m. OK PyPy 3 TESTS 4 124 1331200
90060123 tkhabia2303 A Aug. 16, 2020, 6:08 a.m. OK PyPy 3 TESTS 4 124 1331200
89799060 thanuj7 A Aug. 13, 2020, 1:41 p.m. OK PyPy 3 TESTS 4 124 1433600
91042711 the_Jolly_Roger A Aug. 26, 2020, 10:51 a.m. OK PyPy 3 TESTS 4 124 2048000
90240305 burfnerd A Aug. 17, 2020, 3:02 p.m. OK PyPy 3 TESTS 4 124 2048000
90691631 smart_210 A Aug. 22, 2020, 1:40 p.m. OK PyPy 3 TESTS 4 124 21504000
89625634 suryansh.singh23610 A Aug. 12, 2020, 6:11 a.m. OK PyPy 3 TESTS 4 124 21504000
89604388 Gleb1000 A Aug. 11, 2020, 7:06 p.m. OK PyPy 3 TESTS 4 124 22118400
89493093 artist_13 A Aug. 10, 2020, 8:20 a.m. OK PyPy 3 TESTS 4 124 22118400
89508069 Achilles221B A Aug. 10, 2020, 12:16 p.m. OK PyPy 3 TESTS 4 124 22425600
89503867 sheraram A Aug. 10, 2020, 11:14 a.m. OK Python 2 TESTS 4 155 6553600
89490960 ar7L A Aug. 10, 2020, 7:50 a.m. OK Python 3 TESTS 4 77 6656000
89832842 madergaser A Aug. 14, 2020, 12:55 a.m. OK Python 3 TESTS 4 78 0
89549679 Riteshk12111 A Aug. 11, 2020, 5:17 a.m. OK Python 3 TESTS 4 92 6656000
89511644 sammed98 A Aug. 10, 2020, 1:06 p.m. OK Python 3 TESTS 4 92 6656000
89517706 ByMykel A Aug. 10, 2020, 2:25 p.m. OK Python 3 TESTS 4 92 6860800
91599251 Legendaddy A Sept. 1, 2020, 8:55 p.m. OK Python 3 TESTS 4 93 0
91520959 zero_pi A Aug. 31, 2020, 7:42 p.m. OK Python 3 TESTS 4 93 0
91203114 Gikinet A Aug. 28, 2020, 11:28 a.m. OK Python 3 TESTS 4 93 0
90989056 aroy7777 A Aug. 25, 2020, 5:10 p.m. OK Python 3 TESTS 4 93 0
90893562 Ramanpreet_Kaur A Aug. 25, 2020, 11:13 a.m. OK Python 3 TESTS 4 93 0
89487477 Alsophila A Aug. 10, 2020, 6:59 a.m. OK Ruby TESTS 4 483 48844800
89553946 terraformer A Aug. 11, 2020, 6:33 a.m. OK Rust TESTS 4 30 3788800
89525792 jrodrigues A Aug. 10, 2020, 4:15 p.m. OK Rust TESTS 4 30 3788800
89793566 Strorkis A Aug. 13, 2020, 12:32 p.m. OK Rust TESTS 4 31 0
90713747 Ballu-Bhai A Aug. 22, 2020, 7:27 p.m. OK Rust TESTS 4 31 4096000

remove filters

Back to search problems