Codeforces Round 441 (Div. 1, by Moscow Team Olympiad)

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
875 Codeforces Round 441 (Div. 1, by Moscow Team Olympiad) FINISHED False 7200 229028063 Oct. 16, 2017, 11:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9752 ) A Classroom Watch PROGRAMMING brute force math 1200

B'Eighth-grader Vova is on duty today in the class. After classes, he went into the office to wash the board, and found on it the number n. He asked what is this number and the teacher of mathematics Inna Petrovna answered Vova that n is the answer to the arithmetic task for first-graders. In the textbook, a certain positive integer x was given. The task was to add x to the sum of the digits of the number x written in decimal numeral system. Since the number n on the board was small, Vova quickly guessed which x could be in the textbook. Now he wants to get a program which will search for arbitrary values of the number n for all suitable values of x or determine that such x does not exist. Write such a program for Vova. The first line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). In the first line print one integer k -- number of different values of x satisfying the condition. In next k lines print these values in ascending order. In the first test case x xe2 x80 x89= xe2 x80 x8915 there is only one variant: 15 xe2 x80 x89+ xe2 x80 x891 xe2 x80 x89+ xe2 x80 x895 xe2 x80 x89= xe2 x80 x8921. In the second test case there are no such x. '...

Tutorials

Codeforces Round #441. Editorial.

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
49946326 aloocontest A Feb. 15, 2019, 12:13 p.m. OK Clang++17 Diagnostics TESTS 18 46 0 1200
31389755 yosupo A Oct. 16, 2017, 11:12 a.m. OK D TESTS 18 30 2969600 1200
31604253 Danik_Sam A Oct. 22, 2017, 12:53 p.m. OK FPC TESTS 18 15 5632000 1200
32511946 tritanngo99 A Nov. 20, 2017, 9:48 p.m. OK FPC TESTS 18 15 80179200 1200
49382922 PhuongPeu A Feb. 3, 2019, 4:15 a.m. OK FPC TESTS 18 31 102400 1200
31474611 UNDogMan A Oct. 18, 2017, 9:09 a.m. OK FPC TESTS 18 31 5632000 1200
32494885 Catweek__ A Nov. 20, 2017, 9:41 a.m. OK FPC TESTS 18 156 0 1200
32494871 Catweek__ A Nov. 20, 2017, 9:40 a.m. OK FPC TESTS 18 156 0 1200
42357807 akgr421 A Sept. 2, 2018, 9:50 a.m. OK GNU C TESTS 18 15 0 1200
32608215 vjudge4 A Nov. 24, 2017, 1:38 a.m. OK GNU C TESTS 18 15 0 1200
32379122 radupopa A Nov. 17, 2017, 1:07 p.m. OK GNU C TESTS 18 15 0 1200
32288849 taslar A Nov. 13, 2017, 4:01 p.m. OK GNU C TESTS 18 15 0 1200
32201731 kaymas A Nov. 10, 2017, 5:21 p.m. OK GNU C TESTS 18 15 0 1200
32196395 yigezhe A Nov. 10, 2017, 1:28 p.m. OK GNU C TESTS 18 15 0 1200
32143572 anoy42 A Nov. 8, 2017, 5:45 p.m. OK GNU C TESTS 18 15 0 1200
31727877 RelyOnTheTruth A Oct. 26, 2017, 3:56 a.m. OK GNU C TESTS 18 15 0 1200
32371487 Sukarna_Paul A Nov. 17, 2017, 7:18 a.m. OK GNU C TESTS 18 15 102400 1200
34504054 vjudge3 A Jan. 24, 2018, 5:44 a.m. OK GNU C TESTS 18 15 1843200 1200
31729364 vjudge3 A Oct. 26, 2017, 5:46 a.m. OK GNU C++ TESTS 18 0 0 1200
42448934 vjudge5 A Sept. 4, 2018, 6:28 a.m. OK GNU C++ TESTS 18 15 0 1200
41201942 vjudge5 A Aug. 4, 2018, 5:53 a.m. OK GNU C++ TESTS 18 15 0 1200
40997179 vjudge2 A July 31, 2018, 4:51 a.m. OK GNU C++ TESTS 18 15 0 1200
40498931 vjudge4 A July 18, 2018, 4:35 a.m. OK GNU C++ TESTS 18 15 0 1200
40154610 dhuacm7 A July 10, 2018, 1:52 a.m. OK GNU C++ TESTS 18 15 0 1200
40094561 garimasingh201297 A July 8, 2018, 8:13 p.m. OK GNU C++ TESTS 18 15 0 1200
32578658 stahl A Nov. 23, 2017, 3:01 p.m. OK GNU C++ TESTS 18 15 0 1200
32536389 wutianziii A Nov. 21, 2017, 9:37 p.m. OK GNU C++ TESTS 18 15 0 1200
32512864 stahl A Nov. 20, 2017, 11:11 p.m. OK GNU C++ TESTS 18 15 0 1200
31721057 Nicho A Oct. 25, 2017, 6:48 p.m. OK GNU C11 TESTS 18 15 0 1200
32289048 Nushrathere A Nov. 13, 2017, 4:11 p.m. OK GNU C11 TESTS 18 15 0 1200
33083952 dondeti.aashish A Dec. 10, 2017, 6:29 p.m. OK GNU C11 TESTS 18 15 1843200 1200
33089491 2465806616 A Dec. 11, 2017, 5:27 a.m. OK GNU C11 TESTS 18 15 1843200 1200
33057181 alexey.orlov A Dec. 9, 2017, 5:20 p.m. OK GNU C11 TESTS 18 15 1843200 1200
43605157 kishanTiwari A Sept. 30, 2018, 11:59 a.m. OK GNU C11 TESTS 18 31 0 1200
53204002 Jahid135 A April 23, 2019, 7:49 p.m. OK GNU C11 TESTS 18 31 0 1200
43605355 kishanTiwari A Sept. 30, 2018, 12:05 p.m. OK GNU C11 TESTS 18 31 0 1200
39245777 spectrum101 A June 14, 2018, 1:37 p.m. OK GNU C++11 TESTS 18 15 0 1200
39187370 JeffreyLC A June 12, 2018, 9:58 a.m. OK GNU C++11 TESTS 18 15 0 1200
44491131 jung_e_elaan A Oct. 18, 2018, 2:31 p.m. OK GNU C++11 TESTS 18 15 0 1200
46046091 Still_Believe A Nov. 22, 2018, 2:09 a.m. OK GNU C++11 TESTS 18 15 0 1200
50552152 julitus A Feb. 27, 2019, 5:26 a.m. OK GNU C++11 TESTS 18 15 0 1200
51250582 Tapojit047 A March 13, 2019, 8:25 a.m. OK GNU C++11 TESTS 18 15 0 1200
51597152 luogu_bot4 A March 20, 2019, 11:20 p.m. OK GNU C++11 TESTS 18 15 0 1200
53740111 luogu_bot3 A May 4, 2019, 1:19 p.m. OK GNU C++11 TESTS 18 15 0 1200
41204046 vjudge5 A Aug. 4, 2018, 6:56 a.m. OK GNU C++11 TESTS 18 15 0 1200
39265036 vpolakos A June 15, 2018, 11:39 a.m. OK GNU C++11 TESTS 18 15 0 1200
69537214 jaberndc A Jan. 25, 2020, 7:25 p.m. OK GNU C++14 TESTS 18 15 0 1200
69712313 Shadow_Master A Jan. 29, 2020, 7:34 a.m. OK GNU C++14 TESTS 18 15 0 1200
68959621 melek14 A Jan. 16, 2020, 11:06 p.m. OK GNU C++14 TESTS 18 15 0 1200
68025644 Naim_Hasan A Jan. 1, 2020, 5:28 a.m. OK GNU C++14 TESTS 18 15 0 1200
66574782 Robukhi A Dec. 10, 2019, 6:45 a.m. OK GNU C++14 TESTS 18 15 0 1200
62636681 say.somyasrivastava A Oct. 15, 2019, 5 p.m. OK GNU C++14 TESTS 18 15 0 1200
61309179 vjudge1 A Sept. 26, 2019, 8:35 a.m. OK GNU C++14 TESTS 18 15 0 1200
61307908 vjudge5 A Sept. 26, 2019, 8:06 a.m. OK GNU C++14 TESTS 18 15 0 1200
60480389 MELNIKOFF_OLEG A Sept. 13, 2019, 10:08 a.m. OK GNU C++14 TESTS 18 15 0 1200
59246571 melancholic_fat_otaku A Aug. 22, 2019, 12:27 a.m. OK GNU C++14 TESTS 18 15 0 1200
69680164 Mehuhentdier A Jan. 28, 2020, 3:23 p.m. OK GNU C++17 TESTS 18 15 0 1200
63610601 vjudge4 A Oct. 27, 2019, 5:03 p.m. OK GNU C++17 TESTS 18 15 0 1200
64176484 Ghassane A Nov. 3, 2019, 9:12 p.m. OK GNU C++17 TESTS 18 15 0 1200
64518194 Okrut A Nov. 8, 2019, 11:28 a.m. OK GNU C++17 TESTS 18 15 0 1200
65110583 JAPL A Nov. 15, 2019, 10:08 p.m. OK GNU C++17 TESTS 18 15 0 1200
65564249 Hridoy23 A Nov. 23, 2019, 5:03 a.m. OK GNU C++17 TESTS 18 15 0 1200
66152169 hrustim25 A Dec. 1, 2019, 7:34 p.m. OK GNU C++17 TESTS 18 15 0 1200
67679544 Vin__ar A Dec. 27, 2019, 5:28 a.m. OK GNU C++17 TESTS 18 15 0 1200
68006742 ktk.prajapati A Dec. 31, 2019, 1:34 p.m. OK GNU C++17 TESTS 18 15 0 1200
69658240 Omerta A Jan. 28, 2020, 8:22 a.m. OK GNU C++17 TESTS 18 15 0 1200
32545936 goC A Nov. 22, 2017, 9:40 a.m. OK GNU C++17 Diagnostics TESTS 18 810 0 1200
31615841 loay2014 A Oct. 23, 2017, 12:29 a.m. OK Go TESTS 18 577 22835200 1200
31446030 _Erika A Oct. 17, 2017, 11:21 a.m. OK Haskell TESTS 18 15 44851200 1200
31391690 mipt.vi002 A Oct. 16, 2017, 11:17 a.m. OK Haskell TESTS 18 15 44851200 1200
67453106 IllogicalMe A Dec. 23, 2019, 5:30 a.m. OK Java 11 TESTS 18 187 0 1200
31391383 hiukim A Oct. 16, 2017, 11:16 a.m. OK Java 8 TESTS 18 93 20684800 1200
31536648 Slazorin A Oct. 20, 2017, 2:34 p.m. OK Java 8 TESTS 18 93 21094400 1200
31447792 sameer_hack A Oct. 17, 2017, 12:17 p.m. OK Java 8 TESTS 18 93 21094400 1200
46988990 viratK A Dec. 14, 2018, 12:36 a.m. OK Java 8 TESTS 18 108 0 1200
31388776 mmaxio A Oct. 16, 2017, 11:07 a.m. OK Java 8 TESTS 18 108 20684800 1200
31394414 ika A Oct. 16, 2017, 11:25 a.m. OK Java 8 TESTS 18 108 20992000 1200
31495062 SaurabhMaster A Oct. 19, 2017, 12:03 a.m. OK Java 8 TESTS 18 108 21094400 1200
31388854 tmwilliamlin168 A Oct. 16, 2017, 11:08 a.m. OK Java 8 TESTS 18 108 21094400 1200
56443355 mennafadali A July 2, 2019, 5:34 p.m. OK Java 8 TESTS 18 109 0 1200
58778485 vvenkai A Aug. 13, 2019, 6:32 p.m. OK Java 8 TESTS 18 109 0 1200
35273876 nvzvruk A Feb. 14, 2018, 6:50 p.m. OK JavaScript TESTS 18 15 5836800 1200
35182377 Ihor_ A Feb. 12, 2018, 3:31 p.m. OK JavaScript TESTS 18 15 5939200 1200
35216432 19valera93 A Feb. 13, 2018, 7:11 p.m. OK JavaScript TESTS 18 15 6963200 1200
35125414 ivadimko A Feb. 10, 2018, 1:19 p.m. OK JavaScript TESTS 18 30 5836800 1200
35418527 matov A Feb. 17, 2018, 2:01 p.m. OK JavaScript TESTS 18 30 5939200 1200
35188628 Sentorn A Feb. 12, 2018, 9:08 p.m. OK JavaScript TESTS 18 30 5939200 1200
35182257 Ihor_ A Feb. 12, 2018, 3:26 p.m. OK JavaScript TESTS 18 30 5939200 1200
32483060 Biswadevs A Nov. 19, 2017, 8:02 p.m. OK JavaScript TESTS 18 30 5939200 1200
35686458 Feschenko_Natalia A Feb. 25, 2018, 4:04 p.m. OK JavaScript TESTS 18 31 5836800 1200
35136634 LizaGribova A Feb. 10, 2018, 8:20 p.m. OK JavaScript TESTS 18 31 5836800 1200
41193725 mid_or_feed A Aug. 3, 2018, 9:38 p.m. OK Mono C# TESTS 18 46 0 1200
51214383 leetcoder A March 12, 2019, 9:39 a.m. OK Mono C# TESTS 18 46 0 1200
32285348 M_Allahyari A Nov. 13, 2017, 1:26 p.m. OK Mono C# TESTS 18 46 102400 1200
32349520 Xtreemist A Nov. 16, 2017, 7:47 a.m. OK Mono C# TESTS 18 46 102400 1200
32218218 LiLiNGwp A Nov. 11, 2017, 11:40 a.m. OK Mono C# TESTS 18 46 102400 1200
44035515 nemars A Oct. 9, 2018, 12:43 p.m. OK Mono C# TESTS 18 62 3584000 1200
31813728 Stepavly A Oct. 27, 2017, 5:14 p.m. OK MS C# TESTS 18 46 0 1200
35106386 valiksk8 A Feb. 9, 2018, 9:49 p.m. OK MS C# TESTS 18 46 9318400 1200
31572967 MihaZupan A Oct. 21, 2017, 12:30 p.m. OK MS C# TESTS 18 46 9318400 1200
31573412 jaka.sivavec A Oct. 21, 2017, 12:38 p.m. OK MS C# TESTS 18 61 11776000 1200
32240685 fuzem A Nov. 12, 2017, 10:32 a.m. OK MS C++ TESTS 18 15 0 1200
32226894 IG39 A Nov. 11, 2017, 5:42 p.m. OK MS C++ TESTS 18 15 0 1200
32189383 Maffka A Nov. 10, 2017, 8:47 a.m. OK MS C++ TESTS 18 15 0 1200
39247095 Gleb_Dubosarskii A June 14, 2018, 2:31 p.m. OK MS C++ TESTS 18 15 0 1200
46509682 lechinhin A Dec. 2, 2018, 12:43 p.m. OK MS C++ TESTS 18 15 0 1200
31786096 arianetemadi A Oct. 27, 2017, 7:07 a.m. OK MS C++ TESTS 18 15 102400 1200
31707984 yukk A Oct. 25, 2017, 12:04 p.m. OK MS C++ TESTS 18 15 204800 1200
31874504 void_sora A Oct. 29, 2017, 6:22 p.m. OK MS C++ TESTS 18 15 512000 1200
32124270 NazariyLebed A Nov. 7, 2017, 3:45 p.m. OK MS C++ TESTS 18 15 1638400 1200
32124304 NazariyLebed A Nov. 7, 2017, 3:47 p.m. OK MS C++ TESTS 18 15 1638400 1200
63039102 shio A Oct. 20, 2019, 10:56 p.m. OK MS C++ 2017 TESTS 18 30 0 1200
61308838 vjudge1 A Sept. 26, 2019, 8:28 a.m. OK MS C++ 2017 TESTS 18 31 0 1200
56615599 Mad112233 A July 6, 2019, 9:27 a.m. OK MS C++ 2017 TESTS 18 46 0 1200
31902751 GodFazzer A Oct. 30, 2017, 6:30 p.m. OK PascalABC.NET TESTS 18 31 102400 1200
32050580 barmaleyKA A Nov. 4, 2017, 11:05 a.m. OK PascalABC.NET TESTS 18 46 0 1200
31845372 SH_X A Oct. 28, 2017, 4:51 p.m. OK PascalABC.NET TESTS 18 46 512000 1200
31449512 danshtal A Oct. 17, 2017, 1:07 p.m. OK PascalABC.NET TESTS 18 46 16896000 1200
32495049 ANOdo A Nov. 20, 2017, 9:48 a.m. OK PascalABC.NET TESTS 18 171 0 1200
51552707 mm944 A March 20, 2019, 2:15 a.m. OK PascalABC.NET TESTS 18 295 102400 1200
31443760 s_p A Oct. 17, 2017, 9:46 a.m. OK Perl TESTS 18 30 2150400 1200
31680887 Errorrr A Oct. 24, 2017, 12:23 p.m. OK PHP TESTS 18 31 6041600 1200
31431740 mayakin A Oct. 16, 2017, 7:41 p.m. OK PHP TESTS 18 124 6041600 1200
31388842 MiFaFaOvO A Oct. 16, 2017, 11:07 a.m. OK PyPy 2 TESTS 18 77 21913600 1200
31389287 Yash_ A Oct. 16, 2017, 11:10 a.m. OK PyPy 2 TESTS 18 77 21913600 1200
33516250 sgtlaugh A Dec. 22, 2017, 5:46 p.m. OK PyPy 2 TESTS 18 78 21504000 1200
31389010 Lewin A Oct. 16, 2017, 11:09 a.m. OK PyPy 2 TESTS 18 93 21504000 1200
58236325 chaudhary_19 A Aug. 3, 2019, 7:47 p.m. OK PyPy 2 TESTS 18 109 0 1200
31435899 nealzane A Oct. 17, 2017, 1:25 a.m. OK PyPy 2 TESTS 18 124 21913600 1200
31493722 metamemelord A Oct. 18, 2017, 9:32 p.m. OK PyPy 3 TESTS 18 93 23142400 1200
31613432 mirs A Oct. 22, 2017, 8:26 p.m. OK PyPy 3 TESTS 18 109 23244800 1200
57088595 ashok123 A July 15, 2019, 9:50 a.m. OK PyPy 3 TESTS 18 124 0 1200
55982141 propashii A June 23, 2019, 10:17 p.m. OK PyPy 3 TESTS 18 124 0 1200
55685066 iamskp99 A June 17, 2019, 3:03 p.m. OK PyPy 3 TESTS 18 124 0 1200
54827866 iamprayush A May 30, 2019, 7:28 a.m. OK PyPy 3 TESTS 18 124 0 1200
54663794 Aidos A May 26, 2019, 12:07 p.m. OK PyPy 3 TESTS 18 124 0 1200
31442493 ShapeBlaze A Oct. 17, 2017, 8:40 a.m. OK PyPy 3 TESTS 18 124 23347200 1200
68973981 shashadwivedi321 A Jan. 17, 2020, 8:07 a.m. OK PyPy 3 TESTS 18 139 0 1200
59193649 limabeans A Aug. 20, 2019, 11:42 p.m. OK PyPy 3 TESTS 18 139 0 1200
31766835 M4SK3D A Oct. 26, 2017, 5:31 p.m. OK Python 2 TESTS 18 46 0 1200
31857935 tjsumonster A Oct. 29, 2017, 6:42 a.m. OK Python 2 TESTS 18 46 0 1200
32979507 laoliumang A Dec. 6, 2017, 3 p.m. OK Python 2 TESTS 18 46 4608000 1200
31619558 always_gray A Oct. 23, 2017, 4:48 a.m. OK Python 2 TESTS 18 46 4608000 1200
31465533 rishabh_mathur999 A Oct. 18, 2017, 12:10 a.m. OK Python 2 TESTS 18 46 4608000 1200
31452981 Sabareeshk A Oct. 17, 2017, 2:55 p.m. OK Python 2 TESTS 18 46 4608000 1200
31440716 xlk A Oct. 17, 2017, 6:43 a.m. OK Python 2 TESTS 18 46 4710400 1200
32811740 tnowakow A Nov. 30, 2017, 4:56 p.m. OK Python 2 TESTS 18 61 4608000 1200
31398638 VastoLorde95 A Oct. 16, 2017, 11:41 a.m. OK Python 2 TESTS 18 61 4608000 1200
31390146 nwi A Oct. 16, 2017, 11:13 a.m. OK Python 2 TESTS 18 61 4608000 1200
31702408 sad.cat A Oct. 25, 2017, 8:03 a.m. OK Python 3 TESTS 18 46 0 1200
32231413 SalmonTimo A Nov. 11, 2017, 9:59 p.m. OK Python 3 TESTS 18 61 0 1200
31840591 Bartnik A Oct. 28, 2017, 2:14 p.m. OK Python 3 TESTS 18 61 0 1200
31715013 rayhan50001 A Oct. 25, 2017, 3:02 p.m. OK Python 3 TESTS 18 61 0 1200
31548886 newbee12 A Oct. 21, 2017, 3:33 a.m. OK Python 3 TESTS 18 61 5529600 1200
31546663 ameniawy A Oct. 20, 2017, 11:54 p.m. OK Python 3 TESTS 18 61 5529600 1200
31546401 orailly A Oct. 20, 2017, 11:20 p.m. OK Python 3 TESTS 18 61 5529600 1200
31538981 zhoilet A Oct. 20, 2017, 3:55 p.m. OK Python 3 TESTS 18 61 5529600 1200
31516059 Niez A Oct. 19, 2017, 6:09 p.m. OK Python 3 TESTS 18 61 5529600 1200
31487679 baby_tape A Oct. 18, 2017, 4:38 p.m. OK Python 3 TESTS 18 61 5529600 1200
33041084 sinapusu2002 A Dec. 9, 2017, 5:53 a.m. OK Ruby TESTS 18 61 6451200 1200
31588036 majali A Oct. 21, 2017, 10:26 p.m. OK Ruby TESTS 18 93 6553600 1200

remove filters

Back to search problems