4

Today I had the regional stage of the Romanian Olympics of Informatics.
There were 3 problems supposedly : 1 easy , 1 hard and 1 insane.
I spent time only on the "easy" one
No one took more than 50/100 at that problem :'(

Comments
  • 1
    Care to share the problems?
  • 0
    @SnafuAI only the first one because the other two are amazingly long.
    You get a number b and need to return all the pairs (a , c) where b = (2*a*c)/(a+c).
    Some examples: for b = 3 you have
    3 pairs (3,3), (2,6) , (6,2).
    1 <= b <= 10^9
    Maximum exec. time: 1 sec for every b tested.
    You get 40/100 if it works on every number smaller than 10^6
    Please feel free to ask more
  • 0
    @SnafuAI i just found out you are romanian. 11th grade
    olimpiada.info/oji2017
  • 0
Add Comment