hetanhnandre's blog

By hetanhnandre, 15 months ago, In English

These problems are taken from CSES Problem set and Codeforces Problem set archives

Problem 1 — Point Location Test

Hint 1:
Hint 2:
Hint 3:
Code

Problem 2 — Line Segment Intersection

Hint 1:
Hint 2:
Code

Problem 3 — Polygon Area

Hint 1:
Code

Problem 4 — Point in Polygon

Hint 1:
Hint 2:
Code

Problem 5 — Gerald's Hexagon [1600]

Hint 1:
Code

Problem 6 — Bicycle Race [1500]

Hint 1:
Code
O(1) Approach:
Code

Problem 7 — Four Segments [1700]

Hint 1:
Hint 2:
Code

Problem 8 — Number of Parallelograms [1900]

Hint 1:
Code

Problem 9 — Rectangles [1600]

Hint 1:
Hint 2:
Code
  • Vote: I like it
  • +37
  • Vote: I do not like it

»
11 months ago, # |
  Vote: I like it -8 Vote: I do not like it

ty too muchhh but one fact..

Geometry is shit :((

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Your solution of problem 4 is giving verdict wrong answer on test 7.