Russian Code Cup 2017 - Finals [Unofficial Mirror, Div. 1 Only Recommended, Teams Allowed]

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
856 Russian Code Cup 2017 - Finals [Unofficial Mirror, Div. 1 Only Recommended, Teams Allowed] FINISHED False 10800 232129463 Sept. 10, 2017, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1468 ) A Set Theory PROGRAMMING brute force constructive algorithms 1600

B"Masha and Grisha like studying sets of positive integers. One day Grisha has written a set A containing n different integers ai on a blackboard. Now he asks Masha to create a set B containing n different integers bj such that all n2 integers that can be obtained by summing up ai and bj for all possible pairs of i and j are different. Both Masha and Grisha don't like big numbers, so all numbers in A are from 1 to 106, and all numbers in B must also be in the same range. Help Masha to create the set B that satisfies Grisha's requirement. Input data contains multiple test cases. The first line contains an integer t -- the number of test cases (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89t xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100). Each test case is described in the following way: the first line of the description contains one integer n -- the number of elements in A (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100). The second line contains n integers ai -- the elements of A (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106). For each test first print the answer: "...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
30247100 Chipe1 A Sept. 10, 2017, 2:03 p.m. OK GNU C TESTS 11 171 7987200 1600
30320481 SHAMIMASUKHI A Sept. 14, 2017, 5:11 a.m. OK GNU C++ TESTS 11 30 1945600 1600
30247739 Konnyaku_ A Sept. 10, 2017, 2:23 p.m. OK GNU C++ TESTS 11 31 13004800 1600
30319653 Anson14_ A Sept. 14, 2017, 3:41 a.m. OK GNU C++ TESTS 11 46 3993600 1600
30248532 Abdulrahman_hs omaragha abdulfattah_kh A Sept. 10, 2017, 2:48 p.m. OK GNU C++ TESTS 11 93 7987200 1600
30247388 killjee A Sept. 10, 2017, 2:12 p.m. OK GNU C++ TESTS 11 108 1024000 1600
30259154 Steaunk A Sept. 11, 2017, 5:15 a.m. OK GNU C++ TESTS 11 109 819200 1600
30248669 flukehn l1ll5 mengbierr A Sept. 10, 2017, 2:52 p.m. OK GNU C++ TESTS 11 109 2048000 1600
30247662 yht_boyfriend A Sept. 10, 2017, 2:21 p.m. OK GNU C++ TESTS 11 109 2048000 1600
30248276 emengdeath2020 A Sept. 10, 2017, 2:40 p.m. OK GNU C++ TESTS 11 109 7987200 1600
30268572 I_Love_Zzq A Sept. 11, 2017, 3:08 p.m. OK GNU C++ TESTS 11 124 2048000 1600
30248986 astolfo A Sept. 10, 2017, 3:02 p.m. OK GNU C++11 TESTS 11 15 1024000 1600
30248173 braveTester chitanda skywalkert A Sept. 10, 2017, 2:36 p.m. OK GNU C++11 TESTS 11 15 3993600 1600
31161592 black_horse2014 A Oct. 9, 2017, 7:40 a.m. OK GNU C++11 TESTS 11 15 4403200 1600
30320453 UP_ENDER A Sept. 14, 2017, 5:09 a.m. OK GNU C++11 TESTS 11 30 1945600 1600
30325779 hihihihihihi A Sept. 14, 2017, 10:55 a.m. OK GNU C++11 TESTS 11 31 1024000 1600
30249356 lawyerphx A Sept. 10, 2017, 3:12 p.m. OK GNU C++11 TESTS 11 31 1024000 1600
30246913 zscoder A Sept. 10, 2017, 1:58 p.m. OK GNU C++11 TESTS 11 31 1024000 1600
30246652 choutii TLE A Sept. 10, 2017, 1:47 p.m. OK GNU C++11 TESTS 11 31 3891200 1600
40979819 ReaLNero1 A July 30, 2018, 5:15 p.m. OK GNU C++11 TESTS 11 31 3993600 1600
50520800 wangyenjen nonamefour0210 A Feb. 26, 2019, 9:16 a.m. OK GNU C++11 TESTS 11 46 1024000 1600
31313567 pipialvin A Oct. 14, 2017, 2:01 p.m. OK GNU C++14 TESTS 11 15 102400 1600
30251161 Twishkle.Aevdark A Sept. 10, 2017, 4:17 p.m. OK GNU C++14 TESTS 11 15 102400 1600
30269534 Marco_L_T A Sept. 11, 2017, 4 p.m. OK GNU C++14 TESTS 11 15 1024000 1600
31920896 kajebiii A Oct. 31, 2017, 12:28 p.m. OK GNU C++14 TESTS 11 30 3993600 1600
30247008 darknsux vodanhna minh141198 A Sept. 10, 2017, 2 p.m. OK GNU C++14 TESTS 11 31 307200 1600
30268140 Shahir_Abdullah A Sept. 11, 2017, 2:43 p.m. OK GNU C++14 TESTS 11 31 2150400 1600
30246992 latte0119 ei133333 beet A Sept. 10, 2017, 2 p.m. OK GNU C++14 TESTS 11 31 2150400 1600
32449158 AngelKnows A Nov. 19, 2017, 6:54 a.m. OK GNU C++14 TESTS 11 31 3276800 1600
30387495 saba2000 A Sept. 16, 2017, 3:58 p.m. OK GNU C++14 TESTS 11 31 3993600 1600
30380912 Palpatine A Sept. 16, 2017, 10:18 a.m. OK GNU C++14 TESTS 11 31 3993600 1600
69087966 Igor_2017 A Jan. 19, 2020, 9:03 a.m. OK GNU C++17 TESTS 11 15 1228800 1600
68757156 Rahul_cpp A Jan. 14, 2020, 8:17 a.m. OK GNU C++17 TESTS 11 46 4198400 1600
69193149 Warawreh A Jan. 20, 2020, 2:06 p.m. OK GNU C++17 TESTS 11 77 307200 1600
66507526 tanya9 A Dec. 8, 2019, 3:01 p.m. OK GNU C++17 TESTS 11 124 4198400 1600
59404068 sammithkanur A Aug. 24, 2019, 1:13 p.m. OK GNU C++17 TESTS 11 140 4198400 1600
60634139 kianelbo A Sept. 15, 2019, 12:40 p.m. OK GNU C++17 TESTS 11 202 512000 1600
69088724 Igor_2017 A Jan. 19, 2020, 9:21 a.m. OK GNU C++17 TESTS 11 218 2560000 1600
68764406 Rahul_cpp A Jan. 14, 2020, 9:21 a.m. OK GNU C++17 TESTS 11 218 7168000 1600
63730078 mr_backlog A Oct. 29, 2019, 1:47 p.m. OK GNU C++17 TESTS 11 233 9932800 1600
50988414 chinmay0906 A March 7, 2019, 8:40 p.m. OK GNU C++17 TESTS 11 233 24064000 1600
30295326 andrewdormidormi A Sept. 12, 2017, 8:50 p.m. OK Go TESTS 11 546 6553600 1600
30567409 poikniok A Sept. 21, 2017, 5:20 a.m. OK Java 8 TESTS 11 202 0 1600
30567414 poikniok A Sept. 21, 2017, 5:21 a.m. OK Java 8 TESTS 11 217 0 1600
30567394 poikniok A Sept. 21, 2017, 5:19 a.m. OK Java 8 TESTS 11 218 0 1600
30262439 mikcorer A Sept. 11, 2017, 9:24 a.m. OK Java 8 TESTS 11 280 0 1600
31627434 mizosoft A Oct. 23, 2017, 11:54 a.m. OK Java 8 TESTS 11 295 21299200 1600
30260130 gone_girl A Sept. 11, 2017, 6:42 a.m. OK Java 8 TESTS 11 311 0 1600
30953598 prabhat236218 A Oct. 2, 2017, 9:19 p.m. OK Java 8 TESTS 11 327 70860800 1600
59678880 adeepgarg13 A Aug. 29, 2019, 7:28 p.m. OK Java 8 TESTS 11 358 0 1600
32416425 JShinjuro A Nov. 17, 2017, 11:37 p.m. OK Java 8 TESTS 11 373 0 1600
30247072 mualanhlung017 A Sept. 10, 2017, 2:02 p.m. OK Java 8 TESTS 11 389 0 1600
30290808 Cuellius A Sept. 12, 2017, 4:14 p.m. OK MS C# TESTS 11 171 8704000 1600
30324171 AnatolyTolstobrov A Sept. 14, 2017, 9:38 a.m. OK MS C# TESTS 11 295 4300800 1600
30250518 hball1st Antonij A Sept. 10, 2017, 3:51 p.m. OK MS C++ TESTS 11 46 1228800 1600
30247792 Borisp A Sept. 10, 2017, 2:25 p.m. OK MS C++ TESTS 11 202 1536000 1600
30408900 ultrin A Sept. 17, 2017, 3:23 a.m. OK MS C++ TESTS 11 202 2048000 1600
30262633 MrMirotic A Sept. 11, 2017, 9:34 a.m. OK MS C++ TESTS 11 265 3993600 1600
30262648 MrMirotic A Sept. 11, 2017, 9:35 a.m. OK MS C++ TESTS 11 296 3993600 1600
30266209 merzgling A Sept. 11, 2017, 1:13 p.m. OK MS C++ TESTS 11 343 204800 1600
30262614 MrMirotic A Sept. 11, 2017, 9:33 a.m. OK MS C++ TESTS 11 343 3993600 1600
30247167 Volpe A Sept. 10, 2017, 2:05 p.m. OK MS C++ TESTS 11 390 2048000 1600
30262583 MrMirotic A Sept. 11, 2017, 9:32 a.m. OK MS C++ TESTS 11 390 4198400 1600
30262422 MrMirotic A Sept. 11, 2017, 9:23 a.m. OK MS C++ TESTS 11 436 3993600 1600
51963125 ashok123 A March 29, 2019, 8:19 a.m. OK PyPy 2 TESTS 11 405 7577600 1600
69469964 Theaktis A Jan. 24, 2020, 2:12 p.m. OK PyPy 3 TESTS 11 623 16384000 1600
30833172 yugle7 A Sept. 29, 2017, 3:01 p.m. OK Python 3 TESTS 11 312 4300800 1600
30365314 orailly A Sept. 15, 2017, 2:33 p.m. OK Python 3 TESTS 11 405 2048000 1600
30388332 aneldly A Sept. 16, 2017, 4:36 p.m. OK Python 3 TESTS 11 452 1843200 1600
30832422 yugle7 A Sept. 29, 2017, 2:32 p.m. OK Python 3 TESTS 11 717 9011200 1600
33442597 Jiburiru A Dec. 20, 2017, 1:17 a.m. OK Python 3 TESTS 11 795 13824000 1600
42119799 Mk_Python_v1 A Aug. 26, 2018, 11:51 a.m. OK Python 3 TESTS 11 826 7987200 1600
40465584 Ali_Pi A July 17, 2018, 6:37 a.m. OK Python 3 TESTS 11 842 7987200 1600
30266108 FalseMirror A Sept. 11, 2017, 1:08 p.m. OK Rust TESTS 11 249 8089600 1600

remove filters

Back to search problems