Codeforces Round 324 (Div. 2)

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
584 Codeforces Round 324 (Div. 2) FINISHED False 7200 287674199 Oct. 6, 2015, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9465 ) D Dima and Lisa PROGRAMMING brute force math number theory 1700

B'Dima loves representing an odd number as the sum of multiple primes, and Lisa loves it when there are at most three primes. Help them to represent the given number as the sum of at most than three primes. More formally, you are given an odd numer n. Find a set of numbers pi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k), such that The numbers pi do not necessarily have to be distinct. It is guaranteed that at least one possible solution exists. The single line contains an odd number n (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89< xe2 x80 x89109). In the first line print k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893), showing how many numbers are in the representation you found. In the second line print numbers pi in any order. If there are multiple possible solutions, you can print any of them. A prime is an integer strictly larger than one that is divisible only by one and by itself.'...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
22459659 amidethuong3 D Nov. 24, 2016, 6 a.m. OK FPC TESTS 109 15 0 1700
27340783 DTN D May 25, 2017, 4:19 p.m. OK FPC TESTS 109 15 0 1700
32603097 TShT D Nov. 23, 2017, 7:08 p.m. OK FPC TESTS 109 15 1638400 1700
20221424 torest D Aug. 29, 2016, 2:13 a.m. OK FPC TESTS 109 31 0 1700
23209789 ice_tea D Dec. 21, 2016, 8:03 p.m. OK FPC TESTS 109 31 1638400 1700
23662177 Gray_58 D Jan. 9, 2017, 8:01 a.m. OK FPC TESTS 109 31 1638400 1700
24598116 treash D Feb. 11, 2017, 10:10 p.m. OK FPC TESTS 109 187 81817600 1700
30818597 reyad D Sept. 29, 2017, 1:44 a.m. OK GNU C TESTS 109 15 307200 1700
23550937 yigezhe D Jan. 5, 2017, 8:44 a.m. OK GNU C TESTS 109 15 1945600 1700
19158110 sgtlaugh D July 15, 2016, 4:52 p.m. OK GNU C TESTS 109 171 819200 1700
32519635 hustpanda D Nov. 21, 2017, 8:29 a.m. OK GNU C++ TESTS 109 15 0 1700
30918882 hugewarriors D Oct. 1, 2017, 7:14 p.m. OK GNU C++ TESTS 109 15 0 1700
29700942 vjudge2 D Aug. 23, 2017, 7:56 a.m. OK GNU C++ TESTS 109 15 0 1700
29699643 vjudge3 D Aug. 23, 2017, 6:49 a.m. OK GNU C++ TESTS 109 15 0 1700
29624101 vjudge5 D Aug. 20, 2017, 3:04 p.m. OK GNU C++ TESTS 109 15 0 1700
29530325 vjudge1 D Aug. 17, 2017, 4:22 p.m. OK GNU C++ TESTS 109 15 0 1700
29525751 vjudge5 D Aug. 17, 2017, 12:15 p.m. OK GNU C++ TESTS 109 15 0 1700
29524457 vjudge4 D Aug. 17, 2017, 10:58 a.m. OK GNU C++ TESTS 109 15 0 1700
29524195 vjudge4 D Aug. 17, 2017, 10:39 a.m. OK GNU C++ TESTS 109 15 0 1700
29522494 vjudge2 D Aug. 17, 2017, 9:06 a.m. OK GNU C++ TESTS 109 15 0 1700
23720244 vjudge3 D Jan. 11, 2017, 2:32 p.m. OK GNU C11 TESTS 109 15 1843200 1700
24954535 MusfiqxShohan D Feb. 24, 2017, 4:47 a.m. OK GNU C11 TESTS 109 15 1945600 1700
22305550 vjudge5 D Nov. 18, 2016, 11:55 a.m. OK GNU C11 TESTS 109 31 0 1700
57154522 rainboy D July 16, 2019, 4:09 p.m. OK GNU C11 TESTS 109 31 0 1700
58314593 vjudge1 D Aug. 5, 2019, 2:09 a.m. OK GNU C11 TESTS 109 31 0 1700
61086143 setulovelegend D Sept. 22, 2019, 6:26 p.m. OK GNU C11 TESTS 109 31 0 1700
63679747 Sumpark D Oct. 28, 2019, 7:32 p.m. OK GNU C11 TESTS 109 31 0 1700
39357695 mdnaufal.h D June 18, 2018, 1:40 p.m. OK GNU C11 TESTS 109 31 0 1700
52669183 vjudge2 D April 13, 2019, 6:36 a.m. OK GNU C11 TESTS 109 31 0 1700
58314278 vjudge3 D Aug. 5, 2019, 1:59 a.m. OK GNU C11 TESTS 109 124 0 1700
29508002 JJboom D Aug. 16, 2017, 2:41 p.m. OK GNU C++11 TESTS 109 15 0 1700
29769963 rahulag1997 D Aug. 25, 2017, 6:09 a.m. OK GNU C++11 TESTS 109 15 0 1700
30067895 id1 D Sept. 4, 2017, 3:30 p.m. OK GNU C++11 TESTS 109 15 0 1700
30069786 id1 D Sept. 4, 2017, 3:42 p.m. OK GNU C++11 TESTS 109 15 0 1700
30659597 AlexTheDagon D Sept. 24, 2017, 7:57 a.m. OK GNU C++11 TESTS 109 15 0 1700
30670980 lerka D Sept. 24, 2017, 2:43 p.m. OK GNU C++11 TESTS 109 15 0 1700
30681768 Therevengerking D Sept. 24, 2017, 4:05 p.m. OK GNU C++11 TESTS 109 15 0 1700
30763559 Genawy D Sept. 26, 2017, 9:14 p.m. OK GNU C++11 TESTS 109 15 0 1700
31202516 Origims D Oct. 10, 2017, 8:25 p.m. OK GNU C++11 TESTS 109 15 0 1700
31257281 Quinas D Oct. 12, 2017, 5:57 p.m. OK GNU C++11 TESTS 109 15 0 1700
32494136 BThero D Nov. 20, 2017, 9:06 a.m. OK GNU C++14 TESTS 109 15 0 1700
38988038 vishal3410 D June 6, 2018, 8:18 a.m. OK GNU C++14 TESTS 109 15 0 1700
38572640 dushyant7917 D May 23, 2018, 9:45 p.m. OK GNU C++14 TESTS 109 15 0 1700
32107316 hunter1703 D Nov. 6, 2017, 11:40 p.m. OK GNU C++14 TESTS 109 15 0 1700
32088270 bash D Nov. 6, 2017, 6:24 a.m. OK GNU C++14 TESTS 109 15 0 1700
31869676 21August D Oct. 29, 2017, 2:37 p.m. OK GNU C++14 TESTS 109 15 0 1700
31769526 Fishsticks D Oct. 26, 2017, 6:34 p.m. OK GNU C++14 TESTS 109 15 0 1700
31321049 Rtn_e D Oct. 14, 2017, 6:36 p.m. OK GNU C++14 TESTS 109 15 0 1700
31313001 Atreus D Oct. 14, 2017, 1:46 p.m. OK GNU C++14 TESTS 109 15 0 1700
31295080 Ayanical D Oct. 14, 2017, 8:30 a.m. OK GNU C++14 TESTS 109 15 0 1700
36041252 SanzianaTudose Pondorasti WallE256 D March 7, 2018, 11:13 a.m. OK GNU C++17 TESTS 109 15 1945600 1700
38778104 customer101 D May 30, 2018, 3:28 p.m. OK GNU C++17 TESTS 109 15 3379200 1700
39200726 ebrahim.magdy D June 12, 2018, 8:16 p.m. OK GNU C++17 TESTS 109 15 3993600 1700
50619205 mahmoud_aboeleneen D Feb. 28, 2019, 10:25 p.m. OK GNU C++17 TESTS 109 30 0 1700
65688871 JacksonGoerner D Nov. 25, 2019, 3 a.m. OK GNU C++17 TESTS 109 30 0 1700
38418719 mohammad_heydari D May 19, 2018, 5:57 a.m. OK GNU C++17 TESTS 109 30 307200 1700
41271542 3agwa D Aug. 6, 2018, 10:38 a.m. OK GNU C++17 TESTS 109 30 307200 1700
36876677 Khaled_Salem D April 2, 2018, 11:42 a.m. OK GNU C++17 TESTS 109 30 3379200 1700
39359537 cjtoribio D June 18, 2018, 3:24 p.m. OK GNU C++17 TESTS 109 30 125235200 1700
69977498 Gagan_Dhakrey D Feb. 1, 2020, 3:23 p.m. OK GNU C++17 TESTS 109 31 0 1700
61212532 synapse D Sept. 24, 2019, 11:53 a.m. OK Go TESTS 109 46 0 1700
22561959 nagibator D Nov. 27, 2016, 11:39 p.m. OK Haskell TESTS 109 15 102400 1700
68956037 Codess D Jan. 16, 2020, 8:11 p.m. OK Java 11 TESTS 109 249 204800 1700
19184011 grand1 D July 17, 2016, 4:44 a.m. OK Java 7 TESTS 109 140 0 1700
27464170 karanjobanputra D May 31, 2017, 10:26 a.m. OK Java 8 TESTS 109 109 0 1700
57569773 satya26 D July 23, 2019, 4:43 a.m. OK Java 8 TESTS 109 109 0 1700
47038974 weird_penguin D Dec. 15, 2018, 1:45 p.m. OK Java 8 TESTS 109 109 0 1700
27444308 BEerYourself D May 30, 2017, 9:30 a.m. OK Java 8 TESTS 109 109 0 1700
25541850 ekaanshkhosla D March 16, 2017, 8:08 a.m. OK Java 8 TESTS 109 109 20480000 1700
29126149 rizqyfaishal272 D Aug. 2, 2017, 9:57 a.m. OK Java 8 TESTS 109 109 20582400 1700
68451333 adarsh000321 D Jan. 9, 2020, 2:28 p.m. OK Java 8 TESTS 109 124 0 1700
58507690 adeepgarg13 D Aug. 9, 2019, 5:16 p.m. OK Java 8 TESTS 109 124 0 1700
58142099 hasan5788 D Aug. 1, 2019, 6:40 p.m. OK Java 8 TESTS 109 124 0 1700
55326311 its_aks_ulure D June 9, 2019, 8:17 a.m. OK Java 8 TESTS 109 124 0 1700
51580965 nemars D March 20, 2019, 2:29 p.m. OK Mono C# TESTS 109 62 0 1700
19303228 Mem D July 21, 2016, 1:35 p.m. OK MS C# TESTS 109 46 102400 1700
27620566 Sorryforpartyrocking D June 6, 2017, 7:19 p.m. OK MS C# TESTS 109 61 102400 1700
22582291 gleb.astashkin D Nov. 28, 2016, 5:40 p.m. OK MS C++ TESTS 109 15 0 1700
27307187 Capitan D May 23, 2017, 6:52 p.m. OK MS C++ TESTS 109 15 102400 1700
30816912 Reham_Abdallatef D Sept. 28, 2017, 10:09 p.m. OK MS C++ TESTS 109 15 204800 1700
25665829 noru0114 D March 20, 2017, 12:52 p.m. OK MS C++ TESTS 109 15 1945600 1700
29497901 vjudge5 D Aug. 16, 2017, 6:31 a.m. OK MS C++ TESTS 109 15 2048000 1700
29497862 vjudge5 D Aug. 16, 2017, 6:30 a.m. OK MS C++ TESTS 109 15 2048000 1700
26099821 jslijin D April 3, 2017, 12:52 p.m. OK MS C++ TESTS 109 15 2048000 1700
35945920 GMNY D March 4, 2018, 5:42 p.m. OK MS C++ TESTS 109 15 3174400 1700
20784750 sahab_s D Sept. 20, 2016, 8:34 p.m. OK MS C++ TESTS 109 30 0 1700
30816864 Reham_Abdallatef D Sept. 28, 2017, 10:05 p.m. OK MS C++ TESTS 109 30 204800 1700
58203549 vjudge4 D Aug. 3, 2019, 5:51 a.m. OK MS C++ 2017 TESTS 109 31 0 1700
61118684 CtrlAlt D Sept. 23, 2019, 1:43 p.m. OK MS C++ 2017 TESTS 109 31 0 1700
58202811 vjudge1 D Aug. 3, 2019, 5:27 a.m. OK MS C++ 2017 TESTS 109 31 0 1700
57889613 vjudge5 D July 28, 2019, 11:20 a.m. OK MS C++ 2017 TESTS 109 31 0 1700
58246525 vjudge1 D Aug. 4, 2019, 5:43 a.m. OK MS C++ 2017 TESTS 109 31 0 1700
58203180 vjudge3 D Aug. 3, 2019, 5:39 a.m. OK MS C++ 2017 TESTS 109 31 0 1700
65552303 NullOne D Nov. 22, 2019, 7:32 p.m. OK MS C++ 2017 TESTS 109 31 307200 1700
66487467 HishamDroubi D Dec. 8, 2019, 7:06 a.m. OK MS C++ 2017 TESTS 109 31 307200 1700
58208887 vjudge3 D Aug. 3, 2019, 8:09 a.m. OK MS C++ 2017 TESTS 109 46 0 1700
58220879 vjudge2 D Aug. 3, 2019, 12:30 p.m. OK MS C++ 2017 TESTS 109 46 0 1700
53890214 mm944 D May 8, 2019, 10:48 p.m. OK PascalABC.NET TESTS 109 342 204800 1700
42153635 YESMAths D Aug. 27, 2018, 1:29 p.m. OK PyPy 2 TESTS 109 140 0 1700
41285742 Onesh0t D Aug. 6, 2018, 7:42 p.m. OK PyPy 2 TESTS 109 140 102400 1700
64625908 nosy D Nov. 10, 2019, 8:31 a.m. OK PyPy 2 TESTS 109 171 102400 1700
42153523 YESMAths D Aug. 27, 2018, 1:26 p.m. OK PyPy 2 TESTS 109 186 716800 1700
39290026 aeternalis1 D June 16, 2018, 2:43 p.m. OK PyPy 2 TESTS 109 187 921600 1700
27511558 runar.hovland D June 1, 2017, 10:26 p.m. OK PyPy 3 TESTS 109 109 307200 1700
37672080 kevinsogo D April 27, 2018, 8:56 p.m. OK PyPy 3 TESTS 109 109 21913600 1700
37671939 kevinsogo D April 27, 2018, 8:46 p.m. OK PyPy 3 TESTS 109 139 21401600 1700
39790395 hetpandya98 D June 30, 2018, 7:12 a.m. OK PyPy 3 TESTS 109 155 0 1700
68227455 samedley D Jan. 5, 2020, 7:45 a.m. OK PyPy 3 TESTS 109 155 1945600 1700
69967495 sjoshi13 D Feb. 1, 2020, 1:04 p.m. OK PyPy 3 TESTS 109 156 1331200 1700
69831075 arafath D Jan. 30, 2020, 10:29 a.m. OK PyPy 3 TESTS 109 170 1228800 1700
69967082 sjoshi13 D Feb. 1, 2020, 12:58 p.m. OK PyPy 3 TESTS 109 186 1331200 1700
33744480 Hahahahahahahhahaha D Dec. 28, 2017, 7:23 p.m. OK Python 2 TESTS 109 62 4608000 1700
31375095 return007 D Oct. 15, 2017, 6:28 p.m. OK Python 2 TESTS 109 93 5120000 1700
38429059 Xeronn D May 19, 2018, 11:38 a.m. OK Python 2 TESTS 109 124 512000 1700
29350884 rprtr258 D Aug. 11, 2017, 10:51 a.m. OK Python 3 TESTS 109 62 4608000 1700
28823266 JustFairy D July 24, 2017, 11:44 a.m. OK Python 3 TESTS 109 77 4608000 1700
39032424 Wishnya D June 7, 2018, 10:24 p.m. OK Python 3 TESTS 109 93 0 1700
39032407 NastyaLarina1 D June 7, 2018, 10:22 p.m. OK Python 3 TESTS 109 93 0 1700
31126648 zearleze D Oct. 7, 2017, 7:27 p.m. OK Python 3 TESTS 109 93 921600 1700
34581184 Cbkhare D Jan. 26, 2018, 4:06 p.m. OK Python 3 TESTS 109 93 6144000 1700
36435018 lsiddiqsunny D March 20, 2018, 2:07 p.m. OK Python 3 TESTS 109 93 7065600 1700
55468636 iamssk D June 11, 2019, 5:35 p.m. OK Python 3 TESTS 109 124 0 1700
53266555 daotiennamhlvl D April 25, 2019, 2:19 a.m. OK Python 3 TESTS 109 124 0 1700
48907741 toysheeyeyraku D Jan. 24, 2019, 10:02 p.m. OK Python 3 TESTS 109 124 0 1700
35894819 _____k_____ D March 3, 2018, 4:30 p.m. OK Ruby TESTS 109 93 6656000 1700
35894081 ______n______ D March 3, 2018, 4:13 p.m. OK Ruby TESTS 109 93 6656000 1700
35893855 ______u______ D March 3, 2018, 4:08 p.m. OK Ruby TESTS 109 93 6656000 1700
35893780 _____i_____ D March 3, 2018, 4:07 p.m. OK Ruby TESTS 109 93 6656000 1700
35884958 ______h______ D March 3, 2018, 1:21 p.m. OK Ruby TESTS 109 93 6656000 1700
35884656 ______k______ D March 3, 2018, 1:15 p.m. OK Ruby TESTS 109 93 6656000 1700
35883518 ______i______ D March 3, 2018, 12:56 p.m. OK Ruby TESTS 109 93 6656000 1700
35874858 ______M______ D March 3, 2018, 8:03 a.m. OK Ruby TESTS 109 93 6656000 1700
65543004 tuna_salad D Nov. 22, 2019, 4:11 p.m. OK Rust TESTS 109 31 0 1700

remove filters

Back to search problems