You are not logged in. Please login at www.codechef.com to post your questions!

×

MockVita Round 1 2018

Hello friends can someone tell me how to approach these problems? I participated in this practice round 1 and could not solve these problems. Can someone tell me the approach to solve these problems. Thanks in advance.

@vijju123 @taran_1407 @vivek_1998299 @meooow @john_smith_3 @aryanc403 @vbt_95

ALL PROBLEMS

Contest is over so we can have a discussion over the approach used or can be used.

asked 14 Jul '18, 12:37

harrypotter0's gravatar image

4★harrypotter0
318110
accept rate: 1%

1

The A problem is mostly number of ways of choosing 3 lines such that no two of them have a same angle,since n is small u can iterate over all triplets.

As any 2 line which are not parallel will intersect a some point,so for 3 lines,line (1,2) intersects at A,line(2,3) at B,line(1,3) at C,and since it is said that they are concurrent A!=B!=C

(14 Jul '18, 20:25) vivek_19982996★
toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×2,738
×148
×27
×20
×13

question asked: 14 Jul '18, 12:37

question was seen: 838 times

last updated: 14 Jul '18, 20:25