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
1366
. Presents
vtalgo16_plitvinov
WA11
[1] // Problem
1366. Presents
29 Feb 2016 01:22
What is WA11?
P.S. subfactorial func is correct
P.P.S. Admins, is it possible there are some bugs here?
Edited by author 29.02.2016 01:26
Artem Maksunov
Re: WA11
// Problem
1366. Presents
9 Jan 2020 03:09
The next formula is correct:
f(1) = 0;
f(n) = n*f(n-1) + (-1)^n;
But you need use long/big math (example:
https://golang.org/pkg/math/big/)
© 2000–2026
Timus Online Judge Team
. All rights reserved.