ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1204
. Idempotents
AC 0.062
Posted by
TakeOver [MSU]
8 Dec 2013 03:19
O(k*(sqrt(n)/log(n) + log(n))).
hint: precalc primes table(so, we can factorize number using O(sqrt(N)/log(N)) operations).
gl.
© 2000–2024
Timus Online Judge Team
. All rights reserved.