Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 28th, 2014
162
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
int det(int n)
{int p=1,i=1,a,b;
do
{
i++;p=p*i;
}
while (p<n);
if (p==n) return n;
else {b=p-n; p=p/i; a=n-p; if (a<=b) return p; else return p*i; }
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
1 hour ago | 13.67 KB
Untitled
2 hours ago | 11.84 KB
Untitled
3 hours ago | 17.61 KB
FIDONET.TXT
3 hours ago | 10.03 KB
Untitled
4 hours ago | 12.77 KB
Untitled
5 hours ago | 14.47 KB
Untitled
6 hours ago | 9.49 KB
Untitled
7 hours ago | 21.13 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!