Hello 2019

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
1097 Hello 2019 FINISHED False 10800 190912524 Jan. 4, 2019, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 30097 ) B Petr and a Combination Lock PROGRAMMING bitmasks brute force dp 1200

B'Petr has just bought a new car. He 's just arrived at the most known Petersburg 's petrol station to refuel it when he suddenly discovered that the petrol tank is secured with a combination lock! The lock has a scale of 360 degrees and a pointer which initially points at zero: Petr called his car dealer, who instructed him to rotate the lock 's wheel exactly n times. The i -th rotation should be a_i degrees, either clockwise or counterclockwise, and after all n rotations the pointer should again point at zero. This confused Petr a little bit as he isn 't sure which rotations should be done clockwise and which should be done counterclockwise. As there are many possible ways of rotating the lock, help him and find out whether there exists at least one, such that after all n rotations the pointer will point at zero again. The first line contains one integer n ( 1 <= q n <= q 15 ) -- the number of rotations. Each of the following n lines contains one integer a_i ( 1 <= q a_i <= q 180 ) -- the angle of the i -th rotation in degrees. If it is possible to do all the rotations so that the pointer will point at zero after all of them are performed, print a single word "YES". Otherwise, print "NO". Petr will probably buy a new car in this case. You can print each letter in any case (upper or lower). In the first example, we can achieve our goal by applying the first and the second rotation clockwise, and performing the third rotation counterclockwise. In the second example, it 's impossible to perform the rotations in order to make the pointer point at zero in the end. In the third example, Petr can do all three rotations clockwise. In this case, the whole wheel will be rotated by 360 degrees clockwise and the pointer will point at zero again. '...

Tutorials

64310

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
48478582 vjudge4 B Jan. 17, 2019, 4:44 a.m. OK Clang++17 Diagnostics TESTS 46 46 0 1200
50082227 vjudge5 B Feb. 18, 2019, 5:10 a.m. OK Clang++17 Diagnostics TESTS 46 46 0 1200
59382965 binarycode B Aug. 24, 2019, 4:39 a.m. OK Clang++17 Diagnostics TESTS 46 46 0 1200
50210389 vjudge4 B Feb. 19, 2019, 10:42 p.m. OK Clang++17 Diagnostics TESTS 46 46 0 1200
50214606 vjudge5 B Feb. 20, 2019, 3:25 a.m. OK Clang++17 Diagnostics TESTS 46 46 0 1200
50270880 vjudge5 B Feb. 21, 2019, 7:12 a.m. OK Clang++17 Diagnostics TESTS 46 46 0 1200
55107824 yoga_169 B June 5, 2019, 4:20 a.m. OK Clang++17 Diagnostics TESTS 46 46 0 1200
50896541 MyFamousBadTrip B March 6, 2019, 3:20 p.m. OK Delphi TESTS 46 46 102400 1200
58074659 naranja011223 B July 31, 2019, 11:57 a.m. OK FPC TESTS 46 31 0 1200
58565135 Craspedacusta B Aug. 11, 2019, 7:35 a.m. OK FPC TESTS 46 31 0 1200
49760717 bin9638 B Feb. 11, 2019, 8:49 a.m. OK FPC TESTS 46 31 0 1200
48317632 TranKha B Jan. 13, 2019, 7:27 a.m. OK FPC TESTS 46 31 0 1200
48072459 hoangmaicongdat2001 B Jan. 8, 2019, 2:08 a.m. OK FPC TESTS 46 31 0 1200
48063822 phanson03vt B Jan. 7, 2019, 4:55 p.m. OK FPC TESTS 46 31 0 1200
48055183 Kecapgiacmo B Jan. 7, 2019, 11:53 a.m. OK FPC TESTS 46 31 0 1200
48016755 tonip1z B Jan. 5, 2019, 11:59 p.m. OK FPC TESTS 46 31 0 1200
47970821 seqera12 B Jan. 5, 2019, 2:36 p.m. OK FPC TESTS 46 31 0 1200
47934011 Ahriman B Jan. 4, 2019, 4:26 p.m. OK FPC TESTS 46 31 0 1200
47939147 fengzlj B Jan. 4, 2019, 5:06 p.m. OK GNU C11 TESTS 46 30 0 1200
54453150 akash19jain B May 21, 2019, 2:32 p.m. OK GNU C11 TESTS 46 30 0 1200
47939343 psychic_hypno B Jan. 4, 2019, 5:08 p.m. OK GNU C11 TESTS 46 30 409600 1200
56770228 alwaysF B July 9, 2019, 9:04 p.m. OK GNU C11 TESTS 46 31 0 1200
58901826 evgeneyzim B Aug. 16, 2019, 9:29 a.m. OK GNU C11 TESTS 46 31 0 1200
58928186 naro_ttam B Aug. 16, 2019, 9:05 p.m. OK GNU C11 TESTS 46 31 0 1200
60509865 BugLeave B Sept. 14, 2019, 1:51 a.m. OK GNU C11 TESTS 46 31 0 1200
63354343 yigezhe B Oct. 25, 2019, 1:08 a.m. OK GNU C11 TESTS 46 31 0 1200
68632260 hhhzb B Jan. 12, 2020, 3:40 a.m. OK GNU C11 TESTS 46 31 0 1200
68963313 4w1il B Jan. 17, 2020, 3:01 a.m. OK GNU C11 TESTS 46 31 0 1200
51561918 vjudge3 B March 20, 2019, 8:16 a.m. OK GNU C++11 TESTS 46 15 0 1200
48654166 da32s1da B Jan. 21, 2019, 1:21 a.m. OK GNU C++11 TESTS 46 30 0 1200
48706877 luogu_bot4 B Jan. 22, 2019, 6:24 a.m. OK GNU C++11 TESTS 46 30 0 1200
48775338 luogu_bot5 B Jan. 23, 2019, 3:33 a.m. OK GNU C++11 TESTS 46 30 0 1200
48863525 vjudge1 B Jan. 24, 2019, 1:13 a.m. OK GNU C++11 TESTS 46 30 0 1200
48596091 vjudge3 B Jan. 20, 2019, 6:16 a.m. OK GNU C++11 TESTS 46 30 0 1200
51330417 vjudge5 B March 15, 2019, 11:55 a.m. OK GNU C++11 TESTS 46 30 0 1200
53122574 isthisagraphquestion B April 22, 2019, 12:09 p.m. OK GNU C++11 TESTS 46 30 0 1200
61988316 28164767TuanAnhND B Oct. 6, 2019, 2:17 p.m. OK GNU C++11 TESTS 46 30 0 1200
50303789 vjudge5 B Feb. 22, 2019, 4:44 a.m. OK GNU C++11 TESTS 46 30 0 1200
55546194 biaoge B June 14, 2019, 2:56 a.m. OK GNU C++14 TESTS 46 15 0 1200
66263083 udaykiran701 B Dec. 4, 2019, 9:14 a.m. OK GNU C++14 TESTS 46 15 0 1200
59827751 vjudge2 B Aug. 31, 2019, 8:26 p.m. OK GNU C++14 TESTS 46 15 0 1200
57003883 vjudge1 B July 14, 2019, 5:32 a.m. OK GNU C++14 TESTS 46 15 0 1200
55725512 AnsHuman_7 B June 18, 2019, 5:30 p.m. OK GNU C++14 TESTS 46 15 0 1200
54730876 ahmocs B May 27, 2019, 11:49 p.m. OK GNU C++14 TESTS 46 15 0 1200
54088582 VTR B May 14, 2019, 9:04 a.m. OK GNU C++14 TESTS 46 15 0 1200
53651650 vjudge4 B May 2, 2019, 1:41 a.m. OK GNU C++14 TESTS 46 15 0 1200
50740325 Bedo_Sayed B March 3, 2019, 3:06 p.m. OK GNU C++14 TESTS 46 15 0 1200
50518216 SillyMonSter B Feb. 26, 2019, 7:55 a.m. OK GNU C++14 TESTS 46 15 0 1200
53830783 lonerunner B May 6, 2019, 7:50 p.m. OK GNU C++17 TESTS 46 15 0 1200
54859940 _dobby_ B May 31, 2019, 12:13 a.m. OK GNU C++17 TESTS 46 15 0 1200
56521993 HappyChau0v0 B July 4, 2019, 3:20 p.m. OK GNU C++17 TESTS 46 15 0 1200
57065319 trungams B July 14, 2019, 8:48 p.m. OK GNU C++17 TESTS 46 15 0 1200
57562597 Ahmed_Allawati B July 23, 2019, 1:36 a.m. OK GNU C++17 TESTS 46 15 0 1200
60057799 N_e_a_R B Sept. 5, 2019, 5:21 a.m. OK GNU C++17 TESTS 46 15 0 1200
61049403 darkxeon B Sept. 22, 2019, 5:55 a.m. OK GNU C++17 TESTS 46 15 0 1200
61247102 onbitsyn B Sept. 25, 2019, 1:32 a.m. OK GNU C++17 TESTS 46 15 0 1200
66260761 sharrad99 B Dec. 4, 2019, 8:17 a.m. OK GNU C++17 TESTS 46 15 0 1200
68582660 vjudge2 B Jan. 11, 2020, 10:28 a.m. OK GNU C++17 TESTS 46 15 0 1200
47950557 davidguandev B Jan. 5, 2019, 12:12 a.m. OK Go TESTS 46 31 0 1200
48034178 chinababka B Jan. 6, 2019, 2:22 p.m. OK Go TESTS 46 46 0 1200
48463260 codemania B Jan. 16, 2019, 3:50 p.m. OK Haskell TESTS 46 15 8499200 1200
48117333 bagel B Jan. 9, 2019, 1:37 p.m. OK Haskell TESTS 46 30 8396800 1200
57807296 jmazon B July 26, 2019, 3:41 p.m. OK Haskell TESTS 46 31 102400 1200
68853711 shamdin B Jan. 15, 2020, 9:55 a.m. OK Java 11 TESTS 46 171 0 1200
68331302 IN_DA_RA B Jan. 6, 2020, 6:56 p.m. OK Java 11 TESTS 46 171 0 1200
69731667 sarthak.0702 B Jan. 29, 2020, 1:40 p.m. OK Java 11 TESTS 46 187 0 1200
68953470 shubh_jha98 B Jan. 16, 2020, 6:57 p.m. OK Java 11 TESTS 46 187 0 1200
68319552 arran B Jan. 6, 2020, 2:26 p.m. OK Java 11 TESTS 46 202 0 1200
68094365 MaxHeap B Jan. 2, 2020, 7:47 p.m. OK Java 11 TESTS 46 202 0 1200
67193353 IllogicalMe B Dec. 19, 2019, 8:01 a.m. OK Java 11 TESTS 46 202 0 1200
69210734 Mahakarma B Jan. 20, 2020, 7:54 p.m. OK Java 8 TESTS 46 109 0 1200
63364498 Azakarka B Oct. 25, 2019, 6:59 a.m. OK Java 8 TESTS 46 109 0 1200
62366793 kostasanemozalis B Oct. 11, 2019, 2:05 p.m. OK Java 8 TESTS 46 109 0 1200
61110432 procrastinate7 B Sept. 23, 2019, 11:03 a.m. OK Java 8 TESTS 46 109 0 1200
60269934 sunnycarlos B Sept. 8, 2019, 3 p.m. OK Java 8 TESTS 46 109 0 1200
58884894 donli B Aug. 16, 2019, 1:27 a.m. OK Java 8 TESTS 46 109 0 1200
58858790 saurabh247 B Aug. 15, 2019, 10:40 a.m. OK Java 8 TESTS 46 109 0 1200
57870244 vvenkai B July 28, 2019, 1:08 a.m. OK Java 8 TESTS 46 109 0 1200
57139720 YahiaMostafa B July 16, 2019, 10:28 a.m. OK Java 8 TESTS 46 109 0 1200
57113987 vjudge5 B July 15, 2019, 6:55 p.m. OK Java 8 TESTS 46 109 0 1200
47945676 Ablay_adil B Jan. 4, 2019, 7:19 p.m. OK JavaScript TESTS 46 62 1536000 1200
47937143 orazbek B Jan. 4, 2019, 4:49 p.m. OK JavaScript TESTS 46 420 24473600 1200
56030848 Spheniscine B June 25, 2019, 9:28 a.m. OK Kotlin TESTS 46 140 0 1200
47930024 z39 B Jan. 4, 2019, 4:02 p.m. OK Kotlin TESTS 46 171 0 1200
47973876 amit1509kumar B Jan. 5, 2019, 4:35 p.m. OK Mono C# TESTS 46 46 0 1200
54000351 og.kostya B May 11, 2019, 4:17 p.m. OK Mono C# TESTS 46 46 0 1200
48100731 n.a.borisov B Jan. 8, 2019, 8:23 p.m. OK Mono C# TESTS 46 46 0 1200
48597360 vjudge2 B Jan. 20, 2019, 6:50 a.m. OK Mono C# TESTS 46 61 0 1200
47949862 Roka B Jan. 4, 2019, 10:59 p.m. OK Mono C# TESTS 46 61 0 1200
52448572 Zedronar B April 7, 2019, 8:50 a.m. OK Mono C# TESTS 46 62 1638400 1200
48942195 nemars B Jan. 25, 2019, 5:07 p.m. OK Mono C# TESTS 46 62 6656000 1200
47931861 omikad B Jan. 4, 2019, 4:12 p.m. OK Mono C# TESTS 46 77 3584000 1200
50155506 treasuryonly B Feb. 19, 2019, 9:47 a.m. OK Mono C# TESTS 46 78 3072000 1200
48537570 Ruslan2003 B Jan. 18, 2019, 3:01 p.m. OK Mono C# TESTS 46 93 3072000 1200
49181178 vjudge2 B Jan. 30, 2019, 1:53 a.m. OK MS C++ TESTS 46 30 0 1200
68344884 vjudge5 B Jan. 7, 2020, 6:37 a.m. OK MS C++ TESTS 46 30 0 1200
48709779 vjudge2 B Jan. 22, 2019, 7:53 a.m. OK MS C++ TESTS 46 30 0 1200
48372145 vjudge4 B Jan. 14, 2019, 5:13 a.m. OK MS C++ TESTS 46 30 0 1200
48595613 vjudge2 B Jan. 20, 2019, 6:03 a.m. OK MS C++ TESTS 46 30 0 1200
48481274 vjudge5 B Jan. 17, 2019, 6:11 a.m. OK MS C++ TESTS 46 30 0 1200
68352897 vjudge5 B Jan. 7, 2020, 10:43 a.m. OK MS C++ TESTS 46 31 0 1200
69941455 vjudge3 B Feb. 1, 2020, 6:17 a.m. OK MS C++ TESTS 46 31 0 1200
68359288 vjudge1 B Jan. 7, 2020, 1:27 p.m. OK MS C++ TESTS 46 31 0 1200
68348038 vjudge5 B Jan. 7, 2020, 8:22 a.m. OK MS C++ TESTS 46 31 0 1200
56275323 IbraheemJanajreh B June 29, 2019, 1:56 p.m. OK MS C++ 2017 TESTS 46 30 0 1200
57917896 Flint B July 29, 2019, 2:42 a.m. OK MS C++ 2017 TESTS 46 30 0 1200
65160713 vjudge5 B Nov. 16, 2019, 11:15 a.m. OK MS C++ 2017 TESTS 46 31 0 1200
65344296 DimaArt B Nov. 19, 2019, 12:04 p.m. OK MS C++ 2017 TESTS 46 31 0 1200
65571149 vjudge5 B Nov. 23, 2019, 7:54 a.m. OK MS C++ 2017 TESTS 46 31 0 1200
65571449 vjudge4 B Nov. 23, 2019, 8 a.m. OK MS C++ 2017 TESTS 46 31 0 1200
67031713 Frederik11 B Dec. 16, 2019, 4:02 p.m. OK MS C++ 2017 TESTS 46 31 0 1200
68066990 KATAYPEPE B Jan. 2, 2020, 8:22 a.m. OK MS C++ 2017 TESTS 46 31 0 1200
64569778 vjudge4 B Nov. 9, 2019, 8:47 a.m. OK MS C++ 2017 TESTS 46 31 0 1200
64662920 MrLolthe1st B Nov. 10, 2019, 10:33 p.m. OK MS C++ 2017 TESTS 46 31 0 1200
69657675 asmkudo B Jan. 28, 2020, 8:09 a.m. OK Node.js TESTS 46 171 4198400 1200
55103292 dchebakov B June 4, 2019, 10:30 p.m. OK Node.js TESTS 46 187 4096000 1200
47945700 sk0 B Jan. 4, 2019, 7:20 p.m. OK Ocaml TESTS 46 30 204800 1200
47947675 ky4eronline B Jan. 4, 2019, 8:32 p.m. OK PascalABC.NET TESTS 46 296 102400 1200
51316683 mm944 B March 15, 2019, 1:17 a.m. OK PascalABC.NET TESTS 46 311 0 1200
48057839 liudmila1 B Jan. 7, 2019, 1:22 p.m. OK PascalABC.NET TESTS 46 326 0 1200
47930821 dan8643 B Jan. 4, 2019, 4:06 p.m. OK PascalABC.NET TESTS 46 327 204800 1200
50896467 MrBootyk B March 6, 2019, 3:18 p.m. OK PascalABC.NET TESTS 46 327 4505600 1200
47946936 mayakin B Jan. 4, 2019, 8:02 p.m. OK PHP TESTS 46 46 3686400 1200
48076866 batyrbek96 B Jan. 8, 2019, 5 a.m. OK PHP TESTS 46 61 0 1200
64615489 egaeus B Nov. 10, 2019, 4:35 a.m. OK PyPy 2 TESTS 46 124 307200 1200
47932861 aniket11 B Jan. 4, 2019, 4:18 p.m. OK PyPy 2 TESTS 46 124 1536000 1200
47962482 ykalchevskiy B Jan. 5, 2019, 10:11 a.m. OK PyPy 2 TESTS 46 139 204800 1200
48095009 soumyasarkar1998 B Jan. 8, 2019, 4:15 p.m. OK PyPy 2 TESTS 46 140 614400 1200
47938368 wartortle B Jan. 4, 2019, 4:59 p.m. OK PyPy 2 TESTS 46 140 1843200 1200
54397238 raj1307 B May 19, 2019, 9:22 p.m. OK PyPy 2 TESTS 46 155 614400 1200
47946607 Aparichit_Vyavasthapak B Jan. 4, 2019, 7:50 p.m. OK PyPy 2 TESTS 46 155 3788800 1200
50647795 gatsko B March 1, 2019, 4:25 p.m. OK PyPy 2 TESTS 46 171 2048000 1200
47954265 gaurav007_ B Jan. 5, 2019, 4:46 a.m. OK PyPy 3 TESTS 46 124 1024000 1200
47953016 congthanh123 B Jan. 5, 2019, 3:25 a.m. OK PyPy 3 TESTS 46 139 102400 1200
47956142 lmm333 B Jan. 5, 2019, 6:16 a.m. OK PyPy 3 TESTS 46 139 1331200 1200
48080303 FadeoN B Jan. 8, 2019, 7:20 a.m. OK PyPy 3 TESTS 46 139 1433600 1200
48044290 homoeconomicus B Jan. 6, 2019, 11:45 p.m. OK PyPy 3 TESTS 46 140 0 1200
55128665 ninjutsoo B June 5, 2019, 2:07 p.m. OK PyPy 3 TESTS 46 140 0 1200
55113542 Aidos B June 5, 2019, 7:34 a.m. OK PyPy 3 TESTS 46 140 0 1200
47934801 polinasam B Jan. 4, 2019, 4:31 p.m. OK PyPy 3 TESTS 46 140 204800 1200
47929756 Siddak B Jan. 4, 2019, 4 p.m. OK PyPy 3 TESTS 46 140 204800 1200
48947546 freemax B Jan. 25, 2019, 8:07 p.m. OK PyPy 3 TESTS 46 140 409600 1200
47947693 eugalt B Jan. 4, 2019, 8:33 p.m. OK Python 2 TESTS 46 171 0 1200
47947538 eugalt B Jan. 4, 2019, 8:26 p.m. OK Python 2 TESTS 46 171 0 1200
47947900 eugalt B Jan. 4, 2019, 8:46 p.m. OK Python 2 TESTS 46 171 716800 1200
47972431 primelee B Jan. 5, 2019, 3:38 p.m. OK Python 2 TESTS 46 186 0 1200
48800476 kaif_7 B Jan. 23, 2019, 2:12 p.m. OK Python 2 TESTS 46 186 819200 1200
48307979 conjecture_xyz B Jan. 12, 2019, 9:25 p.m. OK Python 2 TESTS 46 186 1126400 1200
54858445 jrobsonjr B May 30, 2019, 9:57 p.m. OK Python 2 TESTS 46 187 0 1200
62313337 vjudge3 B Oct. 10, 2019, 2:32 p.m. OK Python 2 TESTS 46 187 0 1200
47974063 Sanj99 B Jan. 5, 2019, 4:38 p.m. OK Python 2 TESTS 46 187 0 1200
47936135 TheFlash B Jan. 4, 2019, 4:41 p.m. OK Python 2 TESTS 46 187 0 1200
53283119 snape_here B April 25, 2019, 12:49 p.m. OK Python 3 TESTS 46 108 0 1200
55505100 Honey_Badger B June 12, 2019, 5:22 p.m. OK Python 3 TESTS 46 108 0 1200
58814332 XAMRMAX B Aug. 14, 2019, 11:59 a.m. OK Python 3 TESTS 46 109 0 1200
58506472 vegetablesandwich B Aug. 9, 2019, 4:41 p.m. OK Python 3 TESTS 46 109 0 1200
53481869 OneMoreLoss B April 28, 2019, 8:54 p.m. OK Python 3 TESTS 46 109 0 1200
52065068 hepatitis B March 31, 2019, 4:48 a.m. OK Python 3 TESTS 46 109 0 1200
52013718 avi13715 B March 30, 2019, 9:38 a.m. OK Python 3 TESTS 46 109 0 1200
50549948 stevegregg B Feb. 27, 2019, 3 a.m. OK Python 3 TESTS 46 109 0 1200
50536804 jeffswt B Feb. 26, 2019, 4:06 p.m. OK Python 3 TESTS 46 109 0 1200
62258289 arnav_jain1006 B Oct. 10, 2019, 11:26 a.m. OK Python 3 TESTS 46 109 0 1200
48370945 corvvs_ B Jan. 14, 2019, 4:14 a.m. OK Ruby TESTS 46 77 0 1200
47962756 cielavenir B Jan. 5, 2019, 10:23 a.m. OK Ruby TESTS 46 140 409600 1200
47949184 brauliobz B Jan. 4, 2019, 9:59 p.m. OK Rust TESTS 46 31 0 1200
47948952 mixator B Jan. 4, 2019, 9:46 p.m. OK Rust TESTS 46 31 0 1200
47968733 qisnotnq B Jan. 5, 2019, 1:27 p.m. OK Rust TESTS 46 31 0 1200
47956691 hr567 B Jan. 5, 2019, 6:41 a.m. OK Rust TESTS 46 46 0 1200
47944560 wh317706 B Jan. 4, 2019, 6:53 p.m. OK Rust TESTS 46 46 0 1200
50660883 nik-in-au B March 1, 2019, 10:59 p.m. OK Scala TESTS 46 420 0 1200

remove filters

Back to search problems