Codeforces Round 201 (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
346 Codeforces Round 201 (Div. 1) FINISHED False 7200 352132199 Sept. 20, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1437 ) C Number Transformation II PROGRAMMING greedy math 2200

B'You are given a sequence of positive integers x1, xe2 x80 x89x2, xe2 x80 x89..., xe2 x80 x89xn and two non-negative integers a and b. Your task is to transform a into b. To do that, you can perform the following moves: Operation a mod xi means taking the remainder after division of number a by number xi. Now you want to know the minimum number of moves needed to transform a into b. The first line contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The second line contains n space-separated integers x1, xe2 x80 x89x2, xe2 x80 x89..., xe2 x80 x89xn (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89 xe2 x80 x89xi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). The third line contains two integers a and b (0 xe2 x80 x89 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89b xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89 xe2 x80 x89a xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109, a xe2 x80 x89- xe2 x80 x89b xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106). Print a single integer -- the required minimum number of moves needed to transform number a into number b.'...

Tutorials

Codeforces Round #201 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
4524527 Gassa C Sept. 20, 2013, 7:46 p.m. OK D TESTS 36 374 3174400 2200
4524478 Gassa C Sept. 20, 2013, 7:40 p.m. OK D TESTS 36 404 3174400 2200
4524444 Gassa C Sept. 20, 2013, 7:37 p.m. OK D TESTS 36 404 3174400 2200
4521260 Misha100896 C Sept. 20, 2013, 5:18 p.m. OK Delphi TESTS 36 62 24064000 2200
4535708 ruban C Sept. 22, 2013, 9:30 a.m. OK Delphi TESTS 36 156 26112000 2200
4556542 DaibaNana C Sept. 25, 2013, 1:54 p.m. OK FPC TESTS 36 62 409600 2200
4549852 Nik_Storm_2010 C Sept. 24, 2013, 4:13 p.m. OK FPC TESTS 36 62 512000 2200
5176539 Q_Q C Nov. 20, 2013, 12:46 p.m. OK FPC TESTS 36 62 1024000 2200
4521440 Omelianenko C Sept. 20, 2013, 5:20 p.m. OK FPC TESTS 36 124 1638400 2200
4518200 weizhaohui C Sept. 20, 2013, 4:35 p.m. OK FPC TESTS 36 248 8806400 2200
5624177 Harun C Jan. 5, 2014, 8:22 p.m. OK GNU C++ TESTS 36 30 409600 2200
4570587 shjj C Sept. 27, 2013, 1:08 a.m. OK GNU C++ TESTS 36 30 409600 2200
4909699 MakingMaker C Oct. 27, 2013, 6:36 a.m. OK GNU C++ TESTS 36 31 1228800 2200
4921573 longbiau C Oct. 28, 2013, 2:54 p.m. OK GNU C++ TESTS 36 46 409600 2200
19018363 Yhx C July 11, 2016, 2:07 a.m. OK GNU C++ TESTS 36 62 409600 2200
8557304 Pudge123 C Nov. 5, 2014, 11:36 a.m. OK GNU C++ TESTS 36 62 409600 2200
7206335 Ringod C July 23, 2014, 6:14 a.m. OK GNU C++ TESTS 36 62 409600 2200
7014847 yjc9696 C July 5, 2014, 8:26 a.m. OK GNU C++ TESTS 36 62 409600 2200
6934645 vjudge2 C June 21, 2014, 5:06 a.m. OK GNU C++ TESTS 36 62 409600 2200
6655946 qwer_zcc C May 19, 2014, 12:06 p.m. OK GNU C++ TESTS 36 62 409600 2200
8595083 krismaz C Nov. 6, 2014, 6:43 p.m. OK GNU C++0x TESTS 36 62 409600 2200
4543067 diego_v1 C Sept. 23, 2013, 2:26 p.m. OK GNU C++0x TESTS 36 62 409600 2200
4543047 diego_v1 C Sept. 23, 2013, 2:23 p.m. OK GNU C++0x TESTS 36 62 409600 2200
4522186 I_hate_ACM C Sept. 20, 2013, 5:29 p.m. OK GNU C++0x TESTS 36 62 409600 2200
4534916 Mark_Fan C Sept. 22, 2013, 7:11 a.m. OK GNU C++0x TESTS 36 62 921600 2200
4550061 cacophonix C Sept. 24, 2013, 4:53 p.m. OK GNU C++0x TESTS 36 92 1638400 2200
9883760 zxc901 C Feb. 17, 2015, 3:46 p.m. OK GNU C++0x TESTS 36 92 4608000 2200
4528063 darrenhp C Sept. 21, 2013, 7:25 a.m. OK GNU C++0x TESTS 36 92 4710400 2200
4515877 liympanda C Sept. 20, 2013, 4:09 p.m. OK GNU C++0x TESTS 36 92 4812800 2200
4543974 evima C Sept. 23, 2013, 4:48 p.m. OK GNU C++0x TESTS 36 92 5529600 2200
30750620 ashwinsingh C Sept. 26, 2017, 12:37 p.m. OK GNU C++11 TESTS 36 62 409600 2200
27829662 yah01 C June 16, 2017, 4:36 p.m. OK GNU C++11 TESTS 36 62 2048000 2200
20211421 wwyyxx C Aug. 28, 2016, 12:35 p.m. OK GNU C++11 TESTS 36 62 2252800 2200
33000109 miamiao C Dec. 7, 2017, 12:19 p.m. OK GNU C++11 TESTS 36 62 2457600 2200
30948472 ZzZZzzzZZZZZzzzzzzzz C Oct. 2, 2017, 4:38 p.m. OK GNU C++11 TESTS 36 62 4812800 2200
27206523 RNS_CUS C May 19, 2017, 2:19 a.m. OK GNU C++11 TESTS 36 62 5017600 2200
30960471 ZzZZzzzZZZZZzzzzzzzz C Oct. 3, 2017, 7:10 a.m. OK GNU C++11 TESTS 36 62 8908800 2200
15577093 walkhorse C Jan. 25, 2016, 3:52 p.m. OK GNU C++11 TESTS 36 92 204800 2200
63265940 shuashuawan C Oct. 24, 2019, 12:04 a.m. OK GNU C++11 TESTS 36 92 409600 2200
58101996 vjudge2 C Aug. 1, 2019, 1:40 a.m. OK GNU C++11 TESTS 36 92 409600 2200
30976035 Ahmad_Osama C Oct. 3, 2017, 6:45 p.m. OK GNU C++14 TESTS 36 92 409600 2200
30551168 Lucky_Sanae C Sept. 20, 2017, 3:51 p.m. OK GNU C++14 TESTS 36 92 409600 2200
27206505 RNS_JKS C May 19, 2017, 2:15 a.m. OK GNU C++14 TESTS 36 92 409600 2200
41989406 nirvana C Aug. 23, 2018, 7:56 a.m. OK GNU C++14 TESTS 36 92 819200 2200
36305099 rawatds C March 15, 2018, 2:52 p.m. OK GNU C++14 TESTS 36 92 2252800 2200
31676861 fsshakkhor C Oct. 24, 2017, 10:14 a.m. OK GNU C++14 TESTS 36 92 2355200 2200
26709281 rick_c137 C April 27, 2017, 8:22 p.m. OK GNU C++14 TESTS 36 92 2355200 2200
25569173 joyfun C March 17, 2017, 10:33 a.m. OK GNU C++14 TESTS 36 92 2355200 2200
24800642 WeAreTheFlame C Feb. 19, 2017, 11:27 a.m. OK GNU C++14 TESTS 36 92 2355200 2200
35566074 murugappan_s C Feb. 22, 2018, 6:42 a.m. OK GNU C++14 TESTS 36 92 2457600 2200
57244776 UnstoppableChillMachine C July 17, 2019, 6:52 p.m. OK GNU C++17 TESTS 36 92 409600 2200
54809594 leecs0503 C May 29, 2019, 4:03 p.m. OK GNU C++17 TESTS 36 92 2150400 2200
67255793 ffern C Dec. 19, 2019, 10:01 p.m. OK GNU C++17 TESTS 36 122 409600 2200
62667498 ST_C C Oct. 16, 2019, 8:23 a.m. OK GNU C++17 TESTS 36 122 409600 2200
56030193 harshhx17 C June 25, 2019, 9:07 a.m. OK GNU C++17 TESTS 36 122 1126400 2200
56029958 harshhx17 C June 25, 2019, 8:59 a.m. OK GNU C++17 TESTS 36 122 1126400 2200
60767726 wangyuze C Sept. 18, 2019, 11:35 a.m. OK GNU C++17 TESTS 36 124 409600 2200
46582353 vjudge3 C Dec. 4, 2018, 11:44 a.m. OK GNU C++17 TESTS 36 124 409600 2200
46581767 vjudge4 C Dec. 4, 2018, 11:32 a.m. OK GNU C++17 TESTS 36 124 409600 2200
48488888 terminator C Jan. 17, 2019, 9:43 a.m. OK GNU C++17 TESTS 36 124 614400 2200
4524127 uwi C Sept. 20, 2013, 7:04 p.m. OK Java 6 TESTS 36 966 0 2200
4522952 uwi C Sept. 20, 2013, 6:03 p.m. OK Java 6 TESTS 36 966 0 2200
4524494 uwi C Sept. 20, 2013, 7:42 p.m. OK Java 6 TESTS 36 998 0 2200
4524098 uwi C Sept. 20, 2013, 7:02 p.m. OK Java 6 TESTS 36 998 0 2200
4517285 Egor C Sept. 20, 2013, 4:24 p.m. OK Java 7 TESTS 36 186 204800 2200
6573078 vjudge1 C May 8, 2014, 3:11 p.m. OK Java 7 TESTS 36 218 204800 2200
6573066 vjudge2 C May 8, 2014, 3:10 p.m. OK Java 7 TESTS 36 218 204800 2200
4542917 ftiasch C Sept. 23, 2013, 2:06 p.m. OK Java 7 TESTS 36 218 307200 2200
4519104 Jokser C Sept. 20, 2013, 4:48 p.m. OK Java 7 TESTS 36 218 512000 2200
6580579 pikapika C May 10, 2014, 4:15 a.m. OK Java 7 TESTS 36 248 204800 2200
6573070 vjudge1 C May 8, 2014, 3:11 p.m. OK Java 7 TESTS 36 248 204800 2200
4527732 wwr1227 C Sept. 21, 2013, 6:29 a.m. OK Java 7 TESTS 36 248 409600 2200
4527621 S.Yesipenko C Sept. 21, 2013, 6:10 a.m. OK Java 7 TESTS 36 248 409600 2200
9374287 vjudge3 C Jan. 6, 2015, 4:40 p.m. OK Java 7 TESTS 36 278 0 2200
39642432 amnesiac_dusk C June 25, 2018, 7:56 a.m. OK Java 8 TESTS 36 466 0 2200
43496467 aabdelzaher C Sept. 27, 2018, 2:55 p.m. OK Java 8 TESTS 36 498 2048000 2200
7063646 IgorKoval C July 11, 2014, 12:34 p.m. OK Java 8 TESTS 36 716 2252800 2200
4600157 tomas.svab C Sept. 28, 2013, 5:33 p.m. OK MS C++ TESTS 36 62 307200 2200
4530221 River C Sept. 21, 2013, 11:38 a.m. OK MS C++ TESTS 36 62 409600 2200
4521540 AlexanderL C Sept. 20, 2013, 5:22 p.m. OK MS C++ TESTS 36 62 409600 2200
4523429 cfy C Sept. 20, 2013, 6:19 p.m. OK MS C++ TESTS 36 62 4403200 2200
4600526 tomas.svab C Sept. 28, 2013, 6:47 p.m. OK MS C++ TESTS 36 92 307200 2200
46581615 vjudge5 C Dec. 4, 2018, 11:28 a.m. OK MS C++ TESTS 36 92 409600 2200
10625243 Alex7 C April 7, 2015, 8:25 p.m. OK MS C++ TESTS 36 92 409600 2200
4532524 vml C Sept. 21, 2013, 5:08 p.m. OK MS C++ TESTS 36 92 3686400 2200
4522792 forest C Sept. 20, 2013, 5:59 p.m. OK MS C++ TESTS 36 124 4300800 2200
4518995 NuM C Sept. 20, 2013, 4:46 p.m. OK MS C++ TESTS 36 124 4300800 2200
4536038 limed C Sept. 22, 2013, 10:25 a.m. OK Scala TESTS 36 780 512000 2200

remove filters

Back to search problems