We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 980b72f commit 3fe3d75Copy full SHA for 3fe3d75
live7/test74/문제3/박희경.py
@@ -0,0 +1,9 @@
1
+def solution(n, left, right):
2
+ answer = []
3
+
4
+ for i in range(left, right + 1):
5
+ x = i // n # 행 (이거 어떻게 규칙 찾는거야..)
6
+ y = i % n # 열
7
+ answer.append(max(x + 1, y + 1))
8
9
+ return answer
0 commit comments