[Solved] Example of multithreading on codeforces and one small question

Правка en4, от dmkz, 2018-08-03 00:17:24

I found two C# solutions: with multithreadingAccepted and without multithreadingTLE. The author of the solution uses Parallel.For in the functionMultiplyMatrixPow, due to which it achieves success. Question: how many cores can we load on codeforces servers when testing our solution?

UPD: In first program author takes remainder from integer division 3 times, in second program just 1 times. So, this is not multithreading hack.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
ru6 Русский dmkz 2018-08-03 11:29:26 3
ru5 Русский dmkz 2018-08-03 00:17:50 9
en4 Английский dmkz 2018-08-03 00:17:24 9
en3 Английский dmkz 2018-08-03 00:17:06 152
ru4 Русский dmkz 2018-08-03 00:15:21 140
en2 Английский dmkz 2018-08-02 19:03:48 2
en1 Английский dmkz 2018-08-02 19:02:55 496 Initial revision for English translation
ru3 Русский dmkz 2018-08-02 18:58:53 2
ru2 Русский dmkz 2018-08-02 18:58:18 28
ru1 Русский dmkz 2018-08-02 18:56:51 447 Первая редакция (опубликовано)