Codeforces Round 788 (Div. 2)

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
1670 Codeforces Round 788 (Div. 2) FINISHED False 7200 79975499 May 6, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5165 ) D Very Suspicious PROGRAMMING binary search brute force geometry implementation math 1700

B'Sehr Sus is an infinite hexagonal grid as pictured below, controlled by MennaFadali, ZerooCool and Hosssam. They love equilateral triangles and want to create n equilateral triangles on the grid by adding some straight lines. The triangles must all be empty from the inside (in other words, no straight line or hexagon edge should pass through any of the triangles). You are allowed to add straight lines parallel to the edges of the hexagons. Given n , what is the minimum number of lines you need to add to create at least n equilateral triangles as described? The first line contains a single integer t ( 1 <= t <= 10^5 ) -- the number of test cases. Then t test cases follow. Each test case contains a single integer n ( 1 <= n <= 10^{9} ) -- the required number of equilateral triangles. For each test case, print the minimum number of lines needed to have n or more equilateral triangles. In the first and second test cases only 2 lines are needed. After adding the first line, no equilateral triangles will be created no matter where it is added. But after adding the second line, two more triangles will be created at once. In the third test case, the minimum needed is 3 lines as shown below. '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
156128250 ruban D May 6, 2022, 6 p.m. OK FPC TESTS 44 311 192204800 1700
156116137 yooyou7 D May 6, 2022, 4:14 p.m. OK GNU C11 TESTS 44 420 204800 1700
156109354 ztfgsxdgyt D May 6, 2022, 3:51 p.m. OK GNU C11 TESTS 44 451 819200 1700
156154600 _jhq D May 7, 2022, 3:32 a.m. OK GNU C++14 TESTS 44 31 2662400 1700
156124325 eE_v_Ee D May 6, 2022, 5:26 p.m. OK GNU C++14 TESTS 44 46 0 1700
156114209 Flower_Yang D May 6, 2022, 4:07 p.m. OK GNU C++14 TESTS 44 46 0 1700
156109243 sd_ltt D May 6, 2022, 3:51 p.m. OK GNU C++14 TESTS 44 46 0 1700
156112411 hzoi55223 D May 6, 2022, 4:01 p.m. OK GNU C++14 TESTS 44 46 102400 1700
156116350 ty_bj_sty D May 6, 2022, 4:15 p.m. OK GNU C++14 TESTS 44 46 204800 1700
156150452 CQYZWJH D May 7, 2022, 2:05 a.m. OK GNU C++14 TESTS 44 46 204800 1700
156118535 pvzelyyds D May 6, 2022, 4:23 p.m. OK GNU C++14 TESTS 44 46 614400 1700
156111537 MoJo. D May 6, 2022, 3:58 p.m. OK GNU C++14 TESTS 44 46 614400 1700
156149120 ekatsim D May 7, 2022, 1:30 a.m. OK GNU C++14 TESTS 44 46 819200 1700
156121069 FREAKY D May 6, 2022, 4:33 p.m. OK GNU C++17 TESTS 44 31 716800 1700
156109220 frostylight D May 6, 2022, 3:51 p.m. OK GNU C++17 TESTS 44 31 2457600 1700
156115812 Neko_lover D May 6, 2022, 4:13 p.m. OK GNU C++17 TESTS 44 46 0 1700
156153920 qwertyyuu D May 7, 2022, 3:19 a.m. OK GNU C++17 TESTS 44 46 0 1700
156137621 Aglaya D May 6, 2022, 8 p.m. OK GNU C++17 TESTS 44 46 0 1700
156124659 Francesco4203 D May 6, 2022, 5:28 p.m. OK GNU C++17 TESTS 44 46 204800 1700
156120706 fauz D May 6, 2022, 4:32 p.m. OK GNU C++17 TESTS 44 46 409600 1700
156121073 r1kvay D May 6, 2022, 4:33 p.m. OK GNU C++17 TESTS 44 46 512000 1700
156135010 GraphC D May 6, 2022, 7:20 p.m. OK GNU C++17 TESTS 44 46 614400 1700
156153819 Mallika_ D May 7, 2022, 3:17 a.m. OK GNU C++17 TESTS 44 46 614400 1700
156124768 Roshin D May 6, 2022, 5:29 p.m. OK GNU C++17 (64) TESTS 44 31 307200 1700
156119976 tnaito D May 6, 2022, 4:29 p.m. OK GNU C++17 (64) TESTS 44 31 1126400 1700
156117049 Mofashaoye3 D May 6, 2022, 4:18 p.m. OK GNU C++17 (64) TESTS 44 31 18022400 1700
156159374 Sadat999 D May 7, 2022, 5:06 a.m. OK GNU C++17 (64) TESTS 44 46 0 1700
156159545 HKing147 D May 7, 2022, 5:09 a.m. OK GNU C++17 (64) TESTS 44 46 0 1700
156158594 18o3 D May 7, 2022, 4:51 a.m. OK GNU C++17 (64) TESTS 44 46 0 1700
156150090 YYYLLL2021 D May 7, 2022, 1:56 a.m. OK GNU C++17 (64) TESTS 44 46 0 1700
156147891 AbdalrhmanEssam D May 7, 2022, 12:55 a.m. OK GNU C++17 (64) TESTS 44 46 0 1700
156144143 Segio_Atkin D May 6, 2022, 10:29 p.m. OK GNU C++17 (64) TESTS 44 46 0 1700
156137259 houghstc D May 6, 2022, 7:54 p.m. OK GNU C++17 (64) TESTS 44 46 0 1700
156139852 magnus.hegdahl D May 6, 2022, 8:41 p.m. OK GNU C++20 (64) TESTS 44 31 0 1700
156134685 armish2.0 D May 6, 2022, 7:15 p.m. OK GNU C++20 (64) TESTS 44 31 0 1700
156132214 efimovpaul D May 6, 2022, 6:44 p.m. OK GNU C++20 (64) TESTS 44 31 0 1700
156132202 Gaming D May 6, 2022, 6:44 p.m. OK GNU C++20 (64) TESTS 44 31 0 1700
156131886 coderdhanraj D May 6, 2022, 6:40 p.m. OK GNU C++20 (64) TESTS 44 31 0 1700
156130481 MFYT20 D May 6, 2022, 6:23 p.m. OK GNU C++20 (64) TESTS 44 31 0 1700
156126798 Tiagodfs D May 6, 2022, 5:45 p.m. OK GNU C++20 (64) TESTS 44 31 0 1700
156125395 Ismail_Akram D May 6, 2022, 5:33 p.m. OK GNU C++20 (64) TESTS 44 31 0 1700
156160188 Elias_Obeid D May 7, 2022, 5:20 a.m. OK GNU C++20 (64) TESTS 44 31 0 1700
156161857 aman76520 D May 7, 2022, 5:46 a.m. OK GNU C++20 (64) TESTS 44 31 0 1700
156133790 LXL D May 6, 2022, 7:04 p.m. OK Go TESTS 44 108 4300800 1700
156111834 kwangg D May 6, 2022, 3:59 p.m. OK Go TESTS 44 124 2457600 1700
156116932 rlblaster D May 6, 2022, 4:17 p.m. OK Go TESTS 44 124 2969600 1700
156152428 zelknow26 D May 7, 2022, 2:48 a.m. OK Go TESTS 44 124 3686400 1700
156123988 LXL D May 6, 2022, 5:24 p.m. OK Go TESTS 44 187 3174400 1700
156158293 theanmolsharma D May 7, 2022, 4:46 a.m. OK Java 11 TESTS 44 202 0 1700
156143774 csullivan203 D May 6, 2022, 10:16 p.m. OK Java 11 TESTS 44 202 0 1700
156124484 def_not_alt D May 6, 2022, 5:27 p.m. OK Java 11 TESTS 44 218 0 1700
156159386 sf14t D May 7, 2022, 5:06 a.m. OK Java 11 TESTS 44 218 0 1700
156149592 MubtasimShahriar D May 7, 2022, 1:44 a.m. OK Java 11 TESTS 44 248 0 1700
156112872 mayank.singh19 D May 6, 2022, 4:02 p.m. OK Java 11 TESTS 44 249 0 1700
156142382 henrychenOutlook D May 6, 2022, 9:37 p.m. OK Java 11 TESTS 44 280 0 1700
156109198 shojin_pro D May 6, 2022, 3:51 p.m. OK Java 11 TESTS 44 311 0 1700
156117000 Yuki_B D May 6, 2022, 4:17 p.m. OK Java 11 TESTS 44 327 0 1700
156124322 dusty.and.rusty D May 6, 2022, 5:26 p.m. OK Java 11 TESTS 44 436 0 1700
156113654 Akram-Adel D May 6, 2022, 4:05 p.m. OK Java 8 TESTS 44 170 0 1700
156144276 Abdallah_Ragab00 D May 6, 2022, 10:33 p.m. OK Java 8 TESTS 44 171 0 1700
156112549 vivek1401 D May 6, 2022, 4:01 p.m. OK Java 8 TESTS 44 171 0 1700
156155952 megaspazz D May 7, 2022, 3:59 a.m. OK Java 8 TESTS 44 202 0 1700
156155913 megaspazz D May 7, 2022, 3:59 a.m. OK Java 8 TESTS 44 217 0 1700
156155750 megaspazz D May 7, 2022, 3:55 a.m. OK Java 8 TESTS 44 218 0 1700
156134846 VishuTomar D May 6, 2022, 7:18 p.m. OK Java 8 TESTS 44 233 0 1700
156155822 megaspazz D May 7, 2022, 3:57 a.m. OK Java 8 TESTS 44 280 0 1700
156110824 13125003809 D May 6, 2022, 3:56 p.m. OK Java 8 TESTS 44 296 0 1700
156114481 Atuer D May 6, 2022, 4:08 p.m. OK Java 8 TESTS 44 560 78131200 1700
156160892 ripity D May 7, 2022, 5:32 a.m. OK Kotlin 1.6 TESTS 44 249 0 1700
156147074 thegeman D May 7, 2022, 12:27 a.m. OK Kotlin 1.6 TESTS 44 265 0 1700
156114303 ktropin D May 6, 2022, 4:07 p.m. OK Mono C# TESTS 44 405 8089600 1700
156119397 dan.kormilin D May 6, 2022, 4:27 p.m. OK MS C++ 2017 TESTS 44 467 409600 1700
156116902 BusIgor D May 6, 2022, 4:17 p.m. OK MS C++ 2017 TESTS 44 468 819200 1700
156118256 XYShaoKang D May 6, 2022, 4:22 p.m. OK Node.js TESTS 44 234 26521600 1700
156130113 acorn11 D May 6, 2022, 6:19 p.m. OK PyPy 2 TESTS 44 717 2048000 1700
156109836 YMSeah D May 6, 2022, 3:53 p.m. OK PyPy 3 TESTS 44 186 11468800 1700
156109029 ruimina D May 6, 2022, 3:50 p.m. OK PyPy 3 TESTS 44 187 7372800 1700
156110064 immike D May 6, 2022, 3:53 p.m. OK PyPy 3 TESTS 44 218 7782400 1700
156142537 KanishkGoel D May 6, 2022, 9:41 p.m. OK PyPy 3 TESTS 44 233 9318400 1700
156119261 coder_sounak D May 6, 2022, 4:26 p.m. OK PyPy 3 TESTS 44 233 11980800 1700
156141506 Noureldin D May 6, 2022, 9:16 p.m. OK PyPy 3 TESTS 44 264 14745600 1700
156110283 hxu10 D May 6, 2022, 3:54 p.m. OK PyPy 3 TESTS 44 280 9318400 1700
156126900 madun1999 D May 6, 2022, 5:46 p.m. OK PyPy 3 TESTS 44 295 10137600 1700
156120862 olliep D May 6, 2022, 4:32 p.m. OK PyPy 3 TESTS 44 311 9728000 1700
156128242 alsrua7222 D May 6, 2022, 5:59 p.m. OK PyPy 3 TESTS 44 312 9932800 1700
156112992 wanderman D May 6, 2022, 4:03 p.m. OK PyPy 3-64 TESTS 44 155 9625600 1700
156109641 notnotTehlka D May 6, 2022, 3:52 p.m. OK PyPy 3-64 TESTS 44 155 9728000 1700
156111979 Mukundan314 D May 6, 2022, 3:59 p.m. OK PyPy 3-64 TESTS 44 202 10547200 1700
156132144 jaglike_makkar D May 6, 2022, 6:43 p.m. OK PyPy 3-64 TESTS 44 233 11264000 1700
156114799 huangxw D May 6, 2022, 4:09 p.m. OK PyPy 3-64 TESTS 44 234 13516800 1700
156147554 Juanm1 D May 7, 2022, 12:43 a.m. OK PyPy 3-64 TESTS 44 265 10444800 1700
156127129 petamingks D May 6, 2022, 5:48 p.m. OK PyPy 3-64 TESTS 44 265 10444800 1700
156112345 batnik D May 6, 2022, 4:01 p.m. OK PyPy 3-64 TESTS 44 265 12800000 1700
156153212 ktthree D May 7, 2022, 3:04 a.m. OK PyPy 3-64 TESTS 44 280 10752000 1700
156150009 wolfram_ D May 7, 2022, 1:54 a.m. OK PyPy 3-64 TESTS 44 280 11059200 1700
156133982 Istarchick D May 6, 2022, 7:06 p.m. OK Python 3 TESTS 44 436 614400 1700
156111984 farrellbyu D May 6, 2022, 3:59 p.m. OK Python 3 TESTS 44 451 7680000 1700
156118561 MuhammadAMMAR D May 6, 2022, 4:23 p.m. OK Python 3 TESTS 44 467 614400 1700
156149322 MuhammadAMMAR D May 7, 2022, 1:36 a.m. OK Python 3 TESTS 44 483 614400 1700
156117276 STAR_ANONYMOUS D May 6, 2022, 4:18 p.m. OK Python 3 TESTS 44 483 614400 1700
156118484 Istarchick D May 6, 2022, 4:23 p.m. OK Python 3 TESTS 44 545 614400 1700
156121421 verybadmat D May 6, 2022, 4:34 p.m. OK Python 3 TESTS 44 951 0 1700
156118780 Yawn_Sean D May 6, 2022, 4:24 p.m. OK Python 3 TESTS 44 997 0 1700

remove filters

Back to search problems