OT: "Congratulations, the answer you gave to problem 145 is correct."

Liste des GroupesRevenir à ol advocacy 
Sujet : OT: "Congratulations, the answer you gave to problem 145 is correct."
De : nospam (at) *nospam* dfs.com (DFS)
Groupes : comp.os.linux.advocacy
Date : 09. Mar 2024, 16:27:16
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <ushrk4$2c2o6$1@dont-email.me>
User-Agent : Betterbird (Windows)
"Congratulations, the answer you gave to problem 145 is correct.
The public tables currently show that this problem has been solved by 17630 members.
This problem has a difficulty rating of 20%. The highest difficulty rating you have solved so far is 75%."
#------------------------------------------------------------------------
#
# https://projecteuler.net/problem=145
# Reversible Numbers
# Problem 145
# Some positive integers have the property that the sum n + reverse(n)
# consists entirely of odd (decimal) digits. For instance, 36+63 = 999
# and 409+904=1313.
# We will call such numbers reversible. Leading zeroes are not allowed
# in either n or reverse(n)
#
# There are 120 reversible numbers below one-thousand.
#
# How many reversible numbers are there below one-billion?
#
#------------------------------------------------------------------------
In the spirit of ProjectEuler, I'm not publishing the 10 lines of code or the answer.
$ python reversible_numbers.py 1,000
120 reversibles found in 0.00s
$ python reversible_numbers.py 10,000,000
68720 reversibles found in 4.86s
$ python reversible_numbers.py 100,000,000
N reversibles found in 49.40s
write python code to find out!
$ python reversible_numbers.py 1,000,000,000
N reversibles found in 485.73s
write python code to find out!

Date Sujet#  Auteur
9 Mar 24 * OT: "Congratulations, the answer you gave to problem 145 is correct."3DFS
9 Mar 24 `* Re: OT: "Congratulations, the answer you gave to problem 145 is correct."2Diego Garcia
10 Mar 24  `- Re: OT: "Congratulations, the answer you gave to problem 145 is correct."1DFS

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal