Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
(a * 100 + b * 10 + c) == (5 * a * b * c)
SUBMITTED BY:
Guest
DATE:
Jan. 13, 2014, 7:37 p.m.
FORMAT:
Text only
SIZE:
228 Bytes
Raw
Download
Tweet
HITS:
832
Go to comments
Report
#!/usr/bin/env python
# -*- coding: utf-8 -*-
for i in range(100,1000):
c = i % 10
i = i / 10
b = i % 10
i = i / 10
a = i % 10
if (a * 100 + b * 10 + c) == (5 * a * b * c):
print a+b+c
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus