Verified 53 til 57.

This commit is contained in:
2018-12-24 18:41:37 -05:00
parent 147a13a01f
commit 0ee19fa69f
9 changed files with 132 additions and 63 deletions

View File

@@ -20,7 +20,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 1,
"metadata": {
"collapsed": true
},
@@ -39,7 +39,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 2,
"metadata": {},
"outputs": [
{
@@ -52,7 +52,8 @@
],
"source": [
"s = max([get_digit_sum(a**b) for a in range(1, 100) for b in range(1, 100)])\n",
"print(s)"
"print(s)\n",
"assert(s == 972)"
]
},
{
@@ -66,7 +67,7 @@
}
],
"metadata": {
"completion_date": "",
"completion_date": "Mon, 24 Dec 2018, 23:33",
"kernelspec": {
"display_name": "Python 3",
"language": "python3.6",
@@ -84,7 +85,10 @@
"pygments_lexer": "ipython3",
"version": "3.6.5"
},
"tags": []
"tags": [
"power",
"brute force"
]
},
"nbformat": 4,
"nbformat_minor": 2