Educational Codeforces Round 51 (Rated for 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
1051 Educational Codeforces Round 51 (Rated for Div. 2) FINISHED False 7200 199984487 Sept. 20, 2018, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17487 ) B Relatively Prime Pairs PROGRAMMING greedy math number theory 1000

B'You are given a set of all integers from l to r inclusive, l < r , (r - l + 1) <= 3 cdot 10^5 and (r - l) is always odd. You want to split these numbers into exactly frac{r - l + 1}{2} pairs in such a way that for each pair (i, j) the greatest common divisor of i and j is equal to 1 . Each number should appear in exactly one of the pairs. Print the resulting pairs or output that no solution exists. If there are multiple solutions, print any of them. The only line contains two integers l and r ( 1 <= l < r <= 10^{18} , r - l + 1 <= 3 cdot 10^5 , (r - l) is odd). If any solution exists, print "YES" in the first line. Each of the next frac{r - l + 1}{2} lines should contain some pair of integers. GCD of numbers in each pair should be equal to 1 . All (r - l + 1) numbers should be pairwise distinct and should have values from l to r inclusive. If there are multiple solutions, print any of them. If there exists no solution, print "NO". '...

Tutorials

Educational Codeforces Round 51 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
53263238 not__me B April 24, 2019, 10:07 p.m. OK Clang++17 Diagnostics TESTS 11 1528 19968000 1000
43561492 afonin B Sept. 29, 2018, 9:15 a.m. OK Delphi TESTS 11 1310 102400 1000
43707983 chinahhy B Oct. 3, 2018, 12:43 a.m. OK FPC TESTS 11 311 0 1000
43293126 LeoPro B Sept. 23, 2018, 11:53 a.m. OK FPC TESTS 11 342 0 1000
43270993 TShT B Sept. 22, 2018, 6:54 p.m. OK FPC TESTS 11 389 0 1000
43927300 luogu_bot5 B Oct. 7, 2018, 5:39 a.m. OK FPC TESTS 11 405 0 1000
43927328 BattleCry B Oct. 7, 2018, 5:40 a.m. OK FPC TESTS 11 420 0 1000
43415393 minhcool B Sept. 25, 2018, 3:16 p.m. OK FPC TESTS 11 420 0 1000
43144175 hua_xzx B Sept. 20, 2018, 4:22 p.m. OK FPC TESTS 11 421 0 1000
43141943 brenscrazy B Sept. 20, 2018, 4:10 p.m. OK FPC TESTS 11 436 0 1000
66121459 1942938446 B Dec. 1, 2019, 10:19 a.m. OK FPC TESTS 11 483 0 1000
49355005 PhuongPeu B Feb. 2, 2019, 10:37 a.m. OK FPC TESTS 11 498 102400 1000
43150640 YunGoon B Sept. 20, 2018, 5:16 p.m. OK GNU C11 TESTS 11 140 307200 1000
43732497 mediteran13 B Oct. 3, 2018, 2:40 p.m. OK GNU C11 TESTS 11 156 0 1000
45710708 dixitgarg B Nov. 14, 2018, 1:59 p.m. OK GNU C11 TESTS 11 733 0 1000
44452322 vjudge4 B Oct. 17, 2018, 4:26 p.m. OK GNU C11 TESTS 11 733 0 1000
68156333 mth1908 B Jan. 4, 2020, 9:05 a.m. OK GNU C11 TESTS 11 748 0 1000
46647323 RaghavS B Dec. 5, 2018, 12:27 p.m. OK GNU C11 TESTS 11 748 0 1000
46742600 iamskab B Dec. 8, 2018, 4:29 a.m. OK GNU C11 TESTS 11 748 0 1000
48529118 cathearttiger B Jan. 18, 2019, 10:44 a.m. OK GNU C11 TESTS 11 748 0 1000
49129578 h404nofound B Jan. 29, 2019, 2:45 a.m. OK GNU C11 TESTS 11 748 0 1000
52645570 akash19jain B April 12, 2019, 2:20 p.m. OK GNU C11 TESTS 11 748 0 1000
68432249 He_Ren B Jan. 9, 2020, 7:24 a.m. OK GNU C++11 TESTS 11 93 0 1000
64676954 Acceptedumbrella B Nov. 11, 2019, 8:25 a.m. OK GNU C++11 TESTS 11 93 0 1000
61704481 aqua233 B Oct. 2, 2019, 9:35 a.m. OK GNU C++11 TESTS 11 108 0 1000
61715774 Tiana B Oct. 2, 2019, 12:32 p.m. OK GNU C++11 TESTS 11 108 0 1000
48685095 luogu_bot2 B Jan. 21, 2019, 2:54 p.m. OK GNU C++11 TESTS 11 108 0 1000
57920937 MoRanSky B July 29, 2019, 4:46 a.m. OK GNU C++11 TESTS 11 108 0 1000
53561780 vjudge1 B April 30, 2019, 10 a.m. OK GNU C++11 TESTS 11 108 0 1000
48712140 luogu_bot2 B Jan. 22, 2019, 9:06 a.m. OK GNU C++11 TESTS 11 108 0 1000
57141901 hms1523 B July 16, 2019, 11:26 a.m. OK GNU C++11 TESTS 11 108 0 1000
56069510 HazemAlkhatib B June 26, 2019, 9:40 a.m. OK GNU C++11 TESTS 11 108 0 1000
47673457 neal B Dec. 29, 2018, 7:37 a.m. OK GNU C++14 TESTS 11 61 0 1000
47673434 neal B Dec. 29, 2018, 7:36 a.m. OK GNU C++14 TESTS 11 77 0 1000
44570814 blue1013 B Oct. 20, 2018, 4:45 a.m. OK GNU C++14 TESTS 11 108 0 1000
68704648 hitonanode B Jan. 13, 2020, 10:48 a.m. OK GNU C++14 TESTS 11 108 0 1000
49227581 vjudge4 B Jan. 31, 2019, 2:20 a.m. OK GNU C++14 TESTS 11 108 0 1000
47131721 bqq B Dec. 16, 2018, 4:27 p.m. OK GNU C++14 TESTS 11 108 0 1000
43719127 n_dao107 B Oct. 3, 2018, 9:01 a.m. OK GNU C++14 TESTS 11 108 0 1000
43149087 wleung_bvg B Sept. 20, 2018, 4:50 p.m. OK GNU C++14 TESTS 11 108 307200 1000
49128094 zstu2018329621262 B Jan. 29, 2019, 1:28 a.m. OK GNU C++14 TESTS 11 109 0 1000
62756678 botChirag B Oct. 17, 2019, 5:04 a.m. OK GNU C++14 TESTS 11 109 0 1000
50888229 Dillonh_ B March 6, 2019, 12:11 p.m. OK GNU C++17 TESTS 11 93 0 1000
50787108 KiranKaravaev B March 4, 2019, 1:50 p.m. OK GNU C++17 TESTS 11 108 0 1000
54243862 vjudge5 B May 16, 2019, 2:04 p.m. OK GNU C++17 TESTS 11 108 0 1000
54817043 vjudge2 B May 29, 2019, 8:57 p.m. OK GNU C++17 TESTS 11 108 0 1000
58637709 YangHE B Aug. 12, 2019, 1:35 a.m. OK GNU C++17 TESTS 11 108 0 1000
59331399 Mahmoud_safan B Aug. 23, 2019, 1:22 a.m. OK GNU C++17 TESTS 11 108 0 1000
47121238 charity B Dec. 16, 2018, 3:16 p.m. OK GNU C++17 TESTS 11 108 0 1000
46854834 Lucina B Dec. 10, 2018, 2:13 p.m. OK GNU C++17 TESTS 11 108 204800 1000
49128024 JokerChou B Jan. 29, 2019, 1:24 a.m. OK GNU C++17 TESTS 11 108 307200 1000
67607049 vjudge1 B Dec. 25, 2019, 1:59 p.m. OK GNU C++17 TESTS 11 109 0 1000
43751347 KotiyaSanae_ B Oct. 4, 2018, 2:58 a.m. OK Go TESTS 11 577 0 1000
44977879 davidguandev B Oct. 28, 2018, 6:54 a.m. OK Go TESTS 11 608 0 1000
69269657 Shetewi B Jan. 21, 2020, 8:14 p.m. OK Java 11 TESTS 11 280 0 1000
69055462 lelouch_cc B Jan. 18, 2020, 2:18 p.m. OK Java 11 TESTS 11 1231 0 1000
67787426 190107100 B Dec. 28, 2019, 1:19 p.m. OK Java 11 TESTS 11 1263 0 1000
68332813 tahasin B Jan. 6, 2020, 7:42 p.m. OK Java 8 TESTS 11 140 18636800 1000
49532641 mdazmat9 B Feb. 6, 2019, 2:29 p.m. OK Java 8 TESTS 11 156 0 1000
67560469 adzi B Dec. 24, 2019, 5:26 p.m. OK Java 8 TESTS 11 171 0 1000
63685592 zekigurbuz B Oct. 28, 2019, 10:22 p.m. OK Java 8 TESTS 11 171 0 1000
55400545 foreverlearner B June 10, 2019, 1:51 p.m. OK Java 8 TESTS 11 171 0 1000
49919173 Dukkha B Feb. 14, 2019, 5:52 p.m. OK Java 8 TESTS 11 171 0 1000
48561718 CharlesDai B Jan. 19, 2019, 7:39 a.m. OK Java 8 TESTS 11 171 0 1000
45464406 I.A.K.O.V B Nov. 9, 2018, 4:52 a.m. OK Java 8 TESTS 11 171 0 1000
45021810 abdullah_eid B Oct. 28, 2018, 7:30 p.m. OK Java 8 TESTS 11 171 0 1000
59634129 Heisen_Berg B Aug. 28, 2019, 7:41 p.m. OK Java 8 TESTS 11 171 37683200 1000
43983036 Killer45 B Oct. 8, 2018, 4:48 a.m. OK Kotlin TESTS 11 217 0 1000
56506451 hawwyo B July 4, 2019, 8:38 a.m. OK Kotlin TESTS 11 685 102400 1000
53203042 Farwent B April 23, 2019, 7:11 p.m. OK Kotlin TESTS 11 1138 102400 1000
43143284 Actimel B Sept. 20, 2018, 4:17 p.m. OK Kotlin TESTS 11 1153 0 1000
45235611 nordiccat B Nov. 3, 2018, 9:07 a.m. OK Kotlin TESTS 11 1153 204800 1000
45672007 jedikni B Nov. 13, 2018, 11:11 a.m. OK Kotlin TESTS 11 1200 204800 1000
54545766 og.kostya B May 24, 2019, 6:05 a.m. OK Mono C# TESTS 11 124 3174400 1000
43548040 Nours B Sept. 28, 2018, 8:36 p.m. OK Mono C# TESTS 11 374 3072000 1000
44044286 danik114162 B Oct. 9, 2018, 4:22 p.m. OK Mono C# TESTS 11 374 3072000 1000
43546944 danilprokat B Sept. 28, 2018, 7:49 p.m. OK Mono C# TESTS 11 420 3584000 1000
43547845 Azazelo B Sept. 28, 2018, 8:28 p.m. OK Mono C# TESTS 11 421 3072000 1000
43475493 witchu B Sept. 27, 2018, 2:58 a.m. OK Mono C# TESTS 11 498 3072000 1000
43547889 Azazelo B Sept. 28, 2018, 8:29 p.m. OK Mono C# TESTS 11 514 3072000 1000
43510487 chelogrek B Sept. 27, 2018, 10:47 p.m. OK Mono C# TESTS 11 514 6656000 1000
43147602 nikitap3cd B Sept. 20, 2018, 4:41 p.m. OK Mono C# TESTS 11 529 26419200 1000
43547661 Nours B Sept. 28, 2018, 8:21 p.m. OK Mono C# TESTS 11 530 3686400 1000
44237482 vjudge4 B Oct. 13, 2018, 5:30 a.m. OK MS C++ TESTS 11 93 0 1000
50091831 vjudge2 B Feb. 18, 2019, 10:49 a.m. OK MS C++ TESTS 11 108 0 1000
50664070 vjudge4 B March 2, 2019, 2:30 a.m. OK MS C++ TESTS 11 108 0 1000
50091368 vjudge2 B Feb. 18, 2019, 10:34 a.m. OK MS C++ TESTS 11 108 0 1000
50086378 vjudge4 B Feb. 18, 2019, 7:41 a.m. OK MS C++ TESTS 11 108 0 1000
50086358 vjudge1 B Feb. 18, 2019, 7:40 a.m. OK MS C++ TESTS 11 108 0 1000
50086020 vjudge3 B Feb. 18, 2019, 7:29 a.m. OK MS C++ TESTS 11 108 0 1000
49890893 vjudge4 B Feb. 14, 2019, 3:31 a.m. OK MS C++ TESTS 11 108 0 1000
50086753 vjudge4 B Feb. 18, 2019, 7:55 a.m. OK MS C++ TESTS 11 108 0 1000
50096757 vjudge1 B Feb. 18, 2019, 1:05 p.m. OK MS C++ TESTS 11 108 0 1000
68710462 FumeiYaziwa B Jan. 13, 2020, 12:49 p.m. OK MS C++ 2017 TESTS 11 139 0 1000
58247218 Ashiq_Uddin_Pranto B Aug. 4, 2019, 6:03 a.m. OK MS C++ 2017 TESTS 11 139 0 1000
50144579 loading.. B Feb. 19, 2019, 2:38 a.m. OK MS C++ 2017 TESTS 11 140 0 1000
59390139 116c B Aug. 24, 2019, 8:08 a.m. OK MS C++ 2017 TESTS 11 155 2764800 1000
61490516 poormate B Sept. 29, 2019, 1:52 p.m. OK MS C++ 2017 TESTS 11 249 0 1000
62392677 vjudge1 B Oct. 12, 2019, 3:28 a.m. OK MS C++ 2017 TESTS 11 249 0 1000
57277104 Uj_employee B July 18, 2019, 11:18 a.m. OK MS C++ 2017 TESTS 11 249 0 1000
50772408 Still_Theory B March 4, 2019, 5:58 a.m. OK MS C++ 2017 TESTS 11 249 0 1000
63743905 hosein_bidaki B Oct. 29, 2019, 5:52 p.m. OK MS C++ 2017 TESTS 11 249 307200 1000
56677186 Moen1578 B July 7, 2019, 4:06 p.m. OK MS C++ 2017 TESTS 11 716 0 1000
45094455 cube-R B Oct. 30, 2018, 11:13 a.m. OK PascalABC.NET TESTS 11 1793 0 1000
43150665 mayakin B Sept. 20, 2018, 5:16 p.m. OK PHP TESTS 11 1014 716800 1000
61093559 daniel.carlos B Sept. 23, 2019, 12:31 a.m. OK PyPy 2 TESTS 11 202 14745600 1000
61094998 prschdt B Sept. 23, 2019, 2:01 a.m. OK PyPy 2 TESTS 11 1013 9625600 1000
43163788 ninja_white B Sept. 21, 2018, 3:26 a.m. OK PyPy 2 TESTS 11 1107 9523200 1000
54453649 Mukundan314 B May 21, 2019, 2:44 p.m. OK PyPy 3 TESTS 11 233 14745600 1000
61095078 prschdt B Sept. 23, 2019, 2:06 a.m. OK PyPy 3 TESTS 11 545 5734400 1000
61095069 prschdt B Sept. 23, 2019, 2:06 a.m. OK PyPy 3 TESTS 11 545 6041600 1000
51769799 kill-z B March 23, 2019, 5:45 p.m. OK PyPy 3 TESTS 11 545 8908800 1000
61094861 prschdt B Sept. 23, 2019, 1:51 a.m. OK PyPy 3 TESTS 11 545 10342400 1000
55180741 sonhuytranpython2 B June 5, 2019, 9:59 p.m. OK PyPy 3 TESTS 11 545 50380800 1000
47296293 yellowflash B Dec. 20, 2018, 12:08 p.m. OK PyPy 3 TESTS 11 560 8908800 1000
44514436 tsukuyomi B Oct. 18, 2018, 6:08 p.m. OK PyPy 3 TESTS 11 576 8908800 1000
48443967 AbduSharif B Jan. 16, 2019, 6:20 a.m. OK PyPy 3 TESTS 11 592 8806400 1000
46620472 ZakoylovIlya B Dec. 4, 2018, 5:43 p.m. OK PyPy 3 TESTS 11 592 9318400 1000
43150244 thaoprogrammer B Sept. 20, 2018, 5:08 p.m. OK Python 2 TESTS 11 311 0 1000
46024172 FlyingBag65 B Nov. 21, 2018, 10:08 a.m. OK Python 2 TESTS 11 311 4300800 1000
44491311 raven_47 B Oct. 18, 2018, 2:34 p.m. OK Python 2 TESTS 11 327 0 1000
43550224 alimiaw1997 B Sept. 28, 2018, 10:49 p.m. OK Python 2 TESTS 11 327 4300800 1000
43361943 SoSooding B Sept. 24, 2018, 9:46 a.m. OK Python 2 TESTS 11 327 4300800 1000
43341824 nealzane B Sept. 23, 2018, 6:06 p.m. OK Python 2 TESTS 11 327 4300800 1000
48855437 kaif_7 B Jan. 23, 2019, 6:41 p.m. OK Python 2 TESTS 11 342 0 1000
44721228 test616.cpp B Oct. 23, 2018, 5:15 a.m. OK Python 2 TESTS 11 342 0 1000
43638997 apoorv1999 B Oct. 1, 2018, 10:15 a.m. OK Python 2 TESTS 11 342 4300800 1000
43613523 Juve45 B Sept. 30, 2018, 3:13 p.m. OK Python 2 TESTS 11 342 4300800 1000
43652137 orailly B Oct. 1, 2018, 4:13 p.m. OK Python 3 TESTS 11 264 17612800 1000
55574663 tchr B June 14, 2019, 10:09 p.m. OK Python 3 TESTS 11 264 18944000 1000
44973005 MaxHo B Oct. 28, 2018, 2:44 a.m. OK Python 3 TESTS 11 280 18329600 1000
43218553 Maaddy B Sept. 21, 2018, 6:03 p.m. OK Python 3 TESTS 11 327 18022400 1000
54478374 iehn B May 22, 2019, 9:42 a.m. OK Python 3 TESTS 11 373 18841600 1000
43470226 parham_k B Sept. 26, 2018, 9:22 p.m. OK Python 3 TESTS 11 374 18329600 1000
58867833 MzMahmud B Aug. 15, 2019, 2:05 p.m. OK Python 3 TESTS 11 514 204800 1000
44177662 SamuelLH B Oct. 12, 2018, 9:38 a.m. OK Python 3 TESTS 11 530 102400 1000
45221723 vjudge1 B Nov. 2, 2018, 9:50 p.m. OK Python 3 TESTS 11 576 102400 1000
45221367 vjudge3 B Nov. 2, 2018, 9:28 p.m. OK Python 3 TESTS 11 577 102400 1000
43145100 tabsnotspaces B Sept. 20, 2018, 4:27 p.m. OK Ruby TESTS 11 451 204800 1000
43326680 cielavenir B Sept. 23, 2018, 2:32 p.m. OK Ruby TESTS 11 467 60416000 1000
43794355 grihabor B Oct. 4, 2018, 2:56 p.m. OK Rust TESTS 11 842 0 1000

remove filters

Back to search problems