FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonprogram/Hourglass at master · Spacecoder19/pythonprogram · GitHub
Spacecoder19
pythonprogram
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonprogram
/
Hourglass
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (18 loc) · 550 Bytes
Breadcrumbs
pythonprogram
/
Hourglass
Copy path
File metadata and controls
25 lines (18 loc) · 550 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/python3
import
math
import
os
import
random
import
re
import
sys
if
__name__
==
'__main__'
:
arr
=
[]
for
_
in
range
(
6
):
arr
.
append
(
list
(
map
(
int
,
input
().
rstrip
().
split
())))
maximum
=
-
9
*
7
for
i
in
range
(
6
):
for
j
in
range
(
6
):
if
j
+
2
<
6
and
i
+
2
<
6
:
result
=
arr
[
i
][
j
]
+
arr
[
i
][
j
+
1
]
+
arr
[
i
][
j
+
2
]
+
arr
[
i
+
1
][
j
+
1
]
+
arr
[
i
+
2
][
j
]
+
arr
[
i
+
2
][
j
+
1
]
+
arr
[
i
+
2
][
j
+
2
]
if
result
>
maximum
:
maximum
=
result
print
(
maximum
)
Back
|
FazBrowse Home
|
New Git URL