just_a_smallfry's blog

By just_a_smallfry, history, 16 months ago, In English

This 214966378 is the code i'm getting wrong answer for.

I've added comments too..for ease. But a quick overview — For numbers <= n , i'm making a different list (since trap cannot be set after n) , then sorting it, and iterating by calculating the divisors present till index i and setting final_answer as the maximum of those. Would be happy if somebody could help. Thanks!

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By just_a_smallfry, history, 2 years ago, In English

What rating would you give to this Problem / is it valid to be a Div-2 C/D/E .. ?

Question

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it

By just_a_smallfry, history, 2 years ago, In English

I was trying to solve This_CSES_problem , in which i tried 2 approaches...

1) Sorted first array , then applying binary search on this array (result — TLE )

2) Applied TreeMap , and returned map.floorKey() (result — TLE )

can you help me out?

First_approach
Second_Approach

Full text and comments »