There are N chords on circle. We know chords start degree and end degree. Find how many parts circle divided. Start of the coordinate system is located in center of the circle. 3 chords don't intersect at one point. Note: I made algorithm for that problem, but i couldn't write what i want. My algorithm: ans=n+1+(count of intersects of chords with each other). See image from link below. http://mirror.codeforces.com/predownloaded/83/53/83534d0e0c3e1c27cf0fb769066847d61e0660a1.png
Do you have a link to the problem please?
https://www.e-olymp.com/ru/problems/448
Can anyone help me to do this with my algo? Or you can post your own solution. Any idea???
Any idea?