Codeforces Round 760 (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
1618 Codeforces Round 760 (Div. 3) FINISHED False 8100 92330699 Dec. 14, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7250 ) E Singers' Tour PROGRAMMING constructive algorithms math

B' n towns are arranged in a circle sequentially. The towns are numbered from 1 to n in clockwise order. In the i -th town, there lives a singer with a repertoire of a_i minutes for each i in [1, n] . Each singer visited all n towns in clockwise order, starting with the town he lives in, and gave exactly one concert in each town. In addition, in each town, the i -th singer got inspired and came up with a song that lasts a_i minutes. The song was added to his repertoire so that he could perform it in the rest of the cities. Hence, for the i -th singer, the concert in the i -th town will last a_i minutes, in the (i + 1) -th town the concert will last 2 cdot a_i minutes, ..., in the ((i + k) bmod n + 1) -th town the duration of the concert will be (k + 2) cdot a_i , ..., in the town ((i + n - 2) bmod n + 1) -- n cdot a_i minutes. You are given an array of b integer numbers, where b_i is the total duration of concerts in the i -th town. Reconstruct any correct sequence of positive integers a or say that it is impossible. The first line contains one integer t (1 <= t <= 10^3 ) -- the number of test cases. Then the test cases follow. Each test case consists of two lines. The first line contains a single integer n ( 1 <= n <= 4 cdot 10^4 ) -- the number of cities. The second line contains n integers b_1, b_2, ... , b_n ( 1 <= b_i <= 10^{9} ) -- the total duration of concerts in i -th city. The sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case, print the answer as follows: If there is no suitable sequence a , print NO. Otherwise, on the first line print YES, on the next line print the sequence a_1, a_2, ... , a_n of n integers, where a_i ( 1 <= a_i <= 10^{9} ) is the initial duration of repertoire of the i -th sin'...

Tutorials

Codeforces Round #760 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
139338248 bkifhr8 E Dec. 15, 2021, 12:57 a.m. OK Clang++17 Diagnostics TESTS 9 186 3686400
139350133 Chelsea. E Dec. 15, 2021, 4:17 a.m. OK Clang++17 Diagnostics TESTS 9 1591 5324800
139350219 Chelsea. E Dec. 15, 2021, 4:18 a.m. OK Clang++17 Diagnostics TESTS 9 1637 3788800
139310714 cheese-cracker E Dec. 14, 2021, 4:53 p.m. OK D TESTS 9 124 6144000
139316712 ruban E Dec. 14, 2021, 5:33 p.m. OK Delphi TESTS 9 124 83660800
139304878 YtTheBot E Dec. 14, 2021, 4:43 p.m. OK GNU C11 TESTS 9 858 921600
139313508 doublevgp E Dec. 14, 2021, 5:08 p.m. OK GNU C++14 TESTS 9 78 307200
139313866 PhaiCoGiaiQuocGia E Dec. 14, 2021, 5:10 p.m. OK GNU C++14 TESTS 9 78 307200
139353418 duoluoluo E Dec. 15, 2021, 5:12 a.m. OK GNU C++14 TESTS 9 78 614400
139310532 stopping_by_woods E Dec. 14, 2021, 4:52 p.m. OK GNU C++14 TESTS 9 78 921600
139347267 why_so_much_pain E Dec. 15, 2021, 3:17 a.m. OK GNU C++14 TESTS 9 78 1536000
139311513 khssupriya E Dec. 14, 2021, 4:57 p.m. OK GNU C++14 TESTS 9 78 1536000
139347500 binarypain E Dec. 15, 2021, 3:22 a.m. OK GNU C++14 TESTS 9 78 1536000
139310835 araragi_koyo E Dec. 14, 2021, 4:54 p.m. OK GNU C++14 TESTS 9 78 2355200
139311934 ramisa.alam E Dec. 14, 2021, 4:59 p.m. OK GNU C++14 TESTS 9 78 3379200
139308280 342zhuyongqi E Dec. 14, 2021, 4:48 p.m. OK GNU C++14 TESTS 9 78 9625600
139311239 motorcycle E Dec. 14, 2021, 4:55 p.m. OK GNU C++17 TESTS 9 62 1024000
139352713 sudhanshunautiyal777 E Dec. 15, 2021, 5:01 a.m. OK GNU C++17 TESTS 9 77 307200
139352667 noob_coder_here E Dec. 15, 2021, 5 a.m. OK GNU C++17 TESTS 9 77 307200
139349142 sudhanshunautiyal777 E Dec. 15, 2021, 3:59 a.m. OK GNU C++17 TESTS 9 77 307200
139332717 vish_wa E Dec. 14, 2021, 9:29 p.m. OK GNU C++17 TESTS 9 77 307200
139353704 engager E Dec. 15, 2021, 5:16 a.m. OK GNU C++17 TESTS 9 77 307200
139330728 ishaank10 E Dec. 14, 2021, 8:44 p.m. OK GNU C++17 TESTS 9 77 614400
139305377 gjy5885 E Dec. 14, 2021, 4:43 p.m. OK GNU C++17 TESTS 9 77 716800
139349415 dhruveshbhure222 E Dec. 15, 2021, 4:04 a.m. OK GNU C++17 TESTS 9 77 1024000
139353686 aditya.rai0705 E Dec. 15, 2021, 5:16 a.m. OK GNU C++17 TESTS 9 77 1228800
139339842 forceac E Dec. 15, 2021, 1:52 a.m. OK GNU C++17 (64) TESTS 9 46 307200
139346959 no_words_to_sky E Dec. 15, 2021, 3:09 a.m. OK GNU C++17 (64) TESTS 9 46 512000
139324038 prashar32 E Dec. 14, 2021, 6:58 p.m. OK GNU C++17 (64) TESTS 9 46 614400
139339436 PurpleCrayon E Dec. 15, 2021, 1:38 a.m. OK GNU C++17 (64) TESTS 9 46 1331200
139316096 generic_placeholder_name E Dec. 14, 2021, 5:27 p.m. OK GNU C++17 (64) TESTS 9 61 307200
139337753 fxhd E Dec. 15, 2021, 12:38 a.m. OK GNU C++17 (64) TESTS 9 61 307200
139319480 Sharan19 E Dec. 14, 2021, 6:01 p.m. OK GNU C++17 (64) TESTS 9 61 307200
139328901 vk1cd314 E Dec. 14, 2021, 8:11 p.m. OK GNU C++17 (64) TESTS 9 61 614400
139328351 jb_2402 E Dec. 14, 2021, 8:02 p.m. OK GNU C++17 (64) TESTS 9 61 614400
139336707 narangkay E Dec. 14, 2021, 11:46 p.m. OK GNU C++17 (64) TESTS 9 61 614400
139348260 jainam_sogani E Dec. 15, 2021, 3:39 a.m. OK GNU C++20 (64) TESTS 9 31 614400
139354332 Esquire E Dec. 15, 2021, 5:25 a.m. OK GNU C++20 (64) TESTS 9 31 1638400
139355633 M.Ali E Dec. 15, 2021, 5:43 a.m. OK GNU C++20 (64) TESTS 9 46 307200
139347974 thanghopham66 E Dec. 15, 2021, 3:33 a.m. OK GNU C++20 (64) TESTS 9 46 307200
139345363 trqrizu E Dec. 15, 2021, 2:29 a.m. OK GNU C++20 (64) TESTS 9 46 307200
139319343 tupside E Dec. 14, 2021, 6 p.m. OK GNU C++20 (64) TESTS 9 46 307200
139315509 achvanov E Dec. 14, 2021, 5:22 p.m. OK GNU C++20 (64) TESTS 9 46 307200
139313898 baddog E Dec. 14, 2021, 5:10 p.m. OK GNU C++20 (64) TESTS 9 46 307200
139319006 zap4eg E Dec. 14, 2021, 5:56 p.m. OK GNU C++20 (64) TESTS 9 46 512000
139320903 psychobot E Dec. 14, 2021, 6:17 p.m. OK GNU C++20 (64) TESTS 9 46 512000
139325433 soumit915 E Dec. 14, 2021, 7:17 p.m. OK Java 11 TESTS 9 186 0
139351731 nitin23329 E Dec. 15, 2021, 4:45 a.m. OK Java 11 TESTS 9 202 0
139335592 LucunJi E Dec. 14, 2021, 10:58 p.m. OK Java 11 TESTS 9 202 0
139323225 cocatishay E Dec. 14, 2021, 6:46 p.m. OK Java 11 TESTS 9 218 0
139323190 cocatishay E Dec. 14, 2021, 6:46 p.m. OK Java 11 TESTS 9 218 0
139325443 cocatishay E Dec. 14, 2021, 7:18 p.m. OK Java 11 TESTS 9 233 0
139305512 csullivan203 E Dec. 14, 2021, 4:44 p.m. OK Java 11 TESTS 9 233 0
139305411 podtelkin E Dec. 14, 2021, 4:43 p.m. OK Java 11 TESTS 9 233 0
139310726 SaberXpro E Dec. 14, 2021, 4:53 p.m. OK Java 11 TESTS 9 249 0
139355527 mayank190801 E Dec. 15, 2021, 5:42 a.m. OK Java 11 TESTS 9 265 0
139323928 sanjayram21 E Dec. 14, 2021, 6:56 p.m. OK Java 8 TESTS 9 155 0
139348843 Swapniltri E Dec. 15, 2021, 3:52 a.m. OK Java 8 TESTS 9 171 0
139316376 nitinrishab2000 E Dec. 14, 2021, 5:30 p.m. OK Java 8 TESTS 9 186 0
139306942 invincible777 E Dec. 14, 2021, 4:46 p.m. OK Java 8 TESTS 9 187 0
139355040 sathish1717 E Dec. 15, 2021, 5:35 a.m. OK Java 8 TESTS 9 249 0
139316455 nickleoden299 E Dec. 14, 2021, 5:31 p.m. OK Java 8 TESTS 9 748 0
139321084 pras7946 E Dec. 14, 2021, 6:19 p.m. OK Java 8 TESTS 9 779 0
139307378 Gurtej E Dec. 14, 2021, 4:47 p.m. OK Java 8 TESTS 9 826 0
139345777 wuchaojie1097 E Dec. 15, 2021, 2:40 a.m. OK Kotlin 1.4 TESTS 9 233 4812800
139308255 Tangerine E Dec. 14, 2021, 4:47 p.m. OK MS C++ 2017 TESTS 9 296 921600
139323195 t0t_samij_lv3n0k E Dec. 14, 2021, 6:46 p.m. OK MS C++ 2017 TESTS 9 311 614400
139313628 Xeniya E Dec. 14, 2021, 5:08 p.m. OK MS C++ 2017 TESTS 9 312 614400
139313832 1_2_3_4_5_9 E Dec. 14, 2021, 5:10 p.m. OK PyPy 2 TESTS 9 171 11980800
139310493 14_15_16 E Dec. 14, 2021, 4:52 p.m. OK PyPy 2 TESTS 9 171 11980800
139347876 vdh_123 E Dec. 15, 2021, 3:30 a.m. OK PyPy 3 TESTS 9 202 10137600
139311648 loud-mouth E Dec. 14, 2021, 4:57 p.m. OK PyPy 3 TESTS 9 218 12697600
139347031 armsusman E Dec. 15, 2021, 3:11 a.m. OK PyPy 3 TESTS 9 312 18534400
139325862 AbnerShen E Dec. 14, 2021, 7:24 p.m. OK PyPy 3 TESTS 9 404 10752000
139351748 tssslu E Dec. 15, 2021, 4:45 a.m. OK PyPy 3 TESTS 9 467 9830400
139311124 chetan908patel E Dec. 14, 2021, 4:55 p.m. OK PyPy 3 TESTS 9 483 10137600
139306507 Munchy_1 E Dec. 14, 2021, 4:45 p.m. OK PyPy 3 TESTS 9 483 10547200
139309358 HitoriNoShita E Dec. 14, 2021, 4:49 p.m. OK PyPy 3 TESTS 9 483 10752000
139317243 sushmanth.dampur8780 E Dec. 14, 2021, 5:38 p.m. OK PyPy 3 TESTS 9 514 10444800
139316724 soraemonpockt E Dec. 14, 2021, 5:33 p.m. OK PyPy 3 TESTS 9 530 10444800
139318786 you1234 E Dec. 14, 2021, 5:53 p.m. OK PyPy 3-64 TESTS 9 202 9011200
139311841 batnik E Dec. 14, 2021, 4:58 p.m. OK PyPy 3-64 TESTS 9 327 8601600
139339785 mean9 E Dec. 15, 2021, 1:50 a.m. OK PyPy 3-64 TESTS 9 373 7270400
139305051 mean9 E Dec. 14, 2021, 4:43 p.m. OK PyPy 3-64 TESTS 9 374 7270400
139344615 DistortedLight E Dec. 15, 2021, 2:04 a.m. OK PyPy 3-64 TESTS 9 436 6860800
139350670 tranductri2003 E Dec. 15, 2021, 4:27 a.m. OK PyPy 3-64 TESTS 9 436 7065600
139312349 Spacelessd E Dec. 14, 2021, 5:01 p.m. OK PyPy 3-64 TESTS 9 452 7987200
139330405 SK1PY E Dec. 14, 2021, 8:38 p.m. OK PyPy 3-64 TESTS 9 498 7270400
139317142 anee_mangal E Dec. 14, 2021, 5:37 p.m. OK PyPy 3-64 TESTS 9 499 8089600
139329540 toluene E Dec. 14, 2021, 8:22 p.m. OK PyPy 3-64 TESTS 9 545 7168000
139355173 NS3081992 E Dec. 15, 2021, 5:37 a.m. OK Python 3 TESTS 9 280 3584000
139316502 MistaAsh E Dec. 14, 2021, 5:31 p.m. OK Python 3 TESTS 9 404 3174400
139309195 whodarpan E Dec. 14, 2021, 4:49 p.m. OK Python 3 TESTS 9 405 3481600
139331374 Liberator187 E Dec. 14, 2021, 8:58 p.m. OK Python 3 TESTS 9 451 3379200
139319049 Bambam_Shivam E Dec. 14, 2021, 5:56 p.m. OK Python 3 TESTS 9 452 3584000
139314616 Code_Warrior143 E Dec. 14, 2021, 5:15 p.m. OK Python 3 TESTS 9 561 3379200
139311484 satishcrazy E Dec. 14, 2021, 4:56 p.m. OK Python 3 TESTS 9 577 3481600
139352185 kingutus E Dec. 15, 2021, 4:52 a.m. OK Python 3 TESTS 9 592 3481600
139328587 sansen E Dec. 14, 2021, 8:06 p.m. OK Rust 2021 TESTS 9 31 4198400

remove filters

Back to search problems