Блог пользователя wuhudsm

Автор wuhudsm, история, 4 недели назад, По-английски

A

Idea:Yugandhar_Master

solution
code(C++)

B

Idea:Yugandhar_Master

solution
code(C++)

C

Idea:Yugandhar_Master

solution
code(C++)

D

Idea:Yugandhar_Master

solution
code(C++)

E

Idea:Yugandhar_Master

solution
code(C++)

F

Idea:Yugandhar_Master

solution
code(C++)

G

Idea:Yugandhar_Master

solution
code(C++)
Разбор задач TheForces Round #30 (Good-Forces)
  • Проголосовать: нравится
  • +15
  • Проголосовать: не нравится

»
4 недели назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

good-forces but not very good editorials

»
4 недели назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Hey, is it possible to give access to check other's submissions? I am finding it difficult to solve problem C even after reading the editorial.

»
4 недели назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Yugandhar_Master (previous revision, new revision, compare).

»
4 недели назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Still can't understand problem C, anyone can explain it please? Why is log2(n) + 1 the lower bound for the sum? and how can one come up with such answer?

  • »
    »
    4 недели назад, # ^ |
    Rev. 3   Проголосовать: нравится +8 Проголосовать: не нравится

    Let's consider an integer x, the minimum floor value we can get from x by dividing with one of the lesser value than x is 1(which is trivial), so think of that minimum value y which is less than x and gives 1 when divides x , next move to y-1 and repeat this process until you reach 1. If you observe carefully this process repeats log2(n)+1 times where everytime we get the answer 1 hence from this construction we will get the F(p)=log2(n)+1. Why this is lower bound? (this is proved with some induction in editorial).

»
4 недели назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

hi can anyone take time to see my try for E , why i have a runtime error , I used binary lifting , but i am missing on something : https://codeforces.com/gym/105137/submission/259284000