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 |
---|---|---|---|---|---|---|
1372 | Codeforces Round 655 (Div. 2) | FINISHED | False | 7200 | 142700063 | July 11, 2020, 3:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 32171 ) | A | Omkar and Completion | PROGRAMMING | constructive algorithms implementation | 800 |
B"You have been blessed as a child of Omkar. To express your gratitude, please solve this problem for Omkar! An array a of length n is called complete if all elements are positive and don't exceed 1000 , and for all indices x , y , z ( 1 <= q x,y,z <= q n ), a_{x}+a_{y} neq a_{z} (not necessarily distinct). You are given one integer n . Please find any complete array of length n . It is guaranteed that under given constraints such array exists. Each test contains multiple test cases. The first line contains t ( 1 <= t <= 1000 ) -- the number of test cases. Description of the test cases follows. The only line of each test case contains one integer n ( 1 <= q n <= q 1000 ). It is guaranteed that the sum of n over all test cases does not exceed 1000 . For each test case, print a complete array on a single line. All elements have to be integers between 1 and 1000 and for all indices x , y , z ( 1 <= q x,y,z <= q n ) (not necessarily distinct), a_{x}+a_{y} neq a_{z} must hold. If multiple solutions exist, you may print any. It can be shown that the outputs above are valid for each test case. For example, 44+44 neq 384 . Below are some examples of arrays that are NOT complete for the 1st test case: [1,2,3,4,5] Notice that a_{1}+a_{2} = a_{3} . [1,3000,1,300,1] Notice that a_{2} = 3000 > 1000 . "... |
Codeforces Round #655 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
86561187 | Gassa | A | July 11, 2020, 3:51 p.m. | OK | D | TESTS | 36 | 31 | 4710400 | 800 | |
86608812 | fpc_coder | A | July 12, 2020, 12:07 a.m. | OK | FPC | TESTS | 36 | 46 | 3481600 | 800 | |
86612381 | cullen | A | July 12, 2020, 2:15 a.m. | OK | GNU C++11 | TESTS | 36 | 15 | 3686400 | 800 | |
86588133 | jiangtaizhe001 | A | July 11, 2020, 4:56 p.m. | OK | GNU C++11 | TESTS | 36 | 15 | 3788800 | 800 | |
86616878 | amirhozaifa | A | July 12, 2020, 4:04 a.m. | OK | GNU C++11 | TESTS | 36 | 15 | 3891200 | 800 | |
86598939 | LosteNN_ | A | July 11, 2020, 7:17 p.m. | OK | GNU C++11 | TESTS | 36 | 15 | 3891200 | 800 | |
86622827 | Sumit123 | A | July 12, 2020, 5:54 a.m. | OK | GNU C++11 | TESTS | 36 | 30 | 3891200 | 800 | |
86621814 | NitinGpt | A | July 12, 2020, 5:37 a.m. | OK | GNU C++11 | TESTS | 36 | 30 | 3891200 | 800 | |
86621486 | vjudge4 | A | July 12, 2020, 5:32 a.m. | OK | GNU C++11 | TESTS | 36 | 30 | 3891200 | 800 | |
86621416 | keziaaurelia | A | July 12, 2020, 5:31 a.m. | OK | GNU C++11 | TESTS | 36 | 30 | 3891200 | 800 | |
86620392 | toilathanh.2k | A | July 12, 2020, 5:12 a.m. | OK | GNU C++11 | TESTS | 36 | 30 | 3891200 | 800 | |
86620078 | shengzihang | A | July 12, 2020, 5:06 a.m. | OK | GNU C++11 | TESTS | 36 | 30 | 3891200 | 800 | |
86597060 | merwin | A | July 11, 2020, 6:51 p.m. | OK | GNU C++14 | TESTS | 36 | 30 | 3788800 | 800 | |
86594498 | t4rget_ACM | A | July 11, 2020, 6:26 p.m. | OK | GNU C++14 | TESTS | 36 | 30 | 3788800 | 800 | |
86553373 | himanshu8h | A | July 11, 2020, 3:40 p.m. | OK | GNU C++14 | TESTS | 36 | 30 | 3788800 | 800 | |
86622694 | gandalfnoob | A | July 12, 2020, 5:52 a.m. | OK | GNU C++14 | TESTS | 36 | 31 | 3686400 | 800 | |
86622593 | coronnaa | A | July 12, 2020, 5:50 a.m. | OK | GNU C++14 | TESTS | 36 | 31 | 3686400 | 800 | |
86622280 | Nabonita | A | July 12, 2020, 5:45 a.m. | OK | GNU C++14 | TESTS | 36 | 31 | 3686400 | 800 | |
86622095 | ranjanrakeshiitkgp | A | July 12, 2020, 5:42 a.m. | OK | GNU C++14 | TESTS | 36 | 31 | 3686400 | 800 | |
86621675 | agrawaltejas01 | A | July 12, 2020, 5:35 a.m. | OK | GNU C++14 | TESTS | 36 | 31 | 3686400 | 800 | |
86621640 | vjudge3 | A | July 12, 2020, 5:34 a.m. | OK | GNU C++14 | TESTS | 36 | 31 | 3686400 | 800 | |
86621098 | Maradona_2019 | A | July 12, 2020, 5:25 a.m. | OK | GNU C++14 | TESTS | 36 | 31 | 3686400 | 800 |
Back to search problems