Skip to content

Commit 9abade2

Browse files
committedNov 20, 2024
Solve Array 123 in python
1 parent 7e2bcba commit 9abade2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 

‎solutions/beecrowd/1534/1534.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import sys
2+
3+
for line in sys.stdin:
4+
n = int(line)
5+
for i in range(n):
6+
for j in range(n):
7+
if i == j and i + j == n - 1:
8+
print(2, end="")
9+
elif i == j:
10+
print(1, end="")
11+
elif i + j == n - 1:
12+
print(2, end="")
13+
else:
14+
print(3, end="")
15+
print()

0 commit comments

Comments
 (0)