The Nth Item

Topic link: https: //nanti.jisuanke.com/t/41355

Outline of Solution: This question is in fact very simple idea, is determined every n- . 1 with the calculated into F. (N- . 1 ), then n- 2 is n- . 1  XOR F. (N- . 1 ) 2 , wherein the time limit is 1000ms key;

The title quadratic residue theorem + inversing the speed of light power +

Using the quadratic residue theorem + inversing can convert the equation as F (n-) = 559 329 360 (262 199 973 n- -736 044 383 n- ) 998 244 353%

(...)

Guess you like

Origin www.cnblogs.com/125418a/p/11531101.html