Dowletgeldi_57_41's blog

By Dowletgeldi_57_41, 10 years ago, In English
  • Vote: I like it
  • +17
  • Vote: I do not like it

| Write comment?
»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

»
10 years ago, # |
  Vote: I like it +2 Vote: I do not like it

And how many minute did he spend for this code !!??

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

    19:35:00 — 20:27:51

  • »
    »
    10 years ago, # ^ |
      Vote: I like it +22 Vote: I do not like it

    Why do you actually believe that he coded that manually ? May be he just precomputed ?

»
10 years ago, # |
Rev. 2   Vote: I like it +16 Vote: I do not like it

Are you ok man? :)

»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

The longest solution i have ever seen!XD

»
10 years ago, # |
  Vote: I like it +2 Vote: I do not like it

His solution may be longer than any other solution, but his solution is the fastest! :D

»
10 years ago, # |
  Vote: I like it +20 Vote: I do not like it

And this one!!

»
10 years ago, # |
  Vote: I like it +8 Vote: I do not like it

the most optimal solution O(1) :D

»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

It would have been awesome if he had misspelled any number and got lucky since there are only 33 test cases .(Around 1022 possible nos.)

»
10 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Mine for Div2A

But I didn't write this with my bare hands, I wrote a code to print the filling of the array :D

»
10 years ago, # |
  Vote: I like it +10 Vote: I do not like it

If this person was able to write a program that produced all of the possible answers, he basically solved the problem. Why take the extra time to put it in an array?

  • »
    »
    10 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    Perhaps precalculating takes too much time. He would TLE if he submitted normally.

  • »
    »
    10 years ago, # ^ |
    Rev. 3   Vote: I like it 0 Vote: I do not like it

    He could write a code, like:

    cnt = 1;
    for (int i = 0; i < 1000000000; i++)
      if (lucky(i))
        cout << "arr[" << cnt++ << "]=" << i << ";  " ;
    

    to precalculate. It would get TLE, if he submitted.

»
10 years ago, # |
  Vote: I like it +12 Vote: I do not like it

I think he doesnt know he can do this arr[]={ }