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

Автор my_tempo, 3 года назад, По-английски

I was trying to use the FastOlympicCoding package of Sublime. The only problem is that I dont know how to continuously change seed of the random function on each test case.
And srand(time(NULL)) is taking too much time (1 sec) to change the seed value so it's not good either.
I saw on other blogs that we can do this by changing the arguments for of int main but I have no idea how to do this kind of stuff in this package.

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

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

How about srand(chrono::steady_clock::now().time_since_epoch().count());?