Grakn Forces 2020

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
1408 Grakn Forces 2020 FINISHED False 9900 130346699 Sept. 30, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4346 ) D Searchlights PROGRAMMING binary search brute force data structures dp geometry implementation sortings

B"There are n robbers at coordinates (a_1, b_1) , (a_2, b_2) , ..., (a_n, b_n) and m searchlight at coordinates (c_1, d_1) , (c_2, d_2) , ..., (c_m, d_m) . In one move you can move each robber to the right (increase a_i of each robber by one) or move each robber up (increase b_i of each robber by one). Note that you should either increase all a_i or all b_i , you can't increase a_i for some points and b_i for some other points. Searchlight j can see a robber i if a_i <= q c_j and b_i <= q d_j . A configuration of robbers is safe if no searchlight can see a robber (i.e. if there is no pair i,j such that searchlight j can see a robber i ). What is the minimum number of moves you need to perform to reach a safe configuration? The first line of input contains two integers n and m ( 1 <= q n, m <= q 2000 ): the number of robbers and the number of searchlight. Each of the next n lines contains two integers a_i , b_i ( 0 <= q a_i, b_i <= q 10^6 ), coordinates of robbers. Each of the next m lines contains two integers c_i , d_i ( 0 <= q c_i, d_i <= q 10^6 ), coordinates of searchlights. Print one integer: the minimum number of moves you need to perform to reach a safe configuration. In the first test, you can move each robber to the right three times. After that there will be one robber in the coordinates (3, 0) . The configuration of the robbers is safe, because the only searchlight can't see the robber, because it is in the coordinates (2, 3) and 3 > 2 . In the second test, you can move each robber to the right two times and two times up. After that robbers will be in the coordinates (3, 8) , (8, 3) . It's easy the see that the configuration of the robbers is safe. It can be proved that you can't reach a safe configuration using no more than 3 moves. "...

Tutorials

Grakn Forces -- Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
94336710 leukocyte D Sept. 30, 2020, 4:29 p.m. OK GNU C++11 TESTS 25 31 0
94339574 hrazvan D Sept. 30, 2020, 4:43 p.m. OK GNU C++11 TESTS 25 31 204800
94335251 YerzhanU D Sept. 30, 2020, 4:22 p.m. OK GNU C++11 TESTS 25 31 1126400
94363047 kkktl01 D Sept. 30, 2020, 11:04 p.m. OK GNU C++11 TESTS 28 31 3891200
94339812 hugo4CF D Sept. 30, 2020, 4:45 p.m. OK GNU C++11 TESTS 25 31 3993600
94335270 AlexBurkov D Sept. 30, 2020, 4:22 p.m. OK GNU C++11 TESTS 25 31 3993600
94370372 Juanzhang D Oct. 1, 2020, 3:18 a.m. OK GNU C++11 TESTS 29 31 4096000
94367211 FlyHorse D Oct. 1, 2020, 1:52 a.m. OK GNU C++11 TESTS 28 31 4096000
94377986 luogu_bot4 D Oct. 1, 2020, 5:52 a.m. OK GNU C++11 TESTS 30 31 4096000
94368790 Qiping_yan.cn D Oct. 1, 2020, 2:36 a.m. OK GNU C++11 TESTS 28 31 4096000
94334418 yongjun18 D Sept. 30, 2020, 4:18 p.m. OK GNU C++14 TESTS 25 31 1638400
94344040 sg0071729 D Sept. 30, 2020, 5:08 p.m. OK GNU C++14 TESTS 25 31 1638400
94343238 fpeterfalvi D Sept. 30, 2020, 5:04 p.m. OK GNU C++14 TESTS 25 31 1638400
94345234 ak82 D Sept. 30, 2020, 5:14 p.m. OK GNU C++14 TESTS 25 31 2969600
94363351 nishitsharma0 D Sept. 30, 2020, 11:17 p.m. OK GNU C++14 TESTS 28 31 3993600
94335602 angrybird7090 D Sept. 30, 2020, 4:24 p.m. OK GNU C++14 TESTS 25 31 4096000
94373937 KbMu D Oct. 1, 2020, 4:42 a.m. OK GNU C++14 TESTS 30 31 4096000
94363205 IngaleAnkur10 D Sept. 30, 2020, 11:11 p.m. OK GNU C++14 TESTS 28 31 4096000
94362176 _shango_ D Sept. 30, 2020, 10:21 p.m. OK GNU C++14 TESTS 28 31 4096000
94344278 vishalbabani28 D Sept. 30, 2020, 5:09 p.m. OK GNU C++14 TESTS 25 31 4096000
94334718 WNG D Sept. 30, 2020, 4:19 p.m. OK GNU C++17 TESTS 25 31 204800
94342330 Anji D Sept. 30, 2020, 4:59 p.m. OK GNU C++17 TESTS 25 31 1638400
94336956 Uagu D Sept. 30, 2020, 4:31 p.m. OK GNU C++17 TESTS 25 31 1638400
94348690 ShlokG D Sept. 30, 2020, 5:51 p.m. OK GNU C++17 TESTS 25 31 1638400
94347935 codericpc D Sept. 30, 2020, 5:46 p.m. OK GNU C++17 TESTS 25 31 1638400
94343051 goldfish7 D Sept. 30, 2020, 5:02 p.m. OK GNU C++17 TESTS 25 31 1638400
94342494 Maxymilian D Sept. 30, 2020, 5 p.m. OK GNU C++17 TESTS 25 31 1638400
94331677 MyK_00L D Sept. 30, 2020, 4:05 p.m. OK GNU C++17 TESTS 25 31 2457600
94335052 tobias.glimmerfors D Sept. 30, 2020, 4:21 p.m. OK GNU C++17 TESTS 25 31 2662400
94331232 knon0501 D Sept. 30, 2020, 4:03 p.m. OK GNU C++17 TESTS 25 31 2662400
94331525 Byobe D Sept. 30, 2020, 4:04 p.m. OK GNU C++17 (64) TESTS 25 30 2150400
94366213 Frame233 D Oct. 1, 2020, 1:22 a.m. OK GNU C++17 (64) TESTS 28 30 4096000
94344176 june_waves D Sept. 30, 2020, 5:09 p.m. OK GNU C++17 (64) TESTS 25 30 4096000
94335364 Oxygen. D Sept. 30, 2020, 4:23 p.m. OK GNU C++17 (64) TESTS 25 31 2048000
94335765 lior5654 D Sept. 30, 2020, 4:25 p.m. OK GNU C++17 (64) TESTS 25 31 2150400
94336118 ycx_girlfriend D Sept. 30, 2020, 4:26 p.m. OK GNU C++17 (64) TESTS 25 31 2150400
94348257 totori0908 D Sept. 30, 2020, 5:48 p.m. OK GNU C++17 (64) TESTS 25 31 2457600
94334186 satanic0 D Sept. 30, 2020, 4:17 p.m. OK GNU C++17 (64) TESTS 25 31 3276800
94332229 ScarletS D Sept. 30, 2020, 4:08 p.m. OK GNU C++17 (64) TESTS 25 31 3993600
94365976 Geothermal D Oct. 1, 2020, 1:12 a.m. OK GNU C++17 (64) TESTS 28 31 3993600
94355451 takezawa D Sept. 30, 2020, 7:24 p.m. OK Go TESTS 28 109 8499200
94364743 pili D Oct. 1, 2020, 12:23 a.m. OK Java 11 TESTS 28 186 0
94352750 sam_code D Sept. 30, 2020, 6:39 p.m. OK Java 11 TESTS 28 186 0
94351105 bobib D Sept. 30, 2020, 6:17 p.m. OK Java 11 TESTS 27 187 0
94354036 Jevin D Sept. 30, 2020, 6:59 p.m. OK Java 11 TESTS 28 202 0
94348379 Ahmad D Sept. 30, 2020, 5:49 p.m. OK Java 11 TESTS 25 202 0
94336255 slow_AF D Sept. 30, 2020, 4:27 p.m. OK Java 11 TESTS 25 202 0
94352657 adityakaushik99 D Sept. 30, 2020, 6:38 p.m. OK Java 11 TESTS 27 202 11161600
94359742 jaynils D Sept. 30, 2020, 8:56 p.m. OK Java 11 TESTS 28 233 0
94355984 Agnimandur D Sept. 30, 2020, 7:34 p.m. OK Java 11 TESTS 28 233 0
94356283 habibulka D Sept. 30, 2020, 7:40 p.m. OK Java 11 TESTS 28 233 4505600
94369233 pulkit14 D Oct. 1, 2020, 2:48 a.m. OK Java 8 TESTS 28 124 0
94361572 YahiaSherif D Sept. 30, 2020, 9:56 p.m. OK Java 8 TESTS 28 140 0
94352694 ijxjdjd D Sept. 30, 2020, 6:38 p.m. OK Java 8 TESTS 28 140 2457600
94362975 NatInTheHat D Sept. 30, 2020, 11 p.m. OK Java 8 TESTS 28 155 0
94331340 procrastinate7 D Sept. 30, 2020, 4:03 p.m. OK Java 8 TESTS 25 171 0
94334351 cwise D Sept. 30, 2020, 4:18 p.m. OK Java 8 TESTS 25 186 0
94362428 Ahmed_Hosssam D Sept. 30, 2020, 10:33 p.m. OK Java 8 TESTS 28 186 6553600
94344620 Xylenox D Sept. 30, 2020, 5:11 p.m. OK Java 8 TESTS 25 202 0
94335759 MagentaCobra D Sept. 30, 2020, 4:25 p.m. OK Java 8 TESTS 25 265 15462400
94344888 polyakoff D Sept. 30, 2020, 5:12 p.m. OK Java 8 TESTS 25 327 42803200
94354307 elizarov D Sept. 30, 2020, 7:04 p.m. OK Kotlin TESTS 28 233 2048000
94333313 Musin D Sept. 30, 2020, 4:13 p.m. OK Kotlin TESTS 25 249 18329600
94337980 r57shell D Sept. 30, 2020, 4:36 p.m. OK MS C++ TESTS 25 93 102400
94346359 vitruvius D Sept. 30, 2020, 5:18 p.m. OK MS C++ 2017 TESTS 25 31 0
94332432 shirowa D Sept. 30, 2020, 4:09 p.m. OK MS C++ 2017 TESTS 25 31 4096000
94332166 baep_j D Sept. 30, 2020, 4:07 p.m. OK MS C++ 2017 TESTS 25 46 3276800
94360802 xsc D Sept. 30, 2020, 9:28 p.m. OK MS C++ 2017 TESTS 28 46 3993600
94374293 Stevewy D Oct. 1, 2020, 4:49 a.m. OK MS C++ 2017 TESTS 30 46 4096000
94338402 GagO_O D Sept. 30, 2020, 4:38 p.m. OK MS C++ 2017 TESTS 25 327 40550400
94336051 mlihua09 D Sept. 30, 2020, 4:26 p.m. OK MS C++ 2017 TESTS 25 436 32051200
94331086 ialakhtin D Sept. 30, 2020, 4:02 p.m. OK MS C++ 2017 TESTS 25 779 107110400
94348662 AnnSuperstar D Sept. 30, 2020, 5:51 p.m. OK MS C++ 2017 TESTS 25 936 1536000
94336863 terry_u16 D Sept. 30, 2020, 4:30 p.m. OK .NET Core C# TESTS 25 311 6758400
94336803 mban259 D Sept. 30, 2020, 4:30 p.m. OK .NET Core C# TESTS 25 405 9523200
94366401 ngoc.ks D Oct. 1, 2020, 1:28 a.m. OK Node.js TESTS 28 280 5734400
94339709 Hitikkumar D Sept. 30, 2020, 4:44 p.m. OK PyPy 2 TESTS 25 280 12902400
94370103 realnimish D Oct. 1, 2020, 3:11 a.m. OK PyPy 2 TESTS 29 311 7475200
94358859 alexwice D Sept. 30, 2020, 8:34 p.m. OK PyPy 2 TESTS 28 389 7475200
94362837 Hitikkumar D Sept. 30, 2020, 10:52 p.m. OK PyPy 2 TESTS 28 421 12902400
94342142 mkawa2 D Sept. 30, 2020, 4:58 p.m. OK PyPy 3 TESTS 25 187 72704000
94349743 sh1194 D Sept. 30, 2020, 6:01 p.m. OK PyPy 3 TESTS 26 202 6860800
94341552 SPD_9X2 D Sept. 30, 2020, 4:54 p.m. OK PyPy 3 TESTS 25 217 7065600
94336095 nagiss D Sept. 30, 2020, 4:26 p.m. OK PyPy 3 TESTS 25 264 14950400
94349922 sh1194 D Sept. 30, 2020, 6:03 p.m. OK PyPy 3 TESTS 26 280 8499200
94354093 throwawayatcoder D Sept. 30, 2020, 7 p.m. OK PyPy 3 TESTS 28 280 12697600
94361962 i8nd5t D Sept. 30, 2020, 10:13 p.m. OK PyPy 3 TESTS 28 295 7475200
94355905 ndb1996 D Sept. 30, 2020, 7:33 p.m. OK PyPy 3 TESTS 28 296 8294400
94350033 sh1194 D Sept. 30, 2020, 6:04 p.m. OK PyPy 3 TESTS 26 296 8396800
94357728 nehan_der_thal D Sept. 30, 2020, 8:08 p.m. OK PyPy 3 TESTS 28 311 8499200
94332264 cotton100pc D Sept. 30, 2020, 4:08 p.m. OK Rust TESTS 25 62 8396800

remove filters

Back to search problems