Codeforces Round 443 (Div. 1)

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
878 Codeforces Round 443 (Div. 1) FINISHED False 7200 222794099 Oct. 26, 2017, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1070 ) B Teams Formation PROGRAMMING data structures implementation 2400

B"This time the Berland Team Olympiad in Informatics is held in a remote city that can only be reached by one small bus. Bus has n passenger seats, seat i can be occupied only by a participant from the city ai. Today the bus has completed m trips, each time bringing n participants. The participants were then aligned in one line in the order they arrived, with people from the same bus standing in the order of their seats (i. e. if we write down the cities where the participants came from, we get the sequence a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an repeated m times). After that some teams were formed, each consisting of k participants form the same city standing next to each other in the line. Once formed, teams left the line. The teams were formed until there were no k neighboring participants from the same city. Help the organizers determine how many participants have left in the line after that process ended. We can prove that answer doesn't depend on the order in which teams were selected. The first line contains three integers n, xe2 x80 x89k and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). The second line contains n integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), where ai is the number of city, person from which must take seat i in the bus. Output the number of remaining participants in the line. In the second example, the line consists of ten participants from the same city. Nine of them will form a team. At the end, only one participant will stay in the line. "...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
31750862 1919810 B Oct. 26, 2017, 3:18 p.m. OK GNU C++ TESTS 44 15 1228800 2400
32065966 Thefinal B Nov. 5, 2017, 1:07 a.m. OK GNU C++ TESTS 44 15 1638400 2400
31761805 Heaplax B Oct. 26, 2017, 4:22 p.m. OK GNU C++ TESTS 44 15 1638400 2400
32153664 EnjoyCallen B Nov. 9, 2017, 8:52 a.m. OK GNU C++ TESTS 44 15 2355200 2400
35780411 Scut82 B Feb. 28, 2018, 9:50 a.m. OK GNU C++ TESTS 44 15 2867200 2400
35730450 Scut82 B Feb. 26, 2018, 11:55 a.m. OK GNU C++ TESTS 44 15 3379200 2400
33003218 mengbierr B Dec. 7, 2017, 2:23 p.m. OK GNU C++ TESTS 44 15 3686400 2400
35750340 luogu_bot5 B Feb. 27, 2018, 3:23 a.m. OK GNU C++ TESTS 44 15 6246400 2400
33752684 LZHlzh B Dec. 29, 2017, 6:45 a.m. OK GNU C++ TESTS 44 15 18124800 2400
31760354 faebdc B Oct. 26, 2017, 4:11 p.m. OK GNU C++ TESTS 44 30 4915200 2400
31779143 rqgao2014 B Oct. 27, 2017, 4:06 a.m. OK GNU C++11 TESTS 44 15 3276800 2400
32742440 cuizhuyefei B Nov. 28, 2017, 7:03 a.m. OK GNU C++11 TESTS 44 15 7680000 2400
31758672 Lenh_Ho_Xung B Oct. 26, 2017, 4 p.m. OK GNU C++11 TESTS 44 15 24064000 2400
31868500 geniucos B Oct. 29, 2017, 1:49 p.m. OK GNU C++11 TESTS 44 30 2457600 2400
34576458 tqyaaaaaaaang B Jan. 26, 2018, 1:13 p.m. OK GNU C++11 TESTS 44 30 3276800 2400
31759128 __math B Oct. 26, 2017, 4:03 p.m. OK GNU C++11 TESTS 44 30 8192000 2400
31754059 Sampson B Oct. 26, 2017, 3:32 p.m. OK GNU C++11 TESTS 44 31 614400 2400
32285207 Uchiha_Madara B Nov. 13, 2017, 1:20 p.m. OK GNU C++11 TESTS 44 31 819200 2400
32076725 backerstreet B Nov. 5, 2017, 1:04 p.m. OK GNU C++11 TESTS 44 31 819200 2400
32049180 dreamATD B Nov. 4, 2017, 10:28 a.m. OK GNU C++11 TESTS 44 31 819200 2400
32086461 FizzyDavid B Nov. 6, 2017, 2:36 a.m. OK GNU C++14 TESTS 44 15 2150400 2400
31822413 whjhr B Oct. 28, 2017, 2:04 a.m. OK GNU C++14 TESTS 44 30 8601600 2400
32119684 orzwzy B Nov. 7, 2017, 12:55 p.m. OK GNU C++14 TESTS 44 31 819200 2400
32082483 12iq B Nov. 5, 2017, 7:29 p.m. OK GNU C++14 TESTS 44 31 819200 2400
31771397 Fischer B Oct. 26, 2017, 7:43 p.m. OK GNU C++14 TESTS 44 31 819200 2400
31768615 how_to_become_purple B Oct. 26, 2017, 6:08 p.m. OK GNU C++14 TESTS 44 31 819200 2400
32208534 RedStone B Nov. 11, 2017, 1:16 a.m. OK GNU C++14 TESTS 44 31 1024000 2400
32353050 lesliewang90 B Nov. 16, 2017, 11:10 a.m. OK GNU C++14 TESTS 44 31 1228800 2400
32155231 TooooYoung B Nov. 9, 2017, 10:38 a.m. OK GNU C++14 TESTS 44 31 1228800 2400
32086029 Cherries B Nov. 6, 2017, 1:26 a.m. OK GNU C++14 TESTS 44 31 1228800 2400
60682769 HeRaNO ZXyang krazy B Sept. 16, 2019, 2:27 p.m. OK GNU C++17 TESTS 44 46 819200 2400
60682726 GAATTC B Sept. 16, 2019, 2:26 p.m. OK GNU C++17 TESTS 44 46 819200 2400
54086084 szawinis B May 14, 2019, 7:28 a.m. OK GNU C++17 TESTS 44 46 1433600 2400
67523761 ImForbiddenToSayILoveYou B Dec. 24, 2019, 1:17 p.m. OK GNU C++17 TESTS 44 46 1638400 2400
56389472 cheetose B July 1, 2019, 11:57 a.m. OK GNU C++17 TESTS 44 46 1638400 2400
56030213 hjk1030 B June 25, 2019, 9:07 a.m. OK GNU C++17 TESTS 44 46 1638400 2400
55945025 vjudge4 B June 22, 2019, 7:06 p.m. OK GNU C++17 TESTS 44 46 1638400 2400
52299928 Hipo_3412 B April 4, 2019, 8:27 a.m. OK GNU C++17 TESTS 44 46 2048000 2400
62315328 Unsterblicher_Geist B Oct. 10, 2019, 3:07 p.m. OK GNU C++17 TESTS 44 46 2560000 2400
55946314 nikolapesic2802 B June 22, 2019, 8:02 p.m. OK GNU C++17 TESTS 44 46 3072000 2400
31766075 antkhorin B Oct. 26, 2017, 5:19 p.m. OK Java 8 TESTS 44 124 0 2400
31753126 Lewin B Oct. 26, 2017, 3:27 p.m. OK Java 8 TESTS 44 124 0 2400
46422385 fetetriste B Nov. 30, 2018, 10:58 p.m. OK Java 8 TESTS 44 139 0 2400
31774054 pashka B Oct. 26, 2017, 10:07 p.m. OK Java 8 TESTS 44 139 0 2400
31761767 Musin B Oct. 26, 2017, 4:22 p.m. OK Java 8 TESTS 44 139 0 2400
31766850 Musin B Oct. 26, 2017, 5:31 p.m. OK Java 8 TESTS 44 140 0 2400
31766744 Musin B Oct. 26, 2017, 5:30 p.m. OK Java 8 TESTS 44 140 0 2400
31763510 uwi B Oct. 26, 2017, 4:34 p.m. OK Java 8 TESTS 44 140 0 2400
34295956 tri B Jan. 19, 2018, 8 a.m. OK Java 8 TESTS 44 140 20992000 2400
31766775 Musin B Oct. 26, 2017, 5:31 p.m. OK Java 8 TESTS 44 155 0 2400
32348373 TaHuynhTin B Nov. 16, 2017, 6:26 a.m. OK MS C# TESTS 44 62 7475200 2400
32328249 lenguyenhung B Nov. 15, 2017, 9:54 a.m. OK MS C# TESTS 44 1154 9728000 2400
31849659 Maffka B Oct. 28, 2017, 7:54 p.m. OK MS C++ TESTS 44 31 2764800 2400
31756011 Taube B Oct. 26, 2017, 3:43 p.m. OK MS C++ TESTS 44 31 2969600 2400
31876235 AleksanderBalobanov B Oct. 29, 2017, 7:53 p.m. OK MS C++ TESTS 44 31 6553600 2400
31764860 waltz B Oct. 26, 2017, 4:42 p.m. OK MS C++ TESTS 44 31 21401600 2400
31931544 mshcherba B Oct. 31, 2017, 7:08 p.m. OK MS C++ TESTS 44 78 3891200 2400

remove filters

Back to search problems