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
1083
. Factorials!!!
hint for all test case
Posted by
Almas Turganbayev
19 Jan 2023 16:22
be attentive with loop (while)! we know formule n - x * k =) and in depends of number parity condition will be >= (ex. [n - x * k >= n mod k] or [n - x * k >= k]). Good luck!)
Edited by author 19.01.2023 16:23
© 2000–2024
Timus Online Judge Team
. All rights reserved.