Codeforces Round 713 (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
1512 Codeforces Round 713 (Div. 3) FINISHED False 7200 119201063 April 10, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 10661 ) E Permutation by Sum PROGRAMMING greedy math

B'A permutation is a sequence of n integers from 1 to n , in which all the numbers occur exactly once. For example, [1] , [3, 5, 2, 1, 4] , [1, 3, 2] are permutations, and [2, 3, 2] , [4, 3, 1] , [0] are not. Polycarp was given four integers n , l , r ( 1 <= l <= r <= n) and s ( 1 <= s <= frac{n (n+1)}{2} ) and asked to find a permutation p of numbers from 1 to n that satisfies the following condition: For example, for n=5 , l=3 , r=5 , and s=8 , the following permutations are suitable (not all options are listed): Help Polycarp, for the given n , l , r , and s , find a permutation of numbers from 1 to n that fits the condition above. If there are several suitable permutations, print any of them. The first line contains a single integer t ( 1 <= t <= 500 ). Then t test cases follow. Each test case consist of one line with four integers n ( 1 <= n <= 500 ), l ( 1 <= l <= n ), r ( l <= r <= n ), s ( 1 <= s <= frac{n (n+1)}{2} ). It is guaranteed that the sum of n for all input data sets does not exceed 500 . For each test case, output on a separate line: If there are several suitable permutations, print any of them. '...

Tutorials

Codeforces Round #713 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
112564245 ruban E April 10, 2021, 5:02 p.m. OK FPC TESTS 7 46 53248000
112614402 huagaohan E April 11, 2021, 5:57 a.m. OK GNU C++11 TESTS 7 15 0
112614291 vice_why112 E April 11, 2021, 5:56 a.m. OK GNU C++11 TESTS 7 15 0
112597870 I_Can_AC E April 11, 2021, 4:14 a.m. OK GNU C++11 TESTS 7 15 0
112597138 Dreamfarer E April 11, 2021, 4 a.m. OK GNU C++11 TESTS 7 15 0
112596033 Kaiser_Arthur E April 11, 2021, 3:38 a.m. OK GNU C++11 TESTS 7 15 0
112595915 kauzi_joshi E April 11, 2021, 3:36 a.m. OK GNU C++11 TESTS 7 15 0
112595093 KryptonAu E April 11, 2021, 3:19 a.m. OK GNU C++11 TESTS 7 15 0
112594689 golder_ E April 11, 2021, 3:10 a.m. OK GNU C++11 TESTS 7 15 0
112594522 yvzhu E April 11, 2021, 3:05 a.m. OK GNU C++11 TESTS 7 15 0
112593887 OI-Master E April 11, 2021, 2:50 a.m. OK GNU C++11 TESTS 7 15 0
112599601 bkifhr6 E April 11, 2021, 4:45 a.m. OK GNU C++14 TESTS 7 15 0
112598429 iMu_21 E April 11, 2021, 4:25 a.m. OK GNU C++14 TESTS 7 15 0
112595751 imthelegendarygod E April 11, 2021, 3:33 a.m. OK GNU C++14 TESTS 7 15 0
112595289 2inf E April 11, 2021, 3:24 a.m. OK GNU C++14 TESTS 7 15 0
112594159 Rohit7878 E April 11, 2021, 2:57 a.m. OK GNU C++14 TESTS 7 15 0
112593748 toptricks E April 11, 2021, 2:46 a.m. OK GNU C++14 TESTS 7 15 0
112590013 DaviDTR1 E April 11, 2021, 12:46 a.m. OK GNU C++14 TESTS 7 15 0
112584345 rakesh_roy_plabon E April 10, 2021, 9:14 p.m. OK GNU C++14 TESTS 7 15 0
112584246 Salmatarek23 E April 10, 2021, 9:11 p.m. OK GNU C++14 TESTS 7 15 0
112573758 hello_shariar E April 10, 2021, 6:27 p.m. OK GNU C++14 TESTS 7 15 0
112614803 Vishal_Shrivastava_op E April 11, 2021, 6:01 a.m. OK GNU C++17 TESTS 7 15 0
112611705 mnqrt E April 11, 2021, 5:55 a.m. OK GNU C++17 TESTS 7 15 0
112610346 spy20051623 E April 11, 2021, 5:36 a.m. OK GNU C++17 TESTS 7 15 0
112609956 giahuyng98 E April 11, 2021, 5:32 a.m. OK GNU C++17 TESTS 7 15 0
112600046 kgp01 E April 11, 2021, 4:52 a.m. OK GNU C++17 TESTS 7 15 0
112599900 UpCybertron_06 E April 11, 2021, 4:50 a.m. OK GNU C++17 TESTS 7 15 0
112598983 NotMyCupOfTea E April 11, 2021, 4:35 a.m. OK GNU C++17 TESTS 7 15 0
112597714 abhipatel1331 E April 11, 2021, 4:12 a.m. OK GNU C++17 TESTS 7 15 0
112597647 AnACPlease E April 11, 2021, 4:10 a.m. OK GNU C++17 TESTS 7 15 0
112597505 spy20051623_1 E April 11, 2021, 4:07 a.m. OK GNU C++17 TESTS 7 15 0
112599305 prabhav_ E April 11, 2021, 4:40 a.m. OK GNU C++17 (64) TESTS 7 0 0
112611693 AkshitDh E April 11, 2021, 5:55 a.m. OK GNU C++17 (64) TESTS 7 15 0
112609730 Prashant.k E April 11, 2021, 5:29 a.m. OK GNU C++17 (64) TESTS 7 15 0
112600256 Jo3kerR E April 11, 2021, 4:55 a.m. OK GNU C++17 (64) TESTS 7 15 0
112596900 somyamehta_24 E April 11, 2021, 3:56 a.m. OK GNU C++17 (64) TESTS 7 15 0
112592041 ginwAa E April 11, 2021, 1:56 a.m. OK GNU C++17 (64) TESTS 7 15 0
112591845 suzuken_w E April 11, 2021, 1:51 a.m. OK GNU C++17 (64) TESTS 7 15 0
112591660 ginwAa E April 11, 2021, 1:45 a.m. OK GNU C++17 (64) TESTS 7 15 0
112590798 brahm E April 11, 2021, 1:18 a.m. OK GNU C++17 (64) TESTS 7 15 0
112589368 over_flow E April 11, 2021, 12:20 a.m. OK GNU C++17 (64) TESTS 7 15 0
112614884 nitin23329 E April 11, 2021, 6:02 a.m. OK Java 11 TESTS 7 170 0
112614732 nitin23329 E April 11, 2021, 6 a.m. OK Java 11 TESTS 7 171 0
112594161 DavinderSinghKharoud E April 11, 2021, 2:57 a.m. OK Java 11 TESTS 7 171 0
112614750 BiggEr. E April 11, 2021, 6 a.m. OK Java 11 TESTS 7 186 0
112596565 pikachu_pika_pika E April 11, 2021, 3:49 a.m. OK Java 11 TESTS 7 186 0
112576360 npwolverine E April 10, 2021, 6:54 p.m. OK Java 11 TESTS 7 186 0
112563627 Apass.Jack E April 10, 2021, 4:58 p.m. OK Java 11 TESTS 7 186 0
112598637 tushar_patil E April 11, 2021, 4:29 a.m. OK Java 11 TESTS 7 187 0
112585973 iamavalon E April 10, 2021, 10:02 p.m. OK Java 11 TESTS 7 187 0
112583874 dhruvil_8803 E April 10, 2021, 9:02 p.m. OK Java 11 TESTS 7 187 0
112573077 NerfThis E April 10, 2021, 6:21 p.m. OK Java 8 TESTS 7 108 0
112565237 thedesalizes E April 10, 2021, 5:09 p.m. OK Java 8 TESTS 7 108 0
112601877 tiwariabhishek E April 11, 2021, 5:25 a.m. OK Java 8 TESTS 7 124 0
112580947 Di735 E April 10, 2021, 8:07 p.m. OK Java 8 TESTS 7 124 0
112572150 Eurus7 E April 10, 2021, 6:12 p.m. OK Java 8 TESTS 7 124 0
112568613 llCurious E April 10, 2021, 5:37 p.m. OK Java 8 TESTS 7 124 0
112562055 Zahid_Hasan_Sahin E April 10, 2021, 4:49 p.m. OK Java 8 TESTS 7 140 0
112596605 pallav12 E April 11, 2021, 3:50 a.m. OK Kotlin TESTS 7 155 1740800
112562996 jackcaptain E April 10, 2021, 4:54 p.m. OK MS C++ 2017 TESTS 7 30 102400
112564268 Izeytee E April 10, 2021, 5:02 p.m. OK MS C++ 2017 TESTS 7 31 0
112586022 sekolade E April 10, 2021, 10:03 p.m. OK PyPy 3 TESTS 7 92 1331200
112594387 Hex1729 E April 11, 2021, 3:02 a.m. OK PyPy 3 TESTS 7 93 0
112585366 nircek E April 10, 2021, 9:43 p.m. OK PyPy 3 TESTS 7 93 0
112579505 skp_r E April 10, 2021, 7:45 p.m. OK PyPy 3 TESTS 7 93 0
112568285 teenagerlive E April 10, 2021, 5:34 p.m. OK PyPy 3 TESTS 7 93 0
112570537 Devraj10 E April 10, 2021, 5:56 p.m. OK PyPy 3 TESTS 7 93 512000
112568944 anee_mangal E April 10, 2021, 5:40 p.m. OK PyPy 3 TESTS 7 93 512000
112597495 phantomxxx E April 11, 2021, 4:07 a.m. OK PyPy 3 TESTS 7 93 1228800
112592618 skhan_org E April 11, 2021, 2:14 a.m. OK PyPy 3 TESTS 7 93 1228800
112578952 The_Apurv_Rathore E April 10, 2021, 7:37 p.m. OK PyPy 3 TESTS 7 93 1331200
112583767 dufresne_1949 E April 10, 2021, 9 p.m. OK Python 3 TESTS 7 61 0
112615242 rakeshpanda E April 11, 2021, 6:05 a.m. OK Python 3 TESTS 7 62 0
112615110 Andromeda758 E April 11, 2021, 6:04 a.m. OK Python 3 TESTS 7 62 0
112585356 nircek E April 10, 2021, 9:43 p.m. OK Python 3 TESTS 7 62 0
112575036 ghoshsanchita656 E April 10, 2021, 6:40 p.m. OK Python 3 TESTS 7 62 0
112578591 sushanthsamala E April 10, 2021, 7:31 p.m. OK Python 3 TESTS 7 62 204800
112575264 kevin32 E April 10, 2021, 6:43 p.m. OK Python 3 TESTS 7 62 307200
112596895 nddg711 E April 11, 2021, 3:56 a.m. OK Python 3 TESTS 7 78 0
112561520 surajajaydwivedi E April 10, 2021, 4:46 p.m. OK Python 3 TESTS 7 93 204800
112610618 richenyunqi E April 11, 2021, 5:39 a.m. OK Python 3 TESTS 7 93 2764800
112591896 MvKaio E April 11, 2021, 1:52 a.m. OK Ruby 3 TESTS 7 311 409600

remove filters

Back to search problems