Codeforces Round 279 (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
490 Codeforces Round 279 (Div. 2) FINISHED False 9000 315089399 Nov. 23, 2014, 9:10 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9103 ) C Hacking Cypher PROGRAMMING brute force math number theory strings 1700

B'Polycarpus participates in a competition for hacking into a new secure messenger. He 's almost won. Having carefully studied the interaction protocol, Polycarpus came to the conclusion that the secret key can be obtained if he properly cuts the public key of the application into two parts. The public key is a long integer which may consist of even a million digits! Polycarpus needs to find such a way to cut the public key into two nonempty parts, that the first (left) part is divisible by a as a separate number, and the second (right) part is divisible by b as a separate number. Both parts should be positive integers that have no leading zeros. Polycarpus knows values a and b. Help Polycarpus and find any suitable method to cut the public key. The first line of the input contains the public key of the messenger -- an integer without leading zeroes, its length is in range from 1 to 106 digits. The second line contains a pair of space-separated positive integers a, b (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a, xe2 x80 x89b xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89108). In the first line print "YES" (without the quotes), if the method satisfying conditions above exists. In this case, next print two lines -- the left and right parts after the cut. These two parts, being concatenated, must be exactly identical to the public key. The left part must be divisible by a, and the right part must be divisible by b. The two parts must be positive integers having no leading zeros. If there are several answers, print any of them. If there is no answer, print in a single line "NO" (without the quotes).'...

Tutorials

Codeforces Round #279 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
40581371 Heshamovic C July 20, 2018, 2:36 p.m. OK Clang++17 Diagnostics TESTS 71 888 33996800 1700
22482268 JoeBlow C Nov. 25, 2016, 4:48 a.m. OK D TESTS 71 61 4198400 1700
22482197 JoeBlow C Nov. 25, 2016, 4:37 a.m. OK D TESTS 71 62 4198400 1700
25494019 Gray_58 C March 15, 2017, 9:21 a.m. OK Delphi TESTS 71 186 13619200 1700
9780015 Astreb C Feb. 9, 2015, 1:02 p.m. OK Delphi TESTS 71 296 15360000 1700
18589081 Jicote C June 19, 2016, 1:22 a.m. OK FPC TESTS 71 31 10547200 1700
15606741 Fyodor C Jan. 27, 2016, 7:06 a.m. OK FPC TESTS 71 46 5427200 1700
29115879 dailong C Aug. 2, 2017, 3:24 a.m. OK FPC TESTS 71 46 9113600 1700
14191285 bluebolt C Nov. 11, 2015, 1:10 a.m. OK FPC TESTS 71 46 10444800 1700
23475285 tieuchanlong C Dec. 31, 2016, 8:33 p.m. OK FPC TESTS 71 46 16281600 1700
10223017 VAVAvile C March 10, 2015, 2:37 a.m. OK FPC TESTS 71 62 10444800 1700
11180319 igdor99 C May 20, 2015, 4:39 p.m. OK FPC TESTS 71 93 20275200 1700
51150632 chaorenhaha C March 11, 2019, 7:28 a.m. OK FPC TESTS 71 93 42598400 1700
11084790 giabinh C May 13, 2015, 2:06 a.m. OK FPC TESTS 71 109 10444800 1700
14197832 Kudai C Nov. 11, 2015, 2:55 p.m. OK FPC TESTS 71 109 18534400 1700
18474148 shreyam4 C June 14, 2016, 6:14 p.m. OK GNU C TESTS 71 46 11059200 1700
30421769 nahshi C Sept. 17, 2017, 12:54 p.m. OK GNU C TESTS 71 61 9011200 1700
11356563 emptysmile C May 30, 2015, 12:22 p.m. OK GNU C TESTS 71 78 9011200 1700
11356082 emptysmile1013 C May 30, 2015, 11:23 a.m. OK GNU C TESTS 71 78 9011200 1700
15604900 TsReaper C Jan. 27, 2016, 4:38 a.m. OK GNU C TESTS 71 93 2969600 1700
18445480 aiswarya339 C June 14, 2016, 7:26 a.m. OK GNU C TESTS 71 93 7065600 1700
12345076 ving.xia C Aug. 5, 2015, 2:54 a.m. OK GNU C TESTS 71 93 9011200 1700
12345067 ving.xia C Aug. 5, 2015, 2:53 a.m. OK GNU C TESTS 71 93 9011200 1700
12345058 ving.xia C Aug. 5, 2015, 2:51 a.m. OK GNU C TESTS 71 93 9011200 1700
11597893 smjlord068 C June 15, 2015, 6:21 p.m. OK GNU C TESTS 71 93 13004800 1700
22655613 srd091 C Dec. 2, 2016, 10:24 a.m. OK GNU C++ TESTS 71 31 1843200 1700
22655584 srd091 C Dec. 2, 2016, 10:21 a.m. OK GNU C++ TESTS 71 31 1843200 1700
13920267 130705009 C Oct. 28, 2015, 5:40 p.m. OK GNU C++ TESTS 71 31 1843200 1700
22655638 srd091 C Dec. 2, 2016, 10:25 a.m. OK GNU C++ TESTS 71 31 2048000 1700
24567827 xsc C Feb. 10, 2017, 10:47 a.m. OK GNU C++ TESTS 71 31 2969600 1700
16271708 vjudge1 C Feb. 22, 2016, 5:51 a.m. OK GNU C++ TESTS 71 31 5017600 1700
16271373 vjudge5 C Feb. 22, 2016, 5:17 a.m. OK GNU C++ TESTS 71 31 5017600 1700
24564718 xsc C Feb. 10, 2017, 7:42 a.m. OK GNU C++ TESTS 71 31 7168000 1700
17759169 yamil C May 6, 2016, 10:44 a.m. OK GNU C++ TESTS 71 31 8089600 1700
11392363 royalharsh95 C June 2, 2015, 3:49 p.m. OK GNU C++ TESTS 71 31 10649600 1700
10025829 elatedcello933 C Feb. 25, 2015, 9:35 p.m. OK GNU C++0x TESTS 71 46 1126400 1700
10185523 RandD C March 7, 2015, 4:11 a.m. OK GNU C++0x TESTS 71 46 4812800 1700
10256497 vatayush C March 13, 2015, 10:57 a.m. OK GNU C++0x TESTS 71 46 11878400 1700
9976485 fanatique C Feb. 24, 2015, 4:54 a.m. OK GNU C++0x TESTS 71 61 10035200 1700
9976495 fanatique C Feb. 24, 2015, 4:55 a.m. OK GNU C++0x TESTS 71 62 10035200 1700
9969854 Kvark161 C Feb. 23, 2015, 2:02 p.m. OK GNU C++0x TESTS 71 77 18636800 1700
10210939 Suchith_JN C March 8, 2015, 5:55 p.m. OK GNU C++0x TESTS 71 78 26624000 1700
9862762 SaMer C Feb. 15, 2015, 6:10 p.m. OK GNU C++0x TESTS 71 93 3276800 1700
10139679 a1s3a C March 4, 2015, 1:29 a.m. OK GNU C++0x TESTS 71 93 4096000 1700
10053820 dhenp C Feb. 27, 2015, 3:35 p.m. OK GNU C++0x TESTS 71 93 9011200 1700
57815666 rainboy C July 26, 2019, 7:32 p.m. OK GNU C11 TESTS 71 93 2969600 1700
36224415 wxr031 C March 12, 2018, 12:55 p.m. OK GNU C11 TESTS 71 93 7270400 1700
11541757 NoSoul C June 12, 2015, 9:22 a.m. OK GNU C11 TESTS 71 108 6041600 1700
24572788 xsc C Feb. 10, 2017, 3:49 p.m. OK GNU C++11 TESTS 71 31 4096000 1700
16765950 ultimatum_ C March 17, 2016, 2:58 p.m. OK GNU C++11 TESTS 71 31 5017600 1700
36305837 vishal3410 C March 15, 2018, 3:24 p.m. OK GNU C++11 TESTS 71 31 5120000 1700
20223406 SakurakoujiRuna C Aug. 29, 2016, 6:02 a.m. OK GNU C++11 TESTS 71 31 6041600 1700
26141877 eu3neuom C April 5, 2017, 11:47 a.m. OK GNU C++11 TESTS 71 31 6656000 1700
17178661 osama C April 5, 2016, 10:47 p.m. OK GNU C++11 TESTS 71 31 8089600 1700
33053759 pipialvin C Dec. 9, 2017, 2:58 p.m. OK GNU C++11 TESTS 71 31 8192000 1700
19876271 AhmedHamed C Aug. 14, 2016, 9:08 p.m. OK GNU C++11 TESTS 71 31 8601600 1700
19543119 ironhide14 C July 31, 2016, 6:01 p.m. OK GNU C++11 TESTS 71 31 10547200 1700
28826236 mraron C July 24, 2017, 2:03 p.m. OK GNU C++11 TESTS 71 31 10956800 1700
32652011 Brankonymous C Nov. 25, 2017, 4:11 p.m. OK GNU C++14 TESTS 71 31 3891200 1700
35451314 WesMorgan_5 C Feb. 18, 2018, 4:14 p.m. OK GNU C++14 TESTS 71 31 3891200 1700
31678732 Sagolbah C Oct. 24, 2017, 11:15 a.m. OK GNU C++14 TESTS 71 31 6553600 1700
29988525 asuma26 C Sept. 1, 2017, 3:16 p.m. OK GNU C++14 TESTS 71 31 6656000 1700
27746787 bonmot C June 13, 2017, 1:16 a.m. OK GNU C++14 TESTS 71 31 7372800 1700
34549225 O.S.Mozes C Jan. 25, 2018, 2:29 p.m. OK GNU C++14 TESTS 71 31 8499200 1700
24239586 demonsbane C Jan. 29, 2017, 4 a.m. OK GNU C++14 TESTS 71 31 8499200 1700
28880880 Jihad. C July 25, 2017, 3:28 p.m. OK GNU C++14 TESTS 71 31 12492800 1700
68461813 gkftndlTek C Jan. 9, 2020, 6:22 p.m. OK GNU C++14 TESTS 71 46 2048000 1700
68461794 gkftndlTek C Jan. 9, 2020, 6:21 p.m. OK GNU C++14 TESTS 71 46 2048000 1700
55991287 6_feet_coder C June 24, 2019, 7:48 a.m. OK GNU C++17 TESTS 71 46 2048000 1700
51782292 BugsBunny C March 24, 2019, 8:58 a.m. OK GNU C++17 TESTS 71 46 2048000 1700
64499304 eduardonunes2525 C Nov. 8, 2019, 3:02 a.m. OK GNU C++17 TESTS 71 46 2048000 1700
60944267 Peterglezroa C Sept. 20, 2019, 6:14 p.m. OK GNU C++17 TESTS 71 46 2048000 1700
60750869 Locke_ C Sept. 18, 2019, 6:12 a.m. OK GNU C++17 TESTS 71 46 2048000 1700
44172877 noelcowm C Oct. 12, 2018, 7:03 a.m. OK GNU C++17 TESTS 71 46 2252800 1700
49214237 Kk1506 C Jan. 30, 2019, 4:38 p.m. OK GNU C++17 TESTS 71 46 2252800 1700
56683370 yuhta C July 7, 2019, 8:06 p.m. OK GNU C++17 TESTS 71 46 5017600 1700
58073936 maximum2000 C July 31, 2019, 11:42 a.m. OK GNU C++17 TESTS 71 46 5222400 1700
66295452 durgesh30508 C Dec. 5, 2019, 3:54 a.m. OK GNU C++17 TESTS 71 46 6553600 1700
62613697 synapse C Oct. 15, 2019, 10:44 a.m. OK Go TESTS 71 78 17100800 1700
60052271 sebastafoya C Sept. 5, 2019, 1:24 a.m. OK Go TESTS 71 93 12288000 1700
17334686 salony C April 16, 2016, 5:36 a.m. OK Go TESTS 71 93 21299200 1700
10873521 turingcomplete C April 26, 2015, 2:28 p.m. OK Java 7 TESTS 71 108 47513600 1700
14096002 snrahul C Nov. 5, 2015, 8:28 p.m. OK Java 7 TESTS 71 124 0 1700
11984865 Hartha C July 9, 2015, 11:48 a.m. OK Java 7 TESTS 71 124 0 1700
14842736 DukeOfYork C Dec. 17, 2015, 7:27 a.m. OK Java 7 TESTS 71 124 9318400 1700
10613131 fathallah C April 6, 2015, 1:43 p.m. OK Java 7 TESTS 71 140 0 1700
10233764 wonjohn.choi C March 11, 2015, 6:10 a.m. OK Java 7 TESTS 71 140 16486400 1700
9821911 aladdin3 C Feb. 13, 2015, 11:54 p.m. OK Java 7 TESTS 71 155 0 1700
14842637 DukeOfYork C Dec. 17, 2015, 7:14 a.m. OK Java 7 TESTS 71 186 0 1700
11137831 ahmed_fathy_aly C May 18, 2015, 5:54 p.m. OK Java 7 TESTS 71 186 1433600 1700
11950560 suigingin C July 6, 2015, 4:15 p.m. OK Java 7 TESTS 71 187 0 1700
10054865 Love_Solving_Problem C Feb. 27, 2015, 5:27 p.m. OK Java 8 TESTS 71 139 0 1700
17244610 omarnvidia C April 8, 2016, 8:37 p.m. OK Java 8 TESTS 71 139 20684800 1700
55843382 shinghalrishabh C June 20, 2019, 7:27 p.m. OK Java 8 TESTS 71 140 0 1700
22590409 poikniok C Nov. 29, 2016, 3:39 a.m. OK Java 8 TESTS 71 140 0 1700
12628086 Nirmit13cs30 C Aug. 21, 2015, 12:36 p.m. OK Java 8 TESTS 71 140 0 1700
63023879 insane_28 C Oct. 20, 2019, 3:34 p.m. OK Java 8 TESTS 71 140 2867200 1700
59869308 gg78 C Sept. 1, 2019, 6:34 p.m. OK Java 8 TESTS 71 140 2867200 1700
27117594 zodiacleo C May 15, 2017, 8:13 a.m. OK Java 8 TESTS 71 140 7065600 1700
57332988 mohdsadiq058 C July 19, 2019, 2:55 p.m. OK Java 8 TESTS 71 140 18329600 1700
25459487 VerticesEdge C March 13, 2017, 5:55 p.m. OK Java 8 TESTS 71 140 25600000 1700
9972257 VladaMG98 C Feb. 23, 2015, 6:03 p.m. OK Mono C# TESTS 71 77 10035200 1700
28826469 mraron C July 24, 2017, 2:15 p.m. OK Mono C# TESTS 71 77 18944000 1700
51430419 nemars C March 17, 2019, 11:19 p.m. OK Mono C# TESTS 71 108 18432000 1700
28826496 mraron C July 24, 2017, 2:15 p.m. OK MS C# TESTS 71 77 18944000 1700
13110434 og.kostya C Sept. 20, 2015, 6:34 a.m. OK MS C# TESTS 71 92 16793600 1700
28825352 Phortox C July 24, 2017, 1:18 p.m. OK MS C# TESTS 71 93 18944000 1700
20389224 TwoFx C Sept. 4, 2016, 8:15 p.m. OK MS C# TESTS 71 124 14233600 1700
24572833 xsc C Feb. 10, 2017, 3:51 p.m. OK MS C++ TESTS 71 46 4096000 1700
9636598 a88027180 C Jan. 31, 2015, 2:40 a.m. OK MS C++ TESTS 71 46 5017600 1700
54468050 vjudge5 C May 22, 2019, 2:29 a.m. OK MS C++ TESTS 71 46 6246400 1700
24564535 xsc C Feb. 10, 2017, 7:29 a.m. OK MS C++ TESTS 71 46 7372800 1700
24564577 xsc C Feb. 10, 2017, 7:32 a.m. OK MS C++ TESTS 71 46 7372800 1700
10183837 MohamadAdel C March 6, 2015, 10:34 p.m. OK MS C++ TESTS 71 46 10240000 1700
15185390 spoonsplz C Jan. 4, 2016, 8:23 p.m. OK MS C++ TESTS 71 61 10240000 1700
10378345 G_Hani C March 21, 2015, 1:12 p.m. OK MS C++ TESTS 71 61 18227200 1700
10763178 xiaotianwu C April 18, 2015, 2:56 a.m. OK MS C++ TESTS 71 62 2457600 1700
24567816 xsc C Feb. 10, 2017, 10:46 a.m. OK MS C++ TESTS 71 62 3072000 1700
58683153 CtrlAlt C Aug. 12, 2019, 8:13 p.m. OK MS C++ 2017 TESTS 71 46 10240000 1700
63909692 Koropok C Oct. 31, 2019, 7:49 a.m. OK MS C++ 2017 TESTS 71 124 9216000 1700
63428348 vjudge3 C Oct. 26, 2019, 8:28 a.m. OK MS C++ 2017 TESTS 71 218 9011200 1700
63872861 colacorn_cry C Oct. 30, 2019, 6:02 p.m. OK MS C++ 2017 TESTS 71 218 17100800 1700
16272103 orailly C Feb. 22, 2016, 6:27 a.m. OK PyPy 2 TESTS 71 93 15769600 1700
23676031 Trunks C Jan. 10, 2017, 6:51 a.m. OK PyPy 2 TESTS 71 140 39321600 1700
19478857 Yash_ C July 29, 2016, 11:44 a.m. OK PyPy 2 TESTS 71 155 12492800 1700
42956526 WENOUT C Sept. 16, 2018, 4:36 p.m. OK PyPy 2 TESTS 71 186 17408000 1700
42970914 dkboss C Sept. 17, 2018, 6:14 a.m. OK PyPy 2 TESTS 71 187 17100800 1700
42956855 WENOUT C Sept. 16, 2018, 4:46 p.m. OK PyPy 2 TESTS 71 187 17510400 1700
63679482 chaudhary_19 C Oct. 28, 2019, 7:25 p.m. OK PyPy 2 TESTS 71 202 12185600 1700
42970215 WENOUT C Sept. 17, 2018, 5:37 a.m. OK PyPy 2 TESTS 71 217 24064000 1700
56387677 rajat_2548 C July 1, 2019, 11:13 a.m. OK PyPy 2 TESTS 71 233 20070400 1700
44092968 Onesh0t C Oct. 10, 2018, 8:40 p.m. OK PyPy 2 TESTS 71 233 20070400 1700
32777981 toysheeyeyraku C Nov. 29, 2017, 10:39 a.m. OK PyPy 3 TESTS 71 280 41062400 1700
16272133 orailly C Feb. 22, 2016, 6:30 a.m. OK PyPy 3 TESTS 71 296 15564800 1700
53983824 ataul443 C May 11, 2019, 8:34 a.m. OK PyPy 3 TESTS 71 327 15257600 1700
65666391 mayank753 C Nov. 24, 2019, 2:06 p.m. OK PyPy 3 TESTS 71 374 17203200 1700
57969906 singhpriyank C July 30, 2019, 5:24 a.m. OK PyPy 3 TESTS 71 374 17408000 1700
57099633 codeboy5 C July 15, 2019, 1:20 p.m. OK PyPy 3 TESTS 71 374 17408000 1700
32778051 toysheeyeyraku C Nov. 29, 2017, 10:43 a.m. OK PyPy 3 TESTS 71 389 38297600 1700
50729326 Mr.Inconsistent C March 3, 2019, 10:49 a.m. OK PyPy 3 TESTS 71 405 18124800 1700
53267406 TopiHdez C April 25, 2019, 3:11 a.m. OK PyPy 3 TESTS 71 405 34611200 1700
42273484 nethish C Aug. 30, 2018, 9:48 a.m. OK PyPy 3 TESTS 71 420 16793600 1700
16272039 orailly C Feb. 22, 2016, 6:21 a.m. OK Python 2 TESTS 71 639 21299200 1700
60829241 shesote C Sept. 19, 2019, 6:06 a.m. OK Python 2 TESTS 71 717 36249600 1700
47523081 jaaguptamme C Dec. 26, 2018, 2:12 p.m. OK Python 2 TESTS 71 717 36249600 1700
35882828 ______u______ C March 3, 2018, 12:44 p.m. OK Python 2 TESTS 71 763 40960000 1700
35875511 ______n______ C March 3, 2018, 8:19 a.m. OK Python 2 TESTS 71 763 40960000 1700
35874933 _____k_____ C March 3, 2018, 8:03 a.m. OK Python 2 TESTS 71 763 40960000 1700
35874763 _____i_____ C March 3, 2018, 7:58 a.m. OK Python 2 TESTS 71 763 40960000 1700
35871504 ______h______ C March 3, 2018, 6:52 a.m. OK Python 2 TESTS 71 763 40960000 1700
35871445 ______k______ C March 3, 2018, 6:51 a.m. OK Python 2 TESTS 71 763 40960000 1700
35870738 ______i______ C March 3, 2018, 6:34 a.m. OK Python 2 TESTS 71 763 40960000 1700
20372830 ditsing C Sept. 4, 2016, 1:18 a.m. OK Ruby TESTS 71 795 11161600 1700
20561677 Hankai C Sept. 13, 2016, 7:14 a.m. OK Ruby TESTS 71 920 71270400 1700
64530241 jrodrigues C Nov. 8, 2019, 3:11 p.m. OK Rust TESTS 71 249 44236800 1700
22109182 reldan C Nov. 8, 2016, 9:30 a.m. OK Scala TESTS 71 498 7372800 1700

remove filters

Back to search problems