|
|
вернуться в форумLoop in python Послано crc 21 янв 2015 20:27 a "for"-loop in python for integers 1 <= i <= 10^18 needs a lot of time. Is there a way to avoid to do such a huge for-loop? Edited by author 21.01.2015 20:28 Re: Loop in python Послано LNCP 7 фев 2015 18:55 You should calculate recurrence with Matrix and use quick-power to calculate the power of Matrix.Do you need details about the algo? |
|
|