Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
03. Combinations
desislava_topuzakova
Oct 21st, 2020
2,264
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
n
=
int
(
input
(
)
)
counter
=
0
for
x1
in
range
(
0
,
n+
1
)
:
for
x2
in
range
(
0
,
n+
1
)
:
for
x3
in
range
(
0
,
n+
1
)
:
if
x1 + x2 + x3
==
n:
counter +
=
1
print
(
counter
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Instant Profits Method
CSS | 1 min ago | 1.01 KB
✅ +12,000$ in 2 days
CSS | 2 min ago | 1.01 KB
Get $12,000 from this mehtod
CSS | 3 min ago | 0.86 KB
✅ Easiest method for beginners
CSS | 3 min ago | 1.01 KB
BTC SWAP GLITCH
CSS | 3 min ago | 1.01 KB
Crypto is in danger
CSS | 4 min ago | 0.83 KB
Exploit Documentation
CSS | 25 min ago | 1.01 KB
Older node trading
CSS | 25 min ago | 1.01 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!