ScarletS's blog

By ScarletS, history, 5 years ago, In English

A — Star

Solution

B — uNrEaDaBlE sTrInG

Solution

C — Kaprekar Number

Solution

D — Base n

Solution

E — Train

Solution

F — Potion

Solution
  • Vote: I like it
  • +34
  • Vote: I do not like it

| Write comment?
»
5 years ago, hide # |
 
Vote: I like it +44 Vote: I do not like it

Right before posting this the first time, I ended up deleting it accidentally and had to rewrite it :)

»
5 years ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

A,B and C were easier this time..

»
5 years ago, hide # |
 
Vote: I like it +14 Vote: I do not like it

Why the LATEX disappears 5 second after opening some solution?

»
5 years ago, hide # |
Rev. 6  
Vote: I like it 0 Vote: I do not like it

Sub to D Can someone help me with this code? My approach was to find b such that $$$a_nb^n=m$$$, and the required answer if possible will be lesser than b, so that i will decrement till i find the polynomial to be less than m.Random tc Can someone also explain this as well? My code when i stress tested it worked fine for $$$m \lt =10^{16}$$$

»
5 years ago, hide # |
Rev. 3  
Vote: I like it 0 Vote: I do not like it

.

  • »
    »
    5 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    It's part of the standard Dijkstra implementation, it ensures you don't needlessly visit the same node multiple times.