Good Bye 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
1466 Good Bye 2020 FINISHED False 10800 122484299 Dec. 30, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 22597 ) A Bovine Dilemma PROGRAMMING brute force math

B"Argus was charged with guarding Io, which is not an ordinary cow. Io is quite an explorer, and she wanders off rather frequently, making Argus' life stressful. So the cowherd decided to construct an enclosed pasture for Io. There are n trees growing along the river, where Argus tends Io. For this problem, the river can be viewed as the OX axis of the Cartesian coordinate system, and the n trees as points with the y -coordinate equal 0 . There is also another tree growing in the point (0, 1) . Argus will tie a rope around three of the trees, creating a triangular pasture. Its exact shape doesn't matter to Io, but its area is crucial to her. There may be many ways for Argus to arrange the fence, but only the ones which result in different areas of the pasture are interesting for Io. Calculate the number of different areas that her pasture may have. Note that the pasture must have nonzero area. The input consists of multiple test cases. The first line contains an integer t ( 1 <= q t <= q 100 ) -- the number of test cases. Then t test cases follow, each one is described in two lines. In the first line of each test case there is a single integer n ( 1 <= q n <= q 50 ) denoting the number of trees growing along the river. Next line contains n distinct integers x_1 < x_2 < ldots < x_{n - 1} < x_n ( 1 <= q x_i <= q 50 ), the x -coordinates of trees growing along the river. In a single line output an integer, the number of different nonzero areas that triangles with trees as vertices may have. In the first test case, we have 6 non-degenerate triangles with the following areas: 0.5 , 0.5 , 1 , 1.5 , 1.5 and 2 . The pasture can have 4 different areas, and thus 4 is the answer. In the second test case, we have 3 non-degenerate triangles with the following areas: 1 , 1 and 2 . The pasture can have 2 different "...

Tutorials

Good Bye 2020 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
102849032 sriindu6701 A Dec. 30, 2020, 5:01 p.m. OK GNU C11 TESTS 9 15 409600
102877601 Truongquangkhang A Dec. 31, 2020, 3:16 a.m. OK GNU C11 TESTS 9 31 0
102849289 guptshivam A Dec. 30, 2020, 5:02 p.m. OK GNU C11 TESTS 9 31 0
102874193 CoderMamun A Dec. 31, 2020, 12:58 a.m. OK GNU C11 TESTS 9 31 0
102857466 Akshit_Gureja A Dec. 30, 2020, 5:31 p.m. OK GNU C11 TESTS 9 187 0
102877338 nguyennhathung A Dec. 31, 2020, 3:08 a.m. OK GNU C++11 TESTS 9 15 0
102876567 ThinTime A Dec. 31, 2020, 2:43 a.m. OK GNU C++11 TESTS 9 15 0
102876064 khanhdinh141 A Dec. 31, 2020, 2:24 a.m. OK GNU C++11 TESTS 9 15 0
102867822 yangster67 A Dec. 30, 2020, 9:02 p.m. OK GNU C++11 TESTS 9 15 0
102865641 tille100 A Dec. 30, 2020, 8:19 p.m. OK GNU C++11 TESTS 9 15 0
102883809 fishcathu. A Dec. 31, 2020, 5:34 a.m. OK GNU C++11 TESTS 9 15 0
102883392 cqyzzzx A Dec. 31, 2020, 5:27 a.m. OK GNU C++11 TESTS 9 15 0
102884687 prathamesh.k A Dec. 31, 2020, 5:50 a.m. OK GNU C++11 TESTS 9 15 0
102878062 TLP.39 A Dec. 31, 2020, 3:29 a.m. OK GNU C++11 TESTS 9 15 0
102878035 iiiiiiiAzul A Dec. 31, 2020, 3:28 a.m. OK GNU C++11 TESTS 9 15 0
102879531 mesumit A Dec. 31, 2020, 4:05 a.m. OK GNU C++14 TESTS 9 15 0
102863966 LOSER4ever A Dec. 30, 2020, 7:57 p.m. OK GNU C++14 TESTS 9 15 102400
102884988 Deepraj99 A Dec. 31, 2020, 5:55 a.m. OK GNU C++14 TESTS 9 15 102400
102876490 rishav_iitkgp A Dec. 31, 2020, 2:40 a.m. OK GNU C++14 TESTS 9 15 102400
102876119 AVICI A Dec. 31, 2020, 2:27 a.m. OK GNU C++14 TESTS 9 15 102400
102872201 index.js A Dec. 30, 2020, 11:24 p.m. OK GNU C++14 TESTS 9 15 102400
102875672 murat.cepeda.. A Dec. 31, 2020, 2:07 a.m. OK GNU C++14 TESTS 9 30 0
102883168 tmusale_2605 A Dec. 31, 2020, 5:23 a.m. OK GNU C++14 TESTS 9 30 0
102873107 vanillamice A Dec. 31, 2020, 12:05 a.m. OK GNU C++14 TESTS 9 30 0
102872926 gee308 A Dec. 30, 2020, 11:56 p.m. OK GNU C++14 TESTS 9 30 0
102880290 hd94 A Dec. 31, 2020, 4:24 a.m. OK GNU C++17 TESTS 9 15 102400
102880685 qazwdx A Dec. 31, 2020, 4:33 a.m. OK GNU C++17 TESTS 9 15 204800
102883295 agayush A Dec. 31, 2020, 5:25 a.m. OK GNU C++17 TESTS 9 15 307200
102880544 Yash_dn A Dec. 31, 2020, 4:30 a.m. OK GNU C++17 TESTS 9 30 0
102883939 deepGajera18 A Dec. 31, 2020, 5:36 a.m. OK GNU C++17 TESTS 9 30 0
102881911 vineeth_kada A Dec. 31, 2020, 4:59 a.m. OK GNU C++17 TESTS 9 30 0
102876835 SongGG A Dec. 31, 2020, 2:52 a.m. OK GNU C++17 TESTS 9 30 0
102861932 Igor_2017 A Dec. 30, 2020, 7:35 p.m. OK GNU C++17 TESTS 9 30 0
102853120 xtalclr A Dec. 30, 2020, 5:16 p.m. OK GNU C++17 TESTS 9 30 0
102848913 weepling__willow A Dec. 30, 2020, 5:01 p.m. OK GNU C++17 TESTS 9 30 0
102880649 noisegain A Dec. 31, 2020, 4:32 a.m. OK GNU C++17 (64) TESTS 9 15 0
102878273 sva2005 A Dec. 31, 2020, 3:34 a.m. OK GNU C++17 (64) TESTS 9 15 0
102874901 JosepHy A Dec. 31, 2020, 1:32 a.m. OK GNU C++17 (64) TESTS 9 15 0
102871642 keepers A Dec. 30, 2020, 11:01 p.m. OK GNU C++17 (64) TESTS 9 15 0
102868028 vipin__sharma A Dec. 30, 2020, 9:07 p.m. OK GNU C++17 (64) TESTS 9 15 0
102881675 dhiraj-01 A Dec. 31, 2020, 4:54 a.m. OK GNU C++17 (64) TESTS 9 15 0
102882704 Phantom_ A Dec. 31, 2020, 5:15 a.m. OK GNU C++17 (64) TESTS 9 15 0
102882995 Joseph1314 A Dec. 31, 2020, 5:20 a.m. OK GNU C++17 (64) TESTS 9 15 0
102883721 tiasmondal A Dec. 31, 2020, 5:33 a.m. OK GNU C++17 (64) TESTS 9 15 0
102884528 SHAFIQ1680 A Dec. 31, 2020, 5:47 a.m. OK GNU C++17 (64) TESTS 9 15 0
102869778 TomazGomes A Dec. 30, 2020, 9:55 p.m. OK Haskell TESTS 9 93 102400
102884112 mrprince88 A Dec. 31, 2020, 5:40 a.m. OK Java 11 TESTS 9 171 0
102881559 anshum_it_is A Dec. 31, 2020, 4:52 a.m. OK Java 11 TESTS 9 171 0
102879835 Codeispower A Dec. 31, 2020, 4:12 a.m. OK Java 11 TESTS 9 171 0
102869470 AnythingWithJ A Dec. 30, 2020, 9:45 p.m. OK Java 11 TESTS 9 171 0
102850495 ayazzia01 A Dec. 30, 2020, 5:07 p.m. OK Java 11 TESTS 9 186 0
102883614 Sanju_250406 A Dec. 31, 2020, 5:31 a.m. OK Java 11 TESTS 9 187 0
102877329 zhongzh13 A Dec. 31, 2020, 3:08 a.m. OK Java 11 TESTS 9 187 0
102874319 pikachu_pika_pika A Dec. 31, 2020, 1:04 a.m. OK Java 11 TESTS 9 187 0
102864321 Okhair A Dec. 30, 2020, 8:01 p.m. OK Java 11 TESTS 9 187 0
102862343 Toinfinity A Dec. 30, 2020, 7:37 p.m. OK Java 11 TESTS 9 187 0
102862319 rachitpts.2454 A Dec. 30, 2020, 7:37 p.m. OK Java 8 TESTS 9 108 0
102883948 mjay4 A Dec. 31, 2020, 5:36 a.m. OK Java 8 TESTS 9 109 0
102874409 irazvi1890 A Dec. 31, 2020, 1:09 a.m. OK Java 8 TESTS 9 109 0
102867184 ElectronicsEngineer A Dec. 30, 2020, 8:47 p.m. OK Java 8 TESTS 9 109 0
102863499 18ucc061 A Dec. 30, 2020, 7:51 p.m. OK Java 8 TESTS 9 109 0
102879382 Dhananjay.07 A Dec. 31, 2020, 4:02 a.m. OK Java 8 TESTS 9 124 0
102869184 antonskubiiev A Dec. 30, 2020, 9:36 p.m. OK Java 8 TESTS 9 124 0
102864300 ZeroEnergy A Dec. 30, 2020, 8 p.m. OK Java 8 TESTS 9 124 0
102863363 nandit A Dec. 30, 2020, 7:50 p.m. OK Java 8 TESTS 9 124 0
102863163 kareem3id A Dec. 30, 2020, 7:47 p.m. OK Java 8 TESTS 9 124 0
102870582 Rakki_26 A Dec. 30, 2020, 10:21 p.m. OK JavaScript TESTS 9 31 2048000
102882794 kabden.a A Dec. 31, 2020, 5:16 a.m. OK JavaScript TESTS 9 93 3276800
102873648 Spheniscine A Dec. 31, 2020, 12:31 a.m. OK Kotlin TESTS 9 139 1126400
102882526 kun368 A Dec. 31, 2020, 5:11 a.m. OK Kotlin TESTS 9 140 0
102867171 sameer.g2347 A Dec. 30, 2020, 8:46 p.m. OK Kotlin TESTS 9 140 0
102881191 FLself A Dec. 31, 2020, 4:45 a.m. OK MS C++ 2017 TESTS 9 31 0
102877194 nandinidaruka2002 A Dec. 31, 2020, 3:04 a.m. OK MS C++ 2017 TESTS 9 31 0
102870514 AnDrewHAliEm A Dec. 30, 2020, 10:18 p.m. OK MS C++ 2017 TESTS 9 31 0
102869940 HhuskarH A Dec. 30, 2020, 10 p.m. OK MS C++ 2017 TESTS 9 31 0
102865542 gever_gever A Dec. 30, 2020, 8:18 p.m. OK MS C++ 2017 TESTS 9 31 0
102861991 ustaritz A Dec. 30, 2020, 7:35 p.m. OK MS C++ 2017 TESTS 9 31 0
102849982 zhangzhanxu23 A Dec. 30, 2020, 5:05 p.m. OK MS C++ 2017 TESTS 9 31 0
102880625 dheerajd5 A Dec. 31, 2020, 4:32 a.m. OK MS C++ 2017 TESTS 9 46 0
102869466 md.kaif A Dec. 30, 2020, 9:45 p.m. OK MS C++ 2017 TESTS 9 46 102400
102866813 ap1008 A Dec. 30, 2020, 8:39 p.m. OK PyPy 2 TESTS 9 124 716800
102881434 sri-nandhan A Dec. 31, 2020, 4:49 a.m. OK PyPy 3 TESTS 9 140 1638400
102879894 M0u1ea5 A Dec. 31, 2020, 4:14 a.m. OK PyPy 3 TESTS 9 140 1638400
102873010 ajxu2 A Dec. 31, 2020, midnight OK PyPy 3 TESTS 9 140 1638400
102863804 ghoshashis545 A Dec. 30, 2020, 7:55 p.m. OK PyPy 3 TESTS 9 155 1536000
102885304 Sahitya02 A Dec. 31, 2020, 6 a.m. OK PyPy 3 TESTS 9 155 1638400
102881294 vyom_goel A Dec. 31, 2020, 4:47 a.m. OK PyPy 3 TESTS 9 155 1638400
102880050 gnawydna A Dec. 31, 2020, 4:18 a.m. OK PyPy 3 TESTS 9 155 1638400
102878883 dcshin A Dec. 31, 2020, 3:50 a.m. OK PyPy 3 TESTS 9 155 1638400
102874710 codancer2000 A Dec. 31, 2020, 1:22 a.m. OK PyPy 3 TESTS 9 155 1638400
102852828 TechieAnuj A Dec. 30, 2020, 5:15 p.m. OK PyPy 3 TESTS 9 155 1638400
102876155 biltharesatyendra A Dec. 31, 2020, 2:28 a.m. OK Python 2 TESTS 9 171 0
102883775 manukushaal22 A Dec. 31, 2020, 5:33 a.m. OK Python 3 TESTS 9 109 0
102873571 ankan2526 A Dec. 31, 2020, 12:27 a.m. OK Python 3 TESTS 9 109 0
102863155 Bacuzagui A Dec. 30, 2020, 7:47 p.m. OK Python 3 TESTS 9 109 0
102862547 Leran A Dec. 30, 2020, 7:39 p.m. OK Python 3 TESTS 9 109 307200
102883527 thecoder911 A Dec. 31, 2020, 5:29 a.m. OK Python 3 TESTS 9 124 0
102883369 pkgupta A Dec. 31, 2020, 5:26 a.m. OK Python 3 TESTS 9 124 0
102882962 t_error A Dec. 31, 2020, 5:20 a.m. OK Python 3 TESTS 9 124 0
102882052 gunjan768 A Dec. 31, 2020, 5:02 a.m. OK Python 3 TESTS 9 124 0
102881022 rahuldevadiga A Dec. 31, 2020, 4:41 a.m. OK Python 3 TESTS 9 124 0
102880821 rky673 A Dec. 31, 2020, 4:37 a.m. OK Python 3 TESTS 9 124 0

remove filters

Back to search problems