cgy4ever's blog

By cgy4ever, 10 years ago, In English

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

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

The link isn't working.

Still, you don't need to feel that bad about the 600 problem — the systemtest for it was dyed in bloody red.

Like I ranted before: TC should have pretests, it's too random this way. I was successfully challenged on both problems I thought I'd managed to solve successfully in the last round I competed in; this time, I got 19. place. Random stuff.

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

    I have uploaded the picture in another "free uploading" server. Does it works now?

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

    Yes, you are right, the 600p was tricky. But the fact is that I failed only by mistyping a variable name.

    I agree that stronger pretests would make it better, but there is always a way to fail system test that pretest can't save you.

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

Just curious about the random function, suppose we don't use some seeds (like srand() in C++) then is it true that the function will always return the same number for the same arguments?

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

    Java's Math.random() is making a new instance of Random class when first called and then uses this instance to make random doubles. To use custom seeds, you should use Random class directly.

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

Don't worry bro, sometimes even my submissions fail (nod).