Codeforces Round 221 (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
375 Codeforces Round 221 (Div. 1) FINISHED False 7200 349804797 Dec. 24, 2013, 2 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4912 ) A Divisible by Seven PROGRAMMING math number theory 1800

B"You have number a, whose decimal representation quite luckily contains digits 1, 6, 8, 9. Rearrange the digits in its decimal representation so that the resulting number will be divisible by 7. Number a doesn't contain any leading zeroes and contains digits 1, 6, 8, 9 (it also can contain another digits). The resulting number also mustn't contain any leading zeroes. The first line contains positive integer a in the decimal record. It is guaranteed that the record of number a contains digits: 1, 6, 8, 9. Number a doesn't contain any leading zeroes. The decimal representation of number a contains at least 4 and at most 106 characters. Print a number in the decimal notation without leading zeroes -- the result of the permutation. If it is impossible to rearrange the digits of the number a in the required manner, print 0."...

Tutorials

Codeforces Round #221 Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
5504712 Gassa A Dec. 24, 2013, 2:23 p.m. OK D TESTS 58 374 10752000 1800
5510827 IgorL A Dec. 24, 2013, 4:18 p.m. OK Delphi TESTS 58 374 8089600 1800
5505437 Golovanov399 A Dec. 24, 2013, 2:30 p.m. OK Delphi TESTS 58 421 1945600 1800
5511052 ruban A Dec. 24, 2013, 4:25 p.m. OK Delphi TESTS 58 483 62259200 1800
5511332 ruban A Dec. 24, 2013, 4:30 p.m. OK Delphi TESTS 58 483 62259200 1800
5529204 mr_justadog A Dec. 27, 2013, 9:12 a.m. OK Delphi TESTS 58 686 11059200 1800
9403758 xfce8888 A Jan. 11, 2015, 3:11 p.m. OK FPC TESTS 58 93 2560000 1800
5509042 LazyMist A Dec. 24, 2013, 3:30 p.m. OK FPC TESTS 58 187 2560000 1800
5625455 TetS2Tin A Jan. 6, 2014, 5:04 a.m. OK FPC TESTS 58 296 0 1800
5631291 Misha100896 A Jan. 7, 2014, 7:44 a.m. OK FPC TESTS 58 296 1331200 1800
5504377 Alex_2oo8 A Dec. 24, 2013, 2:20 p.m. OK FPC TESTS 58 296 1331200 1800
5568775 Luqman A Dec. 30, 2013, 12:11 p.m. OK FPC TESTS 58 312 1331200 1800
5513252 Arthur A Dec. 24, 2013, 7:11 p.m. OK FPC TESTS 58 312 1331200 1800
5505369 marcorezieho A Dec. 24, 2013, 2:30 p.m. OK FPC TESTS 58 327 1331200 1800
5515791 shine_hai A Dec. 25, 2013, 2:30 a.m. OK FPC TESTS 58 358 1331200 1800
5515731 ptnk_1215_panaka_13 A Dec. 25, 2013, 2:20 a.m. OK FPC TESTS 58 358 5427200 1800
5515218 incertia A Dec. 24, 2013, 11:33 p.m. OK GNU C TESTS 58 31 0 1800
5520871 hikmet548 A Dec. 25, 2013, 6:27 p.m. OK GNU C TESTS 58 31 0 1800
5506954 tjandra A Dec. 24, 2013, 2:50 p.m. OK GNU C TESTS 58 31 0 1800
5781088 bli0042 A Jan. 23, 2014, 11:56 p.m. OK GNU C TESTS 58 31 1024000 1800
5661292 rishabh.nsit A Jan. 11, 2014, 7:20 p.m. OK GNU C TESTS 58 62 0 1800
5516779 NoSoul A Dec. 25, 2013, 6:22 a.m. OK GNU C TESTS 58 62 1024000 1800
5528496 abbas A Dec. 27, 2013, 6:23 a.m. OK GNU C TESTS 58 124 0 1800
5525999 linkkingjay A Dec. 26, 2013, 4:30 p.m. OK GNU C TESTS 58 124 1024000 1800
15833653 hardiknegi A Feb. 5, 2016, 9:37 p.m. OK GNU C TESTS 58 156 5017600 1800
5689775 k3e18 A Jan. 14, 2014, 10:21 a.m. OK GNU C++ TESTS 58 15 1024000 1800
10377930 C_SUNSHINE A March 21, 2015, 12:28 p.m. OK GNU C++ TESTS 58 31 0 1800
5948639 knb A March 6, 2014, 6:53 a.m. OK GNU C++ TESTS 58 31 0 1800
5778513 silu A Jan. 23, 2014, 4:13 p.m. OK GNU C++ TESTS 58 31 0 1800
5546660 ranzi A Dec. 29, 2013, 8:56 a.m. OK GNU C++ TESTS 58 31 0 1800
5523667 wangyisong1996 A Dec. 26, 2013, 8:43 a.m. OK GNU C++ TESTS 58 31 0 1800
5519249 ajeyone A Dec. 25, 2013, 1:41 p.m. OK GNU C++ TESTS 58 31 0 1800
5515582 hjx1212 A Dec. 25, 2013, 1:45 a.m. OK GNU C++ TESTS 58 31 0 1800
5509096 kevinptt0323 A Dec. 24, 2013, 3:31 p.m. OK GNU C++ TESTS 58 31 0 1800
5507668 UFeiFlying A Dec. 24, 2013, 3:03 p.m. OK GNU C++ TESTS 58 31 0 1800
5507865 peterisr A Dec. 24, 2013, 3:06 p.m. OK GNU C++0x TESTS 58 31 921600 1800
6246730 choice A April 3, 2014, 2:52 a.m. OK GNU C++0x TESTS 58 31 1024000 1800
5513535 enrevol A Dec. 24, 2013, 8:11 p.m. OK GNU C++0x TESTS 58 31 1024000 1800
5511264 ssmike A Dec. 24, 2013, 4:29 p.m. OK GNU C++0x TESTS 58 31 1024000 1800
5510109 choice A Dec. 24, 2013, 3:52 p.m. OK GNU C++0x TESTS 58 31 1024000 1800
5506529 Crab-de-KhNURE A Dec. 24, 2013, 2:44 p.m. OK GNU C++0x TESTS 58 31 1024000 1800
5504607 icyrhyme A Dec. 24, 2013, 2:22 p.m. OK GNU C++0x TESTS 58 31 1024000 1800
5517312 orzxyz111 A Dec. 25, 2013, 8:03 a.m. OK GNU C++0x TESTS 58 31 2048000 1800
5503748 Sfairat A Dec. 24, 2013, 2:15 p.m. OK GNU C++0x TESTS 58 31 2048000 1800
5504918 xorfire A Dec. 24, 2013, 2:25 p.m. OK GNU C++0x TESTS 58 31 2560000 1800
20487899 y_shindoh A Sept. 10, 2016, 12:23 a.m. OK GNU C++11 TESTS 58 31 819200 1800
20660700 vjudge4 A Sept. 16, 2016, 1:23 p.m. OK GNU C++11 TESTS 58 31 1024000 1800
19063029 McGinn A July 13, 2016, 5:17 a.m. OK GNU C++11 TESTS 58 31 1024000 1800
15732820 vicky111 A Feb. 1, 2016, 2:14 p.m. OK GNU C++11 TESTS 58 31 2048000 1800
15345591 samread81 A Jan. 14, 2016, 2:34 p.m. OK GNU C++11 TESTS 58 31 2048000 1800
20805446 maheralkassir A Sept. 21, 2016, 8:08 p.m. OK GNU C++11 TESTS 58 31 2457600 1800
12701919 jcg A Aug. 25, 2015, 11:20 p.m. OK GNU C++11 TESTS 58 31 2560000 1800
25693151 cen A March 21, 2017, 2:50 p.m. OK GNU C++11 TESTS 58 31 3072000 1800
18904563 Mohamed_AboBakr A July 5, 2016, 4:47 p.m. OK GNU C++11 TESTS 58 31 3993600 1800
18265545 shyamkb A June 6, 2016, 5:28 a.m. OK GNU C++11 TESTS 58 31 4096000 1800
27346712 RNS_JKS A May 26, 2017, 12:44 a.m. OK GNU C++14 TESTS 58 31 2048000 1800
34804409 sggutier A Feb. 1, 2018, 1:38 p.m. OK GNU C++14 TESTS 58 31 2867200 1800
21068740 HANDLE_INVALID A Oct. 1, 2016, 12:31 p.m. OK GNU C++14 TESTS 58 31 3993600 1800
25326936 wewark A March 7, 2017, 6 p.m. OK GNU C++14 TESTS 58 31 4505600 1800
22611021 ForgotToUpsolve A Nov. 29, 2016, 9:45 p.m. OK GNU C++14 TESTS 58 31 4608000 1800
34280253 corba A Jan. 18, 2018, 3:49 p.m. OK GNU C++14 TESTS 58 31 7987200 1800
39668955 mahabir10 A June 26, 2018, 7:49 a.m. OK GNU C++14 TESTS 58 46 2048000 1800
49180313 wleung_bvg A Jan. 30, 2019, 1 a.m. OK GNU C++14 TESTS 58 46 2150400 1800
22665919 AMR-KELEG A Dec. 2, 2016, 8:53 p.m. OK GNU C++14 TESTS 58 46 2560000 1800
68331188 xvenom99 A Jan. 6, 2020, 6:53 p.m. OK GNU C++14 TESTS 58 46 3993600 1800
55308894 yuhta A June 8, 2019, 4:17 p.m. OK GNU C++17 TESTS 58 31 2150400 1800
47971401 hahahh1 A Jan. 5, 2019, 2:57 p.m. OK GNU C++17 TESTS 58 46 1228800 1800
56030936 Joker_Gamer A June 25, 2019, 9:30 a.m. OK GNU C++17 TESTS 58 46 2048000 1800
51230698 KenjiH A March 12, 2019, 4:05 p.m. OK GNU C++17 TESTS 58 46 2560000 1800
55068946 spop A June 4, 2019, 5:20 a.m. OK GNU C++17 TESTS 58 46 3993600 1800
52513048 jos_wll A April 9, 2019, 1:58 a.m. OK GNU C++17 TESTS 58 46 3993600 1800
53836253 quake0 A May 7, 2019, 3:12 a.m. OK GNU C++17 TESTS 58 46 4096000 1800
64714411 sammithkanur A Nov. 11, 2019, 8:44 p.m. OK GNU C++17 TESTS 58 46 4096000 1800
56405939 mehuld A July 1, 2019, 7:22 p.m. OK GNU C++17 TESTS 58 46 4096000 1800
54856455 lonerunner A May 30, 2019, 7:52 p.m. OK GNU C++17 TESTS 58 46 4096000 1800
5519738 DDDDDDDDDDDDDDDDDDDDDDDD A Dec. 25, 2013, 3:02 p.m. OK Go TESTS 58 46 7475200 1800
5519716 DDDDDDDDDDDDDDDDDDDDDDDD A Dec. 25, 2013, 2:59 p.m. OK Go TESTS 58 858 7475200 1800
5507563 kelvinlau A Dec. 24, 2013, 3:01 p.m. OK Go TESTS 58 858 9625600 1800
5532438 ergatis A Dec. 27, 2013, 8:07 p.m. OK Haskell TESTS 58 280 34816000 1800
5532427 ergatis A Dec. 27, 2013, 8:05 p.m. OK Haskell TESTS 58 296 34816000 1800
5506666 udontknowme A Dec. 24, 2013, 2:46 p.m. OK Java 6 TESTS 58 109 204800 1800
6360252 xiaowuc1 A April 14, 2014, 9:18 p.m. OK Java 6 TESTS 58 109 204800 1800
5544366 Kentauros A Dec. 28, 2013, 7:03 p.m. OK Java 6 TESTS 58 109 204800 1800
5518750 lgsmitty A Dec. 25, 2013, 12:22 p.m. OK Java 6 TESTS 58 124 4403200 1800
5510766 mkirsche A Dec. 24, 2013, 4:16 p.m. OK Java 6 TESTS 58 140 204800 1800
6600982 nickbuelich A May 12, 2014, 3:06 a.m. OK Java 6 TESTS 58 155 0 1800
5600621 A.Araghian A Jan. 1, 2014, 9:15 p.m. OK Java 6 TESTS 58 156 204800 1800
5529716 yanghao A Dec. 27, 2013, 10:56 a.m. OK Java 6 TESTS 58 171 204800 1800
5508268 DiegoAE A Dec. 24, 2013, 3:14 p.m. OK Java 6 TESTS 58 171 2457600 1800
9192722 marcose18 A Dec. 19, 2014, 1:16 a.m. OK Java 6 TESTS 58 187 0 1800
5503802 Zyflair A Dec. 24, 2013, 2:15 p.m. OK Java 7 TESTS 58 93 0 1800
5545418 upsolving A Dec. 29, 2013, 2:03 a.m. OK Java 7 TESTS 58 93 0 1800
5510358 edorundo A Dec. 24, 2013, 3:56 p.m. OK Java 7 TESTS 58 93 0 1800
5506266 uwi A Dec. 24, 2013, 2:40 p.m. OK Java 7 TESTS 58 93 0 1800
5502830 Egor A Dec. 24, 2013, 2:08 p.m. OK Java 7 TESTS 58 93 0 1800
5512496 RampantMarshmallow A Dec. 24, 2013, 5:30 p.m. OK Java 7 TESTS 58 93 102400 1800
5634619 ansh0809 A Jan. 7, 2014, 8:35 p.m. OK Java 7 TESTS 58 93 204800 1800
12014221 Empress A July 12, 2015, 2:18 a.m. OK Java 7 TESTS 58 109 0 1800
5639626 GhpS A Jan. 8, 2014, 8:21 p.m. OK Java 7 TESTS 58 109 0 1800
5519697 vadimmm A Dec. 25, 2013, 2:56 p.m. OK Java 7 TESTS 58 109 0 1800
6133107 miguelmaurizio A March 24, 2014, 6:41 p.m. OK Java 8 TESTS 58 155 0 1800
31861189 sjain281297 A Oct. 29, 2017, 9:02 a.m. OK Java 8 TESTS 58 155 0 1800
27918271 Minaa A June 20, 2017, 6:11 a.m. OK Java 8 TESTS 58 155 0 1800
9505350 Aidos A Jan. 22, 2015, 6:46 p.m. OK Java 8 TESTS 58 155 0 1800
25380471 tomdmitriev A March 10, 2017, 1:16 p.m. OK Java 8 TESTS 58 155 22220800 1800
24995921 pitfall A Feb. 24, 2017, 8:49 p.m. OK Java 8 TESTS 58 155 22323200 1800
47705603 mandark27 A Dec. 29, 2018, 8:01 p.m. OK Java 8 TESTS 58 156 0 1800
14190935 ATailouloute A Nov. 10, 2015, 11:36 p.m. OK Java 8 TESTS 58 156 2560000 1800
32180987 ShafinKhadem A Nov. 9, 2017, 8:24 p.m. OK Java 8 TESTS 58 171 0 1800
14190940 ATailouloute A Nov. 10, 2015, 11:36 p.m. OK Java 8 TESTS 58 171 2560000 1800
55192874 sankalp_ A June 6, 2019, 7:13 a.m. OK Mono C# TESTS 58 202 13107200 1800
10909429 azukun A April 27, 2015, 1:31 p.m. OK MS C# TESTS 58 92 18636800 1800
15089216 og.kostya A Dec. 29, 2015, 6:54 p.m. OK MS C# TESTS 58 93 8601600 1800
5503070 Monyura A Dec. 24, 2013, 2:10 p.m. OK MS C++ TESTS 58 31 2048000 1800
5503337 MrDindows A Dec. 24, 2013, 2:12 p.m. OK MS C++ TESTS 58 31 2252800 1800
5506369 sinesight A Dec. 24, 2013, 2:41 p.m. OK MS C++ TESTS 58 31 2457600 1800
5503400 Merkurev A Dec. 24, 2013, 2:12 p.m. OK MS C++ TESTS 58 31 2867200 1800
5516450 DmitriyH A Dec. 25, 2013, 5:03 a.m. OK MS C++ TESTS 58 31 4198400 1800
5503302 Giraffy A Dec. 24, 2013, 2:12 p.m. OK MS C++ TESTS 58 31 10854400 1800
5510920 Sklyack A Dec. 24, 2013, 4:21 p.m. OK MS C++ TESTS 58 46 819200 1800
5520994 Free777Man A Dec. 25, 2013, 7:01 p.m. OK MS C++ TESTS 58 46 921600 1800
5506626 soundsdx A Dec. 24, 2013, 2:45 p.m. OK MS C++ TESTS 58 46 1945600 1800
13501636 balalaika A Oct. 8, 2015, 10:36 p.m. OK MS C++ TESTS 58 46 1945600 1800
53079838 TOXait A April 21, 2019, 5:42 a.m. OK MS C++ 2017 TESTS 58 187 2048000 1800
25334808 bonfire A March 8, 2017, 6:39 a.m. OK PyPy 2 TESTS 58 93 28979200 1800
66825900 anshuman16423 A Dec. 14, 2019, 8:56 a.m. OK PyPy 2 TESTS 58 342 53350400 1800
29302514 sgtlaugh A Aug. 9, 2017, 9:30 a.m. OK PyPy 2 TESTS 58 639 105574400 1800
34837279 pavankatta A Feb. 2, 2018, 12:15 p.m. OK PyPy 2 TESTS 58 654 74752000 1800
49515755 PavelChadnov A Feb. 6, 2019, 2:29 a.m. OK PyPy 3 TESTS 58 405 35430400 1800
55378680 limabeans A June 9, 2019, 6:57 p.m. OK PyPy 3 TESTS 58 468 17408000 1800
30614825 vjudge2 A Sept. 22, 2017, 12:52 p.m. OK PyPy 3 TESTS 58 654 119193600 1800
5523256 nwi A Dec. 26, 2013, 7:28 a.m. OK Python 2 TESTS 58 187 2969600 1800
7911718 manhhomienbienthuy A Sept. 22, 2014, 3:18 p.m. OK Python 2 TESTS 58 202 2969600 1800
5949116 yugle7 A March 6, 2014, 8:19 a.m. OK Python 2 TESTS 58 202 2969600 1800
5857246 hs484 A Jan. 31, 2014, 2:39 p.m. OK Python 2 TESTS 58 265 4096000 1800
5506059 vadym_doroshenko A Dec. 24, 2013, 2:38 p.m. OK Python 2 TESTS 58 327 3891200 1800
5688013 yexuDart A Jan. 14, 2014, 3:35 a.m. OK Python 2 TESTS 58 358 17510400 1800
19228090 Faster A July 19, 2016, 9:02 a.m. OK Python 2 TESTS 58 514 18124800 1800
5601669 abhi A Jan. 2, 2014, 2:08 a.m. OK Python 2 TESTS 58 577 4505600 1800
67256708 vjudge3 A Dec. 19, 2019, 11:01 p.m. OK Python 2 TESTS 58 748 10854400 1800
13278797 novice_4 A Sept. 28, 2015, 1:44 p.m. OK Python 2 TESTS 58 779 7372800 1800
5949072 yugle7 A March 6, 2014, 8:12 a.m. OK Python 3 TESTS 58 264 2867200 1800
5995087 yugle7 A March 11, 2014, 10:54 a.m. OK Python 3 TESTS 58 280 3891200 1800
21990405 Amores A Nov. 2, 2016, 12:07 p.m. OK Python 3 TESTS 58 530 4505600 1800
5525761 USA.py A Dec. 26, 2013, 3:47 p.m. OK Python 3 TESTS 58 702 4096000 1800
5525744 USA.py A Dec. 26, 2013, 3:44 p.m. OK Python 3 TESTS 58 733 4096000 1800
41984573 Mk_Python_v1 A Aug. 23, 2018, 5:08 a.m. OK Python 3 TESTS 58 748 5120000 1800
64671800 ghbvft6 A Nov. 11, 2019, 6:19 a.m. OK Ruby TESTS 58 514 63385600 1800

remove filters

Back to search problems