Educational Codeforces Round 21

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
808 Educational Codeforces Round 21 FINISHED False 9000 236962499 May 15, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9374 ) A Lucky Year PROGRAMMING implementation 1000

B'Apart from having lots of holidays throughout the year, residents of Berland also have whole lucky years. Year is considered lucky if it has no more than 1 non-zero digit in its number. So years 100, 40000, 5 are lucky and 12, 3001 and 12345 are not. You are given current year in Berland. Your task is to find how long will residents of Berland wait till the next lucky year. The first line contains integer number n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- current year in Berland. Output amount of years from the current year to the next lucky one. In the first example next lucky year is 5. In the second one -- 300. In the third -- 5000. '...

Tutorials

52010

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
45992905 Muhammad-2004 A Nov. 20, 2018, 10:58 a.m. OK Clang++17 Diagnostics TESTS 271 61 0 1000
27213419 FalseMirror A May 19, 2017, 11:43 a.m. OK D TESTS 271 15 0 1000
27218829 leo080501 A May 19, 2017, 4:50 p.m. OK Delphi TESTS 271 31 0 1000
27235440 NemmilenHolnds A May 20, 2017, 12:55 p.m. OK Delphi TESTS 271 31 0 1000
27783919 ruban A June 15, 2017, 12:53 a.m. OK Delphi TESTS 271 31 0 1000
27234874 NemmilenHolnds A May 20, 2017, 12:08 p.m. OK Delphi TESTS 271 312 0 1000
27180992 cptdeka10 A May 17, 2017, 1:50 p.m. OK FPC TESTS 271 15 0 1000
27230922 dambosin A May 20, 2017, 8:04 a.m. OK FPC TESTS 271 15 0 1000
30984114 Charleschenc A Oct. 4, 2017, 5:52 a.m. OK FPC TESTS 271 15 0 1000
30984121 vjudge1 A Oct. 4, 2017, 5:53 a.m. OK FPC TESTS 271 15 0 1000
27159792 Mark17301 A May 16, 2017, 12:53 p.m. OK FPC TESTS 271 15 0 1000
27724718 HungNguyen A June 11, 2017, 5:15 p.m. OK FPC TESTS 271 15 102400 1000
27303950 Krosh A May 23, 2017, 3:08 p.m. OK FPC TESTS 271 15 102400 1000
34889101 Saveliy_2006 A Feb. 3, 2018, 8:57 a.m. OK FPC TESTS 271 15 1638400 1000
33961679 Cristi777 A Jan. 6, 2018, 11:33 a.m. OK FPC TESTS 271 15 1638400 1000
33405713 _Time_Lord_ A Dec. 19, 2017, 11:13 a.m. OK FPC TESTS 271 15 1638400 1000
30797152 Nawmi0897 A Sept. 28, 2017, 7:09 a.m. OK GNU C TESTS 271 15 0 1000
32133320 NoSoul A Nov. 8, 2017, 3:06 a.m. OK GNU C TESTS 271 15 0 1000
32104986 vjudge2 A Nov. 6, 2017, 8:13 p.m. OK GNU C TESTS 271 15 0 1000
27900380 azazel_joker A June 19, 2017, 9 a.m. OK GNU C TESTS 271 15 0 1000
27722384 11101 A June 11, 2017, 2:20 p.m. OK GNU C TESTS 271 15 0 1000
27717522 oliver_ovi A June 11, 2017, 8:29 a.m. OK GNU C TESTS 271 15 0 1000
27682521 django_kil A June 9, 2017, 5:01 a.m. OK GNU C TESTS 271 15 0 1000
27676486 Pistachio_102 A June 8, 2017, 5:43 p.m. OK GNU C TESTS 271 15 0 1000
27675978 nikitachaturvedi A June 8, 2017, 5:03 p.m. OK GNU C TESTS 271 15 0 1000
27603728 swhat A June 6, 2017, 2:55 a.m. OK GNU C TESTS 271 15 0 1000
32287407 vjudge1 A Nov. 13, 2017, 2:53 p.m. OK GNU C++ TESTS 271 15 0 1000
32237526 vjudge3 A Nov. 12, 2017, 7:58 a.m. OK GNU C++ TESTS 271 15 0 1000
32236711 vjudge3 A Nov. 12, 2017, 7:05 a.m. OK GNU C++ TESTS 271 15 0 1000
32236095 vjudge5 A Nov. 12, 2017, 6:31 a.m. OK GNU C++ TESTS 271 15 0 1000
32087284 bestofthresh A Nov. 6, 2017, 4:30 a.m. OK GNU C++ TESTS 271 15 0 1000
30803880 vjudge1 A Sept. 28, 2017, 12:13 p.m. OK GNU C++ TESTS 271 15 0 1000
30802292 vjudge4 A Sept. 28, 2017, 11:13 a.m. OK GNU C++ TESTS 271 15 0 1000
30802046 vjudge1 A Sept. 28, 2017, 11:04 a.m. OK GNU C++ TESTS 271 15 0 1000
30801721 vjudge3 A Sept. 28, 2017, 10:48 a.m. OK GNU C++ TESTS 271 15 0 1000
30801638 vjudge4 A Sept. 28, 2017, 10:45 a.m. OK GNU C++ TESTS 271 15 0 1000
27190066 newbass A May 18, 2017, 4:47 a.m. OK GNU C11 TESTS 271 15 0 1000
27719332 Storm_shadow A June 11, 2017, 10:36 a.m. OK GNU C11 TESTS 271 15 0 1000
27715960 vjudge1 A June 11, 2017, 6:26 a.m. OK GNU C11 TESTS 271 15 0 1000
27688888 ashraful16 A June 9, 2017, 12:26 p.m. OK GNU C11 TESTS 271 15 0 1000
27458660 vjudge2 A May 31, 2017, 3:39 a.m. OK GNU C11 TESTS 271 15 0 1000
27421827 vjudge1 A May 29, 2017, 1:49 a.m. OK GNU C11 TESTS 271 15 0 1000
27360858 thorin22 A May 26, 2017, 5:21 p.m. OK GNU C11 TESTS 271 15 0 1000
27356439 FromSaffronCity A May 26, 2017, 1:30 p.m. OK GNU C11 TESTS 271 15 0 1000
27233465 Ankitv17 A May 20, 2017, 10:19 a.m. OK GNU C11 TESTS 271 15 0 1000
27232558 sakif_khan A May 20, 2017, 9:30 a.m. OK GNU C11 TESTS 271 15 0 1000
29984416 NGUYEN_THANH_LOI A Sept. 1, 2017, 2:41 p.m. OK GNU C++11 TESTS 271 15 0 1000
32132820 YSChengzi A Nov. 8, 2017, 1:21 a.m. OK GNU C++11 TESTS 271 15 0 1000
32042051 VinayakaB A Nov. 4, 2017, 4:20 a.m. OK GNU C++11 TESTS 271 15 0 1000
30986626 vjudge1 A Oct. 4, 2017, 8:04 a.m. OK GNU C++11 TESTS 271 15 0 1000
30980160 xavier A Oct. 3, 2017, 11:49 p.m. OK GNU C++11 TESTS 271 15 0 1000
30663362 aditya07agrawal A Sept. 24, 2017, 10:55 a.m. OK GNU C++11 TESTS 271 15 0 1000
30291033 bill_kondo A Sept. 12, 2017, 4:24 p.m. OK GNU C++11 TESTS 271 15 0 1000
27922212 ominikfistric A June 20, 2017, 10:04 a.m. OK GNU C++11 TESTS 271 15 0 1000
27918275 786 A June 20, 2017, 6:12 a.m. OK GNU C++11 TESTS 271 15 0 1000
27918221 124 A June 20, 2017, 6:08 a.m. OK GNU C++11 TESTS 271 15 0 1000
30948044 LaoShi A Oct. 2, 2017, 4:20 p.m. OK GNU C++14 TESTS 271 15 0 1000
30976222 Gkonstanting98 A Oct. 3, 2017, 6:53 p.m. OK GNU C++14 TESTS 271 15 0 1000
30980068 Mjgonzales A Oct. 3, 2017, 11:34 p.m. OK GNU C++14 TESTS 271 15 0 1000
31214990 Cr0wley unknown_one A Oct. 11, 2017, 11:46 a.m. OK GNU C++14 TESTS 271 15 0 1000
31252402 thomas0131 A Oct. 12, 2017, 3:41 p.m. OK GNU C++14 TESTS 271 15 0 1000
31263307 GStnt A Oct. 13, 2017, 1:55 a.m. OK GNU C++14 TESTS 271 15 0 1000
31727214 Abdulbosit.Abdullo A Oct. 26, 2017, 2:53 a.m. OK GNU C++14 TESTS 271 15 0 1000
32040444 PengsenMao A Nov. 4, 2017, 2:10 a.m. OK GNU C++14 TESTS 271 15 0 1000
32489487 yongwhan A Nov. 20, 2017, 5:01 a.m. OK GNU C++14 TESTS 271 15 0 1000
32537089 Peregrine_Falcon A Nov. 21, 2017, 10:33 p.m. OK GNU C++14 TESTS 271 15 0 1000
69925791 MrSKJ A Jan. 31, 2020, 8:18 p.m. OK GNU C++17 TESTS 271 31 0 1000
69923563 demoralizer A Jan. 31, 2020, 7:20 p.m. OK GNU C++17 TESTS 271 31 0 1000
69634917 samirul7 A Jan. 27, 2020, 6:15 p.m. OK GNU C++17 TESTS 271 31 0 1000
69594868 vjudge1 A Jan. 27, 2020, 3:52 a.m. OK GNU C++17 TESTS 271 31 0 1000
69563440 HyperBeast A Jan. 26, 2020, 11:30 a.m. OK GNU C++17 TESTS 271 31 0 1000
69001658 Maruf089 A Jan. 17, 2020, 7:55 p.m. OK GNU C++17 TESTS 271 31 0 1000
68849149 oliver_s A Jan. 15, 2020, 8:21 a.m. OK GNU C++17 TESTS 271 31 0 1000
68714056 M.Alijon A Jan. 13, 2020, 1:53 p.m. OK GNU C++17 TESTS 271 31 0 1000
68649513 karthikeysaxena A Jan. 12, 2020, 10:16 a.m. OK GNU C++17 TESTS 271 31 0 1000
68136813 tsutaj1458 A Jan. 3, 2020, 7:21 p.m. OK GNU C++17 TESTS 271 31 0 1000
27410602 Edvard A May 28, 2017, 11:13 a.m. OK Go TESTS 271 15 18124800 1000
27171382 adonis A May 17, 2017, 3:16 a.m. OK Go TESTS 271 15 18124800 1000
30583391 Edvard A Sept. 21, 2017, 3:17 p.m. OK Go TESTS 271 31 102400 1000
27181297 sl0th A May 17, 2017, 2:05 p.m. OK Haskell TESTS 271 15 0 1000
27171649 stczhc A May 17, 2017, 3:47 a.m. OK Haskell TESTS 271 15 0 1000
29485115 GabrielSiq A Aug. 15, 2017, 3:33 p.m. OK Haskell TESTS 271 15 53248000 1000
46700372 jedikni A Dec. 7, 2018, 1:19 a.m. OK Haskell TESTS 271 31 8499200 1000
69056030 ankyy_0103 A Jan. 18, 2020, 2:31 p.m. OK Java 11 TESTS 271 218 0 1000
68138923 OBEY A Jan. 3, 2020, 8:33 p.m. OK Java 11 TESTS 271 249 102400 1000
27471106 Hoda_Hisham A May 31, 2017, 4:30 p.m. OK Java 8 TESTS 271 109 0 1000
31855366 raviraj3990 ratn41 A Oct. 29, 2017, 4:08 a.m. OK Java 8 TESTS 271 109 0 1000
30228119 Bibhuti A Sept. 9, 2017, 2:38 p.m. OK Java 8 TESTS 271 109 0 1000
27819690 Trasier A June 16, 2017, 7:49 a.m. OK Java 8 TESTS 271 109 0 1000
27691606 Tiagocv A June 9, 2017, 3 p.m. OK Java 8 TESTS 271 109 0 1000
27471464 K.Mostafa A May 31, 2017, 4:53 p.m. OK Java 8 TESTS 271 109 0 1000
27471027 K.Mostafa A May 31, 2017, 4:25 p.m. OK Java 8 TESTS 271 109 0 1000
27413092 wessam611 A May 28, 2017, 12:41 p.m. OK Java 8 TESTS 271 109 0 1000
27406604 Killer45 A May 28, 2017, 9:13 a.m. OK Java 8 TESTS 271 109 0 1000
27397517 mishagam A May 27, 2017, 9:50 p.m. OK Java 8 TESTS 271 109 0 1000
27177097 Yanchang A May 17, 2017, 10:30 a.m. OK JavaScript TESTS 271 31 1024000 1000
28005905 Ahmed_Morsy A June 24, 2017, 1:15 p.m. OK JavaScript TESTS 271 31 5939200 1000
27438587 ricejars A May 30, 2017, 2:33 a.m. OK Kotlin TESTS 271 124 0 1000
27220590 chengyihe.kotlin A May 19, 2017, 6:50 p.m. OK Kotlin TESTS 271 124 0 1000
27356120 mohamed-yasser A May 26, 2017, 1:08 p.m. OK Kotlin TESTS 271 139 0 1000
54787880 meme_lord A May 29, 2019, 5:22 a.m. OK Kotlin TESTS 271 140 0 1000
27220571 chengyihe.kotlin A May 19, 2017, 6:49 p.m. OK Kotlin TESTS 271 140 0 1000
27363917 lusine.petrosyan1 A May 26, 2017, 9:11 p.m. OK Mono C# TESTS 271 46 102400 1000
27758881 Xtreemist A June 13, 2017, 4:05 p.m. OK Mono C# TESTS 271 46 102400 1000
64792588 boookva A Nov. 13, 2019, 11:46 a.m. OK Mono C# TESTS 271 62 0 1000
27237131 Sorryforpartyrocking A May 20, 2017, 3:54 p.m. OK Mono C# TESTS 271 62 102400 1000
27227615 PortalGreed A May 20, 2017, 4:03 a.m. OK Mono C# TESTS 271 62 2457600 1000
51091037 nemars A March 9, 2019, 2:19 p.m. OK Mono C# TESTS 271 77 3584000 1000
27545971 Probil_Sokar A June 3, 2017, 1:37 p.m. OK MS C# TESTS 271 46 102400 1000
27182132 og.kostya A May 17, 2017, 2:50 p.m. OK MS C# TESTS 271 46 102400 1000
28371055 laham A July 8, 2017, 2:16 p.m. OK MS C# TESTS 271 46 9318400 1000
27295864 amalkahlout A May 23, 2017, 7:11 a.m. OK MS C# TESTS 271 61 0 1000
27348521 Sipher A May 26, 2017, 4:38 a.m. OK MS C# TESTS 271 62 0 1000
27290089 zazak A May 22, 2017, 7:13 p.m. OK MS C# TESTS 271 62 0 1000
32278053 Skndr A Nov. 13, 2017, 6:45 a.m. OK MS C# TESTS 271 62 102400 1000
27361874 serrg A May 26, 2017, 6:25 p.m. OK MS C# TESTS 271 62 102400 1000
27323204 flatline A May 24, 2017, 4:13 p.m. OK MS C# TESTS 271 62 102400 1000
27198276 Samyrai A May 18, 2017, 2:04 p.m. OK MS C# TESTS 271 62 102400 1000
27285065 vjudge2 A May 22, 2017, 1:32 p.m. OK MS C++ TESTS 271 15 102400 1000
27219318 gerind A May 19, 2017, 5:22 p.m. OK MS C++ TESTS 271 15 102400 1000
27218197 hms1523 A May 19, 2017, 4:08 p.m. OK MS C++ TESTS 271 15 102400 1000
27217707 vjudge2 A May 19, 2017, 3:39 p.m. OK MS C++ TESTS 271 15 102400 1000
27295305 vjudge5 A May 23, 2017, 6:30 a.m. OK MS C++ TESTS 271 15 102400 1000
27303783 denis_duzh A May 23, 2017, 2:59 p.m. OK MS C++ TESTS 271 15 102400 1000
27508798 mouse_wireless A June 1, 2017, 6:57 p.m. OK MS C++ TESTS 271 15 102400 1000
27563613 a19160293 A June 4, 2017, 12:09 p.m. OK MS C++ TESTS 271 15 102400 1000
27574653 codeboy123 A June 5, 2017, 3:14 a.m. OK MS C++ TESTS 271 15 102400 1000
29551785 daniil.maltsev.md A Aug. 18, 2017, 10:58 a.m. OK MS C++ TESTS 271 15 102400 1000
57579366 TianJianXing A July 23, 2019, 8:18 a.m. OK MS C++ 2017 TESTS 271 31 0 1000
63549372 KATAYPEPE A Oct. 27, 2019, 11:18 a.m. OK MS C++ 2017 TESTS 271 31 307200 1000
57578870 TianZuiXing A July 23, 2019, 8:08 a.m. OK MS C++ 2017 TESTS 271 46 0 1000
57578260 TianPingXing A July 23, 2019, 7:54 a.m. OK MS C++ 2017 TESTS 271 46 0 1000
69404268 vjudge3 A Jan. 23, 2020, 10:15 a.m. OK MS C++ 2017 TESTS 271 46 0 1000
62564553 edwinho15 A Oct. 14, 2019, 12:54 p.m. OK MS C++ 2017 TESTS 271 46 0 1000
58681534 Moen1578 A Aug. 12, 2019, 7:14 p.m. OK MS C++ 2017 TESTS 271 46 0 1000
57592989 TianSunXing A July 23, 2019, 12:54 p.m. OK MS C++ 2017 TESTS 271 46 0 1000
58428324 FumeiYaziwa A Aug. 7, 2019, 10:45 a.m. OK MS C++ 2017 TESTS 271 46 0 1000
57579284 TianZuiXing A July 23, 2019, 8:17 a.m. OK MS C++ 2017 TESTS 271 46 0 1000
27338513 andreamaf A May 25, 2017, 2:16 p.m. OK PyPy 2 TESTS 271 77 0 1000
27323382 okcd00 A May 24, 2017, 4:27 p.m. OK PyPy 2 TESTS 271 77 0 1000
27305656 ManikantanV A May 23, 2017, 4:54 p.m. OK PyPy 2 TESTS 271 77 0 1000
27220914 Yash_ A May 19, 2017, 7:12 p.m. OK PyPy 2 TESTS 271 77 0 1000
27150328 attiw A May 16, 2017, 5:08 a.m. OK PyPy 2 TESTS 271 77 0 1000
59679452 Jonte_98 A Aug. 29, 2019, 7:46 p.m. OK PyPy 2 TESTS 271 124 0 1000
48280124 vjudge4 A Jan. 12, 2019, 7:36 a.m. OK PyPy 2 TESTS 271 139 0 1000
40653237 aeternalis1 A July 23, 2018, 1:32 a.m. OK PyPy 2 TESTS 271 139 0 1000
35176560 zeroma64 A Feb. 12, 2018, 11:47 a.m. OK PyPy 3 TESTS 271 78 19968000 1000
27263282 Quantuum A May 21, 2017, 9:11 a.m. OK PyPy 3 TESTS 271 93 0 1000
27585011 TheProgrammer256 A June 5, 2017, 2:38 p.m. OK PyPy 3 TESTS 271 109 0 1000
67634990 cherish_lin A Dec. 26, 2019, 6:25 a.m. OK PyPy 3 TESTS 271 140 0 1000
65695656 shiv1470 A Nov. 25, 2019, 7:58 a.m. OK PyPy 3 TESTS 271 140 0 1000
58865838 zahra.kh A Aug. 15, 2019, 1:20 p.m. OK PyPy 3 TESTS 271 140 0 1000
54238945 sonhuytranpython2 A May 16, 2019, 12:04 p.m. OK PyPy 3 TESTS 271 140 0 1000
45994677 AbduSharif A Nov. 20, 2018, 11:47 a.m. OK PyPy 3 TESTS 271 140 0 1000
68072594 auouo A Jan. 2, 2020, 11:02 a.m. OK PyPy 3 TESTS 271 155 0 1000
57264967 essi A July 18, 2019, 6:47 a.m. OK PyPy 3 TESTS 271 155 0 1000
27581505 screamer1 A June 5, 2017, 11:13 a.m. OK Python 2 TESTS 271 61 0 1000
27349545 RAUF00N A May 26, 2017, 6:13 a.m. OK Python 2 TESTS 271 61 0 1000
27157593 WalterKovacs A May 16, 2017, 11:13 a.m. OK Python 2 TESTS 271 61 0 1000
28320199 Temirulan A July 6, 2017, 8:01 a.m. OK Python 2 TESTS 271 61 4710400 1000
27988208 rav.gupta A June 23, 2017, 3:39 p.m. OK Python 2 TESTS 271 61 4710400 1000
27944797 FatherofBenoni A June 21, 2017, 11:40 a.m. OK Python 2 TESTS 271 61 4710400 1000
29996987 isgulkov A Sept. 1, 2017, 8:32 p.m. OK Python 2 TESTS 271 62 0 1000
27897135 franckmy A June 19, 2017, 6:27 a.m. OK Python 2 TESTS 271 62 0 1000
27580239 kapien91 A June 5, 2017, 10:08 a.m. OK Python 2 TESTS 271 62 0 1000
27580116 vhnvn A June 5, 2017, 10:02 a.m. OK Python 2 TESTS 271 62 0 1000
32332827 aliham A Nov. 15, 2017, 1:20 p.m. OK Python 3 TESTS 271 62 0 1000
29553337 ____________________- A Aug. 18, 2017, 12:39 p.m. OK Python 3 TESTS 271 62 0 1000
29552530 Abdelrahman_Radwan A Aug. 18, 2017, 11:45 a.m. OK Python 3 TESTS 271 62 0 1000
27918994 madn A June 20, 2017, 7:01 a.m. OK Python 3 TESTS 271 62 0 1000
27793621 polinapolina A June 15, 2017, 12:41 p.m. OK Python 3 TESTS 271 62 0 1000
27791116 Alina_Drofa A June 15, 2017, 10:11 a.m. OK Python 3 TESTS 271 62 0 1000
27728414 T1duS A June 11, 2017, 11:12 p.m. OK Python 3 TESTS 271 62 0 1000
27703106 Glebanya99 A June 10, 2017, 9:08 a.m. OK Python 3 TESTS 271 62 0 1000
27659576 AlexandrM A June 7, 2017, 10:28 p.m. OK Python 3 TESTS 271 62 0 1000
27623472 dhipta_78 A June 7, 2017, 1:05 a.m. OK Python 3 TESTS 271 62 0 1000
27191901 cielavenir A May 18, 2017, 7:21 a.m. OK Ruby TESTS 271 77 0 1000
27191937 cielavenir A May 18, 2017, 7:25 a.m. OK Ruby TESTS 271 77 102400 1000
27171479 mai A May 17, 2017, 3:27 a.m. OK Ruby TESTS 271 77 204800 1000
27205591 sunhong A May 18, 2017, 11:38 p.m. OK Ruby TESTS 271 109 204800 1000
27302852 Pulkit07 A May 23, 2017, 2:04 p.m. OK Rust TESTS 271 31 0 1000

remove filters

Back to search problems