Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

How to solve uva 11651 ??

Правка en1, от Secret.Codes, 2017-07-15 17:59:23

Problem link: https://uva.onlinejudge.org/external/116/p11651.pdf . I know how to convert it to matrix exponentiation, On my solution the matrix is 77*77 size. as there are 200 test case and the matrix may be powered to 10^9 , It will case time limit exceed though O(n^3log(m)). How to make it time efficient ??

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Secret.Codes 2017-07-15 18:01:01 25
en1 Английский Secret.Codes 2017-07-15 17:59:23 342 Initial revision (published)