Codeforces Round 257 (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
449 Codeforces Round 257 (Div. 1) FINISHED False 7200 326048399 July 19, 2014, 1 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2282 ) C Jzzhu and Apples PROGRAMMING constructive algorithms number theory 2500

B'Jzzhu has picked n apples from his big apple tree. All the apples are numbered from 1 to n. Now he wants to sell them to an apple store. Jzzhu will pack his apples into groups and then sell them. Each group must contain two apples, and the greatest common divisor of numbers of the apples in each group must be greater than 1. Of course, each apple can be part of at most one group. Jzzhu wonders how to get the maximum possible number of groups. Can you help him? A single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), the number of the apples. The first line must contain a single integer m, representing the maximum number of groups he can get. Each of the next m lines must contain two integers -- the numbers of apples in the current group. If there are several optimal answers you can print any of them.'...

Tutorials

Codeforces Round #257 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
7355159 hos.lyric C Aug. 5, 2014, 5:59 p.m. OK D TESTS 20 62 3276800 2500
7166009 Gassa C July 19, 2014, 1:55 p.m. OK D TESTS 20 842 17305600 2500
7168916 superfish C July 19, 2014, 2:19 p.m. OK FPC TESTS 20 93 1433600 2500
7330453 imhereonlyforcookies C Aug. 2, 2014, 4:52 p.m. OK FPC TESTS 20 93 2560000 2500
7181320 weizhaohui C July 20, 2014, 1:39 a.m. OK FPC TESTS 20 93 3481600 2500
37990484 chaorenhaha C May 7, 2018, 9:55 a.m. OK FPC TESTS 20 93 9318400 2500
7681911 ez_cjb C Sept. 4, 2014, 12:46 p.m. OK FPC TESTS 20 109 1433600 2500
7176440 AliD C July 19, 2014, 4:22 p.m. OK FPC TESTS 20 109 3174400 2500
37901448 chaorenhaha C May 5, 2018, 9:21 a.m. OK FPC TESTS 20 124 15257600 2500
7240230 graceoflives C July 25, 2014, 8:38 a.m. OK FPC TESTS 20 156 1638400 2500
7240126 graceoflives C July 25, 2014, 8:27 a.m. OK FPC TESTS 20 171 1638400 2500
7183961 sujaykr C July 20, 2014, 6:02 a.m. OK GNU C TESTS 20 31 1228800 2500
7213998 AnkitAti C July 24, 2014, 6:11 a.m. OK GNU C TESTS 20 31 1638400 2500
9370064 Recos C Jan. 6, 2015, 6:35 a.m. OK GNU C TESTS 20 62 1228800 2500
9370017 chandak C Jan. 6, 2015, 6:28 a.m. OK GNU C TESTS 20 62 1228800 2500
7174451 luoruixuan C July 19, 2014, 3:43 p.m. OK GNU C TESTS 20 93 819200 2500
7187571 Skeas C July 20, 2014, 3:21 p.m. OK GNU C++ TESTS 20 15 1433600 2500
9499757 ACMonster C Jan. 22, 2015, 8:06 a.m. OK GNU C++ TESTS 20 15 1945600 2500
11775331 rbenic C June 26, 2015, 5:21 p.m. OK GNU C++ TESTS 20 30 307200 2500
7293342 krijgertje C July 30, 2014, 1:58 p.m. OK GNU C++ TESTS 20 30 614400 2500
7197995 ecapia C July 21, 2014, 9:08 p.m. OK GNU C++ TESTS 20 30 614400 2500
7255118 skiluo C July 27, 2014, 6:12 a.m. OK GNU C++ TESTS 20 30 819200 2500
7730947 Ra16bit C Sept. 9, 2014, 8:16 p.m. OK GNU C++ TESTS 20 30 921600 2500
11910844 yu990601 C July 3, 2015, 12:39 p.m. OK GNU C++ TESTS 20 30 1024000 2500
7184986 Css C July 20, 2014, 9:21 a.m. OK GNU C++ TESTS 20 30 1024000 2500
11669018 syc1999 C June 19, 2015, 1:28 p.m. OK GNU C++ TESTS 20 30 1126400 2500
7797460 fsouza C Sept. 14, 2014, 9:31 p.m. OK GNU C++0x TESTS 20 30 1126400 2500
7255592 k0st1a C July 27, 2014, 7:35 a.m. OK GNU C++0x TESTS 20 30 1126400 2500
7185877 AndreiNet C July 20, 2014, 11:51 a.m. OK GNU C++0x TESTS 20 30 1331200 2500
7188149 Mindyou C July 20, 2014, 4:57 p.m. OK GNU C++0x TESTS 20 30 1536000 2500
7168078 package.zaic C July 19, 2014, 2:12 p.m. OK GNU C++0x TESTS 20 30 1945600 2500
7167007 Arterm C July 19, 2014, 2:03 p.m. OK GNU C++0x TESTS 20 30 1945600 2500
7931896 desert97 C Sept. 24, 2014, 12:46 a.m. OK GNU C++0x TESTS 20 30 5734400 2500
7202946 johnchen902 C July 22, 2014, 2:47 p.m. OK GNU C++0x TESTS 20 31 512000 2500
7251687 step5 C July 26, 2014, 4:53 p.m. OK GNU C++0x TESTS 20 31 614400 2500
7254599 yutaka1999 C July 27, 2014, 5:05 a.m. OK GNU C++0x TESTS 20 31 1024000 2500
10698305 FilipVesovic C April 13, 2015, 8:42 p.m. OK GNU C++11 TESTS 20 30 2150400 2500
32451800 ivory-si C Nov. 19, 2017, 8:55 a.m. OK GNU C++11 TESTS 20 30 3891200 2500
18653579 NourElRashidy C June 22, 2016, 10:01 p.m. OK GNU C++11 TESTS 20 31 1024000 2500
21244303 AakashHanda C Oct. 6, 2016, 7:18 p.m. OK GNU C++11 TESTS 20 31 1126400 2500
20436101 TheMaverick C Sept. 7, 2016, 12:54 p.m. OK GNU C++11 TESTS 20 31 1126400 2500
57937248 LittleBeetle C July 29, 2019, 11:16 a.m. OK GNU C++11 TESTS 20 31 1228800 2500
30023870 dyzsr C Sept. 3, 2017, 4 a.m. OK GNU C++11 TESTS 20 31 1228800 2500
27468495 Momentaiii C May 31, 2017, 2:03 p.m. OK GNU C++11 TESTS 20 31 1228800 2500
22287359 lajiniunai C Nov. 17, 2016, 12:08 p.m. OK GNU C++11 TESTS 20 31 1228800 2500
20536040 reku C Sept. 11, 2016, 4:26 p.m. OK GNU C++11 TESTS 20 31 1228800 2500
29793583 Egor.Lifar C Aug. 25, 2017, 10:49 p.m. OK GNU C++14 TESTS 20 15 1740800 2500
25067853 201530800126 C Feb. 27, 2017, 2:49 a.m. OK GNU C++14 TESTS 20 15 4198400 2500
30777942 AChen142857 C Sept. 27, 2017, 1:19 p.m. OK GNU C++14 TESTS 20 30 1228800 2500
31310770 FallDream C Oct. 14, 2017, 12:35 p.m. OK GNU C++14 TESTS 20 30 2764800 2500
23508351 xehoth C Jan. 3, 2017, 12:52 a.m. OK GNU C++14 TESTS 20 30 3072000 2500
35103880 danya.smelskiy C Feb. 9, 2018, 7:37 p.m. OK GNU C++14 TESTS 20 30 3379200 2500
24951375 wenbaobao C Feb. 24, 2017, 1:05 a.m. OK GNU C++14 TESTS 20 30 3379200 2500
34183001 Double_O C Jan. 14, 2018, 6:56 p.m. OK GNU C++14 TESTS 20 30 3788800 2500
31491316 jtnydv25 C Oct. 18, 2017, 7 p.m. OK GNU C++14 TESTS 20 30 3788800 2500
25489236 Dopahkiin C March 15, 2017, 4:04 a.m. OK GNU C++14 TESTS 20 30 3788800 2500
38544982 majk C May 22, 2018, 7:16 p.m. OK GNU C++17 TESTS 20 31 1126400 2500
52819514 Photon_ C April 16, 2019, 11:17 a.m. OK GNU C++17 TESTS 20 31 1331200 2500
39062632 cai_lw C June 9, 2018, 7:19 a.m. OK GNU C++17 TESTS 20 31 1331200 2500
38627510 vjudge3 C May 26, 2018, 7:47 a.m. OK GNU C++17 TESTS 20 31 1331200 2500
69918129 Shahraaz C Jan. 31, 2020, 5:32 p.m. OK GNU C++17 TESTS 20 31 1433600 2500
63258637 fsociety00 C Oct. 23, 2019, 7:12 p.m. OK GNU C++17 TESTS 20 31 1433600 2500
61280158 vjudge5 C Sept. 25, 2019, 4:43 p.m. OK GNU C++17 TESTS 20 31 1433600 2500
39189082 Omar_Morsi C June 12, 2018, 11:02 a.m. OK GNU C++17 TESTS 20 31 1433600 2500
53721752 KevinWan C May 4, 2019, 12:35 a.m. OK GNU C++17 TESTS 20 31 1536000 2500
56858659 cristian1997 C July 11, 2019, 8:11 p.m. OK GNU C++17 TESTS 20 31 1638400 2500
11520528 uwi C June 10, 2015, 11:33 a.m. OK Java 7 TESTS 20 93 0 2500
7510512 Antoniuk C Aug. 19, 2014, 5:26 p.m. OK Java 7 TESTS 20 93 0 2500
7252286 PlayLikeNeverB4 C July 26, 2014, 6:43 p.m. OK Java 7 TESTS 20 93 307200 2500
10775631 wonjohn.choi C April 19, 2015, 4:27 a.m. OK Java 7 TESTS 20 93 47616000 2500
7199876 I_love_Malika C July 22, 2014, 5:38 a.m. OK Java 7 TESTS 20 108 204800 2500
7197125 Junior94 C July 21, 2014, 5:35 p.m. OK Java 7 TESTS 20 109 102400 2500
7172926 qwerty787788 C July 19, 2014, 2:53 p.m. OK Java 7 TESTS 20 109 204800 2500
7348399 edorundo C Aug. 5, 2014, 12:55 a.m. OK Java 7 TESTS 20 124 614400 2500
15224965 chemthan C Jan. 7, 2016, 12:50 p.m. OK Java 7 TESTS 20 140 102400 2500
7174371 tanzaku C July 19, 2014, 3:42 p.m. OK Java 7 TESTS 20 171 0 2500
43109479 aabdelzaher C Sept. 20, 2018, 10:56 a.m. OK Java 8 TESTS 20 124 0 2500
39044628 Hoda_Hisham C June 8, 2018, 11:40 a.m. OK Java 8 TESTS 20 124 0 2500
26716152 Kammola C April 28, 2017, 9:17 a.m. OK Java 8 TESTS 20 139 20889600 2500
39517789 amnesiac_dusk C June 22, 2018, 1:27 p.m. OK Java 8 TESTS 20 140 0 2500
38637620 vjudge3 C May 26, 2018, 3:06 p.m. OK Java 8 TESTS 20 140 0 2500
22271789 alexrcoleman C Nov. 16, 2016, 3:49 p.m. OK Java 8 TESTS 20 140 0 2500
11609955 old_arysson C June 16, 2015, 5 p.m. OK Java 8 TESTS 20 140 0 2500
11609923 Pimpom C June 16, 2015, 4:58 p.m. OK Java 8 TESTS 20 140 0 2500
24588058 Ahmad_Elsagheer C Feb. 11, 2017, 11:19 a.m. OK Java 8 TESTS 20 140 20582400 2500
59956783 LAKOUAM_IMAD C Sept. 3, 2019, 4:28 p.m. OK Java 8 TESTS 20 155 0 2500
7253094 bluesail C July 26, 2014, 11:51 p.m. OK MS C# TESTS 20 171 4505600 2500
7161177 Um_nik C July 19, 2014, 1:22 p.m. OK MS C++ TESTS 20 30 1433600 2500
10479341 Alex7 C March 26, 2015, 9:30 p.m. OK MS C++ TESTS 20 31 819200 2500
7351112 TonySnark C Aug. 5, 2014, 9:28 a.m. OK MS C++ TESTS 20 31 921600 2500
9866166 a88027180 C Feb. 16, 2015, 4:05 a.m. OK MS C++ TESTS 20 31 1024000 2500
7189680 L_Ecry C July 21, 2014, 12:51 a.m. OK MS C++ TESTS 20 31 1331200 2500
7186700 Nike_VML C July 20, 2014, 1:25 p.m. OK MS C++ TESTS 20 31 1331200 2500
19039385 vjudge5 C July 12, 2016, 2:12 a.m. OK MS C++ TESTS 20 31 1638400 2500
19031007 vjudge5 C July 11, 2016, 1:20 p.m. OK MS C++ TESTS 20 31 1638400 2500
7214235 Awa149 C July 24, 2014, 6:50 a.m. OK MS C++ TESTS 20 31 1638400 2500
7196939 ADJA C July 21, 2014, 4:59 p.m. OK MS C++ TESTS 20 31 1638400 2500
61209083 darthVader1010 C Sept. 24, 2019, 10:53 a.m. OK MS C++ 2017 TESTS 20 249 3276800 2500
8078459 Darooha C Oct. 4, 2014, 2:13 p.m. OK Ocaml TESTS 20 61 3481600 2500
23079624 Yash_ C Dec. 18, 2016, 8:11 a.m. OK PyPy 2 TESTS 20 873 6963200 2500
23508690 Yukimai C Jan. 3, 2017, 1:59 a.m. OK PyPy 3 TESTS 20 358 30310400 2500
23508697 vjudge5 C Jan. 3, 2017, 2 a.m. OK PyPy 3 TESTS 20 374 30822400 2500
42135615 Mk_Python_v1 C Aug. 26, 2018, 11:26 p.m. OK Python 3 TESTS 20 546 3379200 2500
7162747 chaotic_iak C July 19, 2014, 1:32 p.m. OK Python 3 TESTS 20 546 6451200 2500
23508688 Yukimai C Jan. 3, 2017, 1:58 a.m. OK Python 3 TESTS 20 577 7884800 2500

remove filters

Back to search problems