Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

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

Revision en4, by 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.

History

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