File tree 1 file changed +70
-0
lines changed
1 file changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "nbformat" : 4 ,
3
+ "nbformat_minor" : 0 ,
4
+ "metadata" : {
5
+ "colab" : {
6
+ "name" : " PythagoreanTriplet_Euler9.ipynb" ,
7
+ "provenance" : [],
8
+ "authorship_tag" : " ABX9TyPh844RMlGctCinf4DNeiKS" ,
9
+ "include_colab_link" : true
10
+ },
11
+ "kernelspec" : {
12
+ "name" : " python3" ,
13
+ "display_name" : " Python 3"
14
+ },
15
+ "language_info" : {
16
+ "name" : " python"
17
+ }
18
+ },
19
+ "cells" : [
20
+ {
21
+ "cell_type" : " markdown" ,
22
+ "metadata" : {
23
+ "id" : " view-in-github" ,
24
+ "colab_type" : " text"
25
+ },
26
+ "source" : [
27
+ " <a href=\" https://colab.research.google.com/github/DebjitHore/Python-Codes/blob/master/PythagoreanTriplet_Euler9.ipynb\" target=\" _parent\" ><img src=\" https://colab.research.google.com/assets/colab-badge.svg\" alt=\" Open In Colab\" /></a>"
28
+ ]
29
+ },
30
+ {
31
+ "cell_type" : " code" ,
32
+ "metadata" : {
33
+ "colab" : {
34
+ "base_uri" : " https://localhost:8080/"
35
+ },
36
+ "id" : " Q4Tv9gUHcPVt" ,
37
+ "outputId" : " 45442462-0562-47b3-fc1e-232d7e95514a"
38
+ },
39
+ "source" : [
40
+ " for a in range(0,500):\n " ,
41
+ " for b in range(0,500):\n " ,
42
+ " for c in range(0,500):\n " ,
43
+ " if a+b+c==1000 and a**2+b**2==c**2:\n " ,
44
+ " print(a*b*c)"
45
+ ],
46
+ "execution_count" : 3 ,
47
+ "outputs" : [
48
+ {
49
+ "output_type" : " stream" ,
50
+ "text" : [
51
+ " 31875000\n " ,
52
+ " 31875000\n "
53
+ ],
54
+ "name" : " stdout"
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "cell_type" : " code" ,
60
+ "metadata" : {
61
+ "id" : " ipR0kQlRc9vr"
62
+ },
63
+ "source" : [
64
+ " "
65
+ ],
66
+ "execution_count" : null ,
67
+ "outputs" : []
68
+ }
69
+ ]
70
+ }
You can’t perform that action at this time.
0 commit comments