Submit | All submissions | Best solutions | Back to list |
Added by: | Aadil Ahmad |
Date: | 2015-03-20 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 JS-MONKEY |
hide comments
2017-10-12 15:46:56
natsu: Draw a pentagon, denoting its corners 1,2,3,4,5. You can draw 2 diagonals in a V shape between these 5 combs of corners: 1-3-5, 2-5-3, 3-1-4, 1-4-2, 5-2-4. |
|
2015-06-21 09:02:35 Ankush
It's a well know sequence :P Though implementation wasn't easy. Costed 4 TLEs in Python. Finally did it in Python 2.7.9 :D Last edit: 2015-06-21 09:03:45 |
|
2015-03-29 21:42:21 Hiesenberg
@ashish for n=7 output = 42 |
|
2015-03-29 12:58:12 natsu
How the output is 5 for n=5(pentagon) in second test case? It should be 3 as non-intersecting diagonals given.Can anyone please explain. |
|
2015-03-28 14:45:31 ashish jaiswal
can i know the output for n=7? |