Codeforces Round 213 (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
364 Codeforces Round 213 (Div. 1) FINISHED False 7500 352304963 Nov. 19, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2147 ) D Ghd PROGRAMMING brute force math probabilities 2600

B"John Doe offered his sister Jane Doe find the gcd of some set of numbers a. Gcd is a positive integer g, such that all number from the set are evenly divisible by g and there isn't such g' (g' xe2 x80 x89> xe2 x80 x89g), that all numbers of the set are evenly divisible by g'. Unfortunately Jane couldn't cope with the task and John offered her to find the ghd of the same subset of numbers. Ghd is a positive integer g, such that at least half of numbers from the set are evenly divisible by g and there isn't such g' (g' xe2 x80 x89> xe2 x80 x89g) that at least half of the numbers from the set are evenly divisible by g'. Jane coped with the task for two hours. Please try it, too. The first line contains an integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106) showing how many numbers are in set a. The second line contains space-separated 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 x891012). Please note, that given set can contain equal numbers. Please, do not write the %lld specifier to read or write 64-bit integers in xd0 xa1++. It is preferred to use the %I64d specifier. Print a single integer g -- the Ghd of set a."...

Tutorials

Codeforces Round #213 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
7855921 yosupo D Sept. 19, 2014, 3:56 p.m. OK D TESTS 115 3291 62771200 2600
6302803 zhzq123 D April 8, 2014, 11:55 p.m. OK FPC TESTS 115 3618 32358400 2600
6301196 zhzq123 D April 8, 2014, 11:32 a.m. OK FPC TESTS 115 3665 32051200 2600
10856749 ljz D April 25, 2015, 8:35 a.m. OK FPC TESTS 115 3962 25804800 2600
5193517 shef_2318 D Nov. 22, 2013, 4:56 p.m. OK GNU C++ TESTS 115 1684 8192000 2600
40989363 ReaLNero1 D July 30, 2018, 10:51 p.m. OK GNU C++ TESTS 115 1746 8192000 2600
19839431 SoiMae D Aug. 13, 2016, 1:56 a.m. OK GNU C++ TESTS 115 1965 24166400 2600
25785730 JOHNKRAM D March 25, 2017, 1:45 a.m. OK GNU C++ TESTS 115 2152 22118400 2600
5193494 shef_2318 D Nov. 22, 2013, 4:53 p.m. OK GNU C++ TESTS 115 2168 8192000 2600
5239871 atablash D Nov. 26, 2013, 2:44 a.m. OK GNU C++ TESTS 115 2262 8806400 2600
16880696 rqgao2014 D March 23, 2016, 5:15 a.m. OK GNU C++ TESTS 115 2355 18329600 2600
34268550 wzp233 D Jan. 18, 2018, 6:39 a.m. OK GNU C++ TESTS 115 2418 262246400 2600
6660500 foreseeable D May 20, 2014, 2:57 a.m. OK GNU C++ TESTS 115 2464 61235200 2600
27975141 Scut82 D June 23, 2017, 1:41 a.m. OK GNU C++ TESTS 115 2511 22118400 2600
5275116 dj3500 D Nov. 27, 2013, 5:41 p.m. OK GNU C++0x TESTS 115 1560 8294400 2600
5274817 dj3500 D Nov. 27, 2013, 4:57 p.m. OK GNU C++0x TESTS 115 1950 8294400 2600
7937708 soda_beta D Sept. 24, 2014, 3:02 p.m. OK GNU C++0x TESTS 115 2277 16179200 2600
9739857 Kira96 D Feb. 6, 2015, 7:52 p.m. OK GNU C++0x TESTS 115 2480 36044800 2600
5207462 doraemon D Nov. 24, 2013, 10:23 a.m. OK GNU C++0x TESTS 115 2574 8806400 2600
7937679 soda_beta D Sept. 24, 2014, 2:58 p.m. OK GNU C++0x TESTS 115 2589 16179200 2600
5207467 doraemon D Nov. 24, 2013, 10:25 a.m. OK GNU C++0x TESTS 115 2698 8601600 2600
9739845 Kira96 D Feb. 6, 2015, 7:50 p.m. OK GNU C++0x TESTS 115 2808 36044800 2600
7747545 Errichto D Sept. 11, 2014, 11:05 p.m. OK GNU C++0x TESTS 115 2994 9011200 2600
7747543 Errichto D Sept. 11, 2014, 11:04 p.m. OK GNU C++0x TESTS 115 2994 9011200 2600
41413127 156302 D Aug. 9, 2018, 10:40 p.m. OK GNU C++11 TESTS 115 1497 16179200 2600
64179499 okwedook D Nov. 3, 2019, 11:02 p.m. OK GNU C++11 TESTS 115 1840 40448000 2600
64179597 okwedook D Nov. 3, 2019, 11:07 p.m. OK GNU C++11 TESTS 115 1855 8396800 2600
41412431 156302 D Aug. 9, 2018, 9:49 p.m. OK GNU C++11 TESTS 115 1856 16179200 2600
33102828 BlueGrey D Dec. 11, 2017, 1:25 p.m. OK GNU C++11 TESTS 115 1871 25907200 2600
41412560 156302 D Aug. 9, 2018, 9:56 p.m. OK GNU C++11 TESTS 115 1903 16179200 2600
55196226 SoiMae D June 6, 2019, 8:36 a.m. OK GNU C++11 TESTS 115 1949 25292800 2600
34268631 yasugongshang D Jan. 18, 2018, 6:43 a.m. OK GNU C++11 TESTS 115 1949 262246400 2600
38949691 ZzZZzzzZZZZZzzzzzzzz D June 4, 2018, 3:53 p.m. OK GNU C++11 TESTS 115 2074 25804800 2600
57266040 vjudge2 D July 18, 2019, 7:11 a.m. OK GNU C++11 TESTS 115 2152 20070400 2600
34095578 xiaowuc1 D Jan. 11, 2018, 7:30 p.m. OK GNU C++14 TESTS 115 1996 11571200 2600
25786298 AmberFrame D March 25, 2017, 2:42 a.m. OK GNU C++14 TESTS 115 2137 26009600 2600
65286127 bjn D Nov. 18, 2019, 8:09 a.m. OK GNU C++14 TESTS 115 2261 20787200 2600
47899173 ArshiaDadras D Jan. 4, 2019, 12:58 p.m. OK GNU C++14 TESTS 115 2276 24064000 2600
34977184 Anti-Light D Feb. 6, 2018, 4:44 p.m. OK GNU C++14 TESTS 115 2293 10649600 2600
34050930 compiler_101 D Jan. 9, 2018, 2:24 p.m. OK GNU C++14 TESTS 115 2386 33996800 2600
47899212 ArshiaDadras D Jan. 4, 2019, 12:59 p.m. OK GNU C++14 TESTS 115 2401 24064000 2600
34977040 __C__ D Feb. 6, 2018, 4:39 p.m. OK GNU C++14 TESTS 115 2449 18636800 2600
34976476 Anti-Light D Feb. 6, 2018, 4:16 p.m. OK GNU C++14 TESTS 115 2511 10649600 2600
34976095 __C__ D Feb. 6, 2018, 4:02 p.m. OK GNU C++14 TESTS 115 2651 19558400 2600
40112565 majk D July 9, 2018, 12:38 p.m. OK GNU C++17 TESTS 115 1716 8704000 2600
40112462 majk D July 9, 2018, 12:35 p.m. OK GNU C++17 TESTS 115 1949 8704000 2600
40112432 majk D July 9, 2018, 12:34 p.m. OK GNU C++17 TESTS 115 2245 8704000 2600
51205707 Adrestia D March 12, 2019, 4:36 a.m. OK GNU C++17 TESTS 115 2355 16281600 2600
64102746 neko_nyaaaaaaaaaaaaaaaaa D Nov. 2, 2019, 4:02 p.m. OK GNU C++17 TESTS 115 2589 8294400 2600
64102531 neko_nyaaaaaaaaaaaaaaaaa D Nov. 2, 2019, 3:58 p.m. OK GNU C++17 TESTS 115 2807 8294400 2600
55503628 UoA_ZQC D June 12, 2019, 4:30 p.m. OK GNU C++17 TESTS 115 2869 18329600 2600
59825449 YouKn0wWho D Aug. 31, 2019, 7:17 p.m. OK GNU C++17 TESTS 115 2901 13209600 2600
67656476 tuwuna D Dec. 26, 2019, 2:06 p.m. OK GNU C++17 TESTS 115 2932 8704000 2600
67616830 tuwuna D Dec. 25, 2019, 5:34 p.m. OK GNU C++17 TESTS 115 2947 8499200 2600
5162273 cerealguy D Nov. 19, 2013, 5:18 p.m. OK Java 6 TESTS 115 3900 3686400 2600
5164845 cerealguy D Nov. 19, 2013, 6:48 p.m. OK Java 6 TESTS 115 3915 3686400 2600
5164907 uwi D Nov. 19, 2013, 6:51 p.m. OK Java 6 TESTS 115 3931 3891200 2600
5166407 Petr D Nov. 19, 2013, 10:06 p.m. OK Java 7 TESTS 115 2215 101683200 2600
5179465 yarrr D Nov. 20, 2013, 4:52 p.m. OK Java 7 TESTS 115 3385 100966400 2600
5179297 yarrr D Nov. 20, 2013, 4:33 p.m. OK Java 7 TESTS 115 3432 100966400 2600
5179270 yarrr D Nov. 20, 2013, 4:29 p.m. OK Java 7 TESTS 115 3712 100966400 2600
5179494 yarrr D Nov. 20, 2013, 4:54 p.m. OK Java 7 TESTS 115 3712 100966400 2600
5179522 yarrr D Nov. 20, 2013, 4:57 p.m. OK Java 7 TESTS 115 3822 100966400 2600
5179508 yarrr D Nov. 20, 2013, 4:56 p.m. OK Java 7 TESTS 115 3822 100966400 2600
5179523 yarrr D Nov. 20, 2013, 4:57 p.m. OK Java 7 TESTS 115 3853 100966400 2600
5179519 yarrr D Nov. 20, 2013, 4:57 p.m. OK Java 7 TESTS 115 3853 100966400 2600
5179518 yarrr D Nov. 20, 2013, 4:57 p.m. OK Java 7 TESTS 115 3853 100966400 2600
19299810 Sumeet.Varma D July 21, 2016, 10:31 a.m. OK Java 8 TESTS 115 3197 7680000 2600
19299661 Sumeet.Varma D July 21, 2016, 10:21 a.m. OK Java 8 TESTS 115 3322 7680000 2600
64155923 Spheniscine D Nov. 3, 2019, 12:49 p.m. OK Kotlin TESTS 115 3992 87961600 2600
64164314 Spheniscine D Nov. 3, 2019, 3:41 p.m. OK Kotlin TESTS 115 3993 85811200 2600
64180565 Spheniscine D Nov. 4, 2019, 12:08 a.m. OK Kotlin TESTS 115 3993 85811200 2600
10147350 azukun D March 4, 2015, 1:08 p.m. OK MS C# TESTS 115 2542 60518400 2600
10147058 azukun D March 4, 2015, 12:48 p.m. OK MS C# TESTS 115 2870 161689600 2600
5165101 stgatilov D Nov. 19, 2013, 7:04 p.m. OK MS C++ TESTS 115 2418 104857600 2600
5164257 Kostroma D Nov. 19, 2013, 6:24 p.m. OK MS C++ TESTS 115 3213 8192000 2600
5783163 YQCMMD D Jan. 24, 2014, 7:18 a.m. OK MS C++ TESTS 115 3587 35532800 2600
11017861 polequoll D May 7, 2015, 4:35 a.m. OK MS C++ TESTS 115 3728 28979200 2600
5404768 _TMB_ D Dec. 10, 2013, 4:40 p.m. OK MS C++ TESTS 115 3931 8704000 2600
61829683 vjudge5 D Oct. 4, 2019, 6:09 a.m. OK MS C++ TESTS 115 3961 24064000 2600
6170381 blueseen D March 29, 2014, 3:07 a.m. OK MS C++ TESTS 115 3961 39936000 2600
5175880 tzzcl D Nov. 20, 2013, 11:20 a.m. OK MS C++ TESTS 115 3978 9523200 2600
57251007 vjudge3 D July 17, 2019, 11:01 p.m. OK MS C++ TESTS 115 3992 25088000 2600
61831612 vjudge5 D Oct. 4, 2019, 6:43 a.m. OK MS C++ TESTS 115 3993 24064000 2600
64586906 rokirovochka D Nov. 9, 2019, 1:35 p.m. OK MS C++ 2017 TESTS 115 3493 8601600 2600

remove filters

Back to search problems