Codeforces Round 232 (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
396 Codeforces Round 232 (Div. 1) FINISHED False 7200 338394599 Feb. 26, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 154 ) E On Iteration of One Well-Known Function PROGRAMMING math

B"Of course, many of you can calculate xcf x86(n) -- the number of positive integers that are less than or equal to n, that are coprime with n. But what if we need to calculate xcf x86( xcf x86(... xcf x86(n))), where function xcf x86 is taken k times and n is given in the canonical decomposition into prime factors? You are given n and k, calculate the value of xcf x86( xcf x86(... xcf x86(n))). Print the result in the canonical decomposition into prime factors. The first line contains integer m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the number of distinct prime divisors in the canonical representaion of n. Each of the next m lines contains a pair of space-separated integers pi, xe2 x80 x89ai (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89pi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891017) -- another prime divisor of number n and its power in the canonical representation. The sum of all ai doesn't exceed 1017. Prime divisors in the input follow in the strictly increasing order. The last line contains integer k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891018). In the first line, print integer w -- the number of distinct prime divisors of number xcf x86( xcf x86(... xcf x86(n))), where function xcf x86 is taken k times. Each of the next w lines must contain two space-separated integers qi, xe2 x80 x89bi (bi xe2 x80 x89 xe2 x89 xa5 xe2 x80 x891) -- another prime divisor and its power in the canonical representaion of the result. Numbers qi must go in the strictly increasing order. You can read about canonical representation of a positive integer here: http://en.wikipedia.org/wiki/Fundamental_theorem_of_arithmetic. You can read about function xcf x86(n) here: http://en.wikipedia.org/wiki/Euler's_totient_function."...

Tutorials

Codeforces Round #232 Editorial (restored)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
42071000 Scut82 E Aug. 25, 2018, 12:27 a.m. OK GNU C++ TESTS 126 61 24064000
42070987 Scut82 E Aug. 25, 2018, 12:26 a.m. OK GNU C++ TESTS 126 78 32051200
5930175 dhh1995 E March 5, 2014, 9:51 a.m. OK GNU C++ TESTS 126 93 32051200
40989001 ReaLNero1 E July 30, 2018, 10:31 p.m. OK GNU C++ TESTS 126 93 35430400
36666131 orzyww2 E March 27, 2018, 11:36 a.m. OK GNU C++ TESTS 126 93 35635200
6473014 YePro12 E April 25, 2014, 12:42 p.m. OK GNU C++ TESTS 126 93 35635200
35863955 ______u______ E March 2, 2018, 10:58 p.m. OK GNU C++ TESTS 126 93 37478400
35863793 ______n______ E March 2, 2018, 10:53 p.m. OK GNU C++ TESTS 126 93 37478400
35863369 _____i_____ E March 2, 2018, 10:45 p.m. OK GNU C++ TESTS 126 93 37478400
35863319 _____k_____ E March 2, 2018, 10:43 p.m. OK GNU C++ TESTS 126 93 37478400
5925619 Fdg E March 4, 2014, 5:25 p.m. OK GNU C++0x TESTS 126 280 11980800
6562165 foreseeable E May 6, 2014, 12:28 p.m. OK GNU C++0x TESTS 126 296 26726400
9429919 SeyedParsa E Jan. 14, 2015, 2:55 p.m. OK GNU C++0x TESTS 126 296 83558400
7988040 Endagorion E Sept. 27, 2014, 6:44 p.m. OK GNU C++0x TESTS 126 311 17100800
5952252 andreihh E March 6, 2014, 3:58 p.m. OK GNU C++0x TESTS 126 358 12083200
7538868 arthur.nascimento E Aug. 21, 2014, 2:30 a.m. OK GNU C++0x TESTS 126 405 53248000
7424726 hogloid E Aug. 11, 2014, 7:39 a.m. OK GNU C++0x TESTS 126 592 87244800
7424718 hogloid E Aug. 11, 2014, 7:38 a.m. OK GNU C++0x TESTS 126 592 87244800
7424693 hogloid E Aug. 11, 2014, 7:35 a.m. OK GNU C++0x TESTS 126 592 87244800
58116798 luogu_bot4 E Aug. 1, 2019, 9:08 a.m. OK GNU C++11 TESTS 126 77 39936000
57891720 lopare E July 28, 2019, 12:05 p.m. OK GNU C++11 TESTS 126 78 35430400
57195105 Morning_Glory E July 17, 2019, 11:56 a.m. OK GNU C++11 TESTS 126 78 35942400
57072100 luogu_bot5 E July 15, 2019, 3:07 a.m. OK GNU C++11 TESTS 126 78 39936000
57749109 vjudge2 E July 25, 2019, 2:07 p.m. OK GNU C++11 TESTS 126 78 50790400
57749047 CYJJJian E July 25, 2019, 2:06 p.m. OK GNU C++11 TESTS 126 78 50790400
11659903 miskcoo E June 19, 2015, 1:36 a.m. OK GNU C++11 TESTS 126 93 16486400
57194108 luogu_bot1 E July 17, 2019, 11:38 a.m. OK GNU C++11 TESTS 126 93 35942400
57071846 Zbr E July 15, 2019, 3 a.m. OK GNU C++11 TESTS 126 93 39936000
20754212 returnzoo E Sept. 19, 2016, 12:04 p.m. OK GNU C++11 TESTS 126 93 48947200
56557402 Scut82 E July 5, 2019, 1:03 p.m. OK GNU C++14 TESTS 126 93 24064000
56551994 Scut82 E July 5, 2019, 10:15 a.m. OK GNU C++14 TESTS 126 93 24064000
70614544 Origenes E Feb. 9, 2020, 9:32 a.m. OK GNU C++14 TESTS 126 93 48435200
60422189 Scut82 E Sept. 12, 2019, 6:37 a.m. OK GNU C++14 TESTS 126 108 24064000
60422073 Scut82 E Sept. 12, 2019, 6:33 a.m. OK GNU C++14 TESTS 126 108 24064000
60421951 Scut82 E Sept. 12, 2019, 6:30 a.m. OK GNU C++14 TESTS 126 109 24064000
25095409 Not_A_SingleDogQrz E Feb. 28, 2017, 8:05 a.m. OK GNU C++14 TESTS 126 140 22118400
25095281 Not_A_SingleDogQrz E Feb. 28, 2017, 7:58 a.m. OK GNU C++14 TESTS 126 140 22118400
50727483 atoiz E March 3, 2019, 10:20 a.m. OK GNU C++14 TESTS 126 155 37785600
24993288 renegade_warrior E Feb. 24, 2017, 7:21 p.m. OK GNU C++14 TESTS 126 155 42496000
57259082 ruo E July 18, 2019, 4 a.m. OK GNU C++17 TESTS 126 93 32051200
57198693 vjudge2 E July 17, 2019, 1:03 p.m. OK GNU C++17 TESTS 126 93 36044800
57195273 Morning_Glory E July 17, 2019, 11:59 a.m. OK GNU C++17 TESTS 126 93 36044800
57195116 Morning_Glory E July 17, 2019, 11:56 a.m. OK GNU C++17 TESTS 126 93 36044800
57218511 vjudge1 E July 17, 2019, 3:17 p.m. OK GNU C++17 TESTS 126 109 36044800
61573296 Ari E Sept. 30, 2019, 7:31 p.m. OK GNU C++17 TESTS 126 186 57036800
39951755 majk E July 4, 2018, 10:45 a.m. OK GNU C++17 TESTS 126 311 20992000
58337114 Sali_adelkhah E Aug. 5, 2019, 11:53 a.m. OK GNU C++17 TESTS 126 343 49664000
54867998 ArshiaDadras E May 31, 2019, 7:29 a.m. OK GNU C++17 TESTS 126 358 49664000
61575404 Umi E Sept. 30, 2019, 8:31 p.m. OK GNU C++17 TESTS 126 436 83456000
57072017 vjudge5 E July 15, 2019, 3:04 a.m. OK MS C++ TESTS 126 77 40140800
57218672 vjudge1 E July 17, 2019, 3:17 p.m. OK MS C++ TESTS 126 78 36044800
14463903 Los_Angelos_Laycurse E Nov. 25, 2015, 6:48 a.m. OK MS C++ TESTS 126 93 16588800
14463913 Los_Angelos_Laycurse E Nov. 25, 2015, 6:49 a.m. OK MS C++ TESTS 126 108 16588800
50689741 Darooha E March 2, 2019, 3:07 p.m. OK Ocaml TESTS 126 171 16896000
6018339 Quimbee E March 15, 2014, 6:18 a.m. OK Ocaml TESTS 126 234 17408000

remove filters

Back to search problems