# a = input()
# a = int(a)
# b = [0]*a
# c=1
# d=0
# cnt = [0]*a
# k=0
# for i in range(a-1):
# b[i]=int(input())
# b.sort(reverse=False)
# for e in range(a-1):
# if b[k]==c:
# print('',end='')
# k=k+1
# else:
# for h in range(a-1):
# c=c+1
# if b[k] == c:
# cnt[d]=c
# d=d+1
# k=k+1
# break
# for l in range(d+1):
# b.remove(cnt[l])
# while True:
# y=0
# print(b[y])
# y=y+1
# if b[y]==0:
# break
#
# n = int(input())
# data = [0] * (n+1)
#
# for i in range(n-1):
# v = int(input())
# data[v] = 1
#
#
#
# for i in range(1, n+1):
# if data[i] == 0:
# print(i)
# break
# n
# list
#
# data = []
# data.append('Ike')
# data.append(4.5)
# data.append(177.7)
# data.append(62.8)
# subject = []
# subject.append(['국어', 100])
# subject.append(['수학', 150])
# subject.append(['영어', 999])
#
# data.append(subject)
#
# print(data)
#
# for i in range(len(data)):
# if type(data[i]) == 'list':
# for j in range(len(data[i])):
# print(data[i][j])
# else:
# print(data[i])
# data = input()
# cnta=0
# cntb=0
# for i in range(len(data)):
# if data[i] == '(':
# cnta=cnta+1
# elif data[i] == ')':
# cntb=cntb+1
# print(cnta, cntb, sep='')
# data = input()
# cnta=0
# cntb=0
# for i in range(len(data)):
# if data[i] == 'l':
# i=i+1
# if data[i]=='o':
# i=i+1
# if data[i] == 'v':
# i = i + 1
# if data[i] == 'e':
# cnta=cnta+1
#
# print(cnta)
# data = input()
#
# v = 0
# for i in range(len(data)):
# if data[i] == 'l':
# if data[i+1] == 'o' and data[i+2] == 'v' and data[i+3] == 'e':
#
#
# print(v)
# data = input()
# # list = []
# print(data)
#
# print(data[2:5])
#
# print(data[:5]) # 처음부터 5전까지
# print(data[5:]) # 5부터 끝까지
# data[ inclusive: exclusive ] # exit ( in~~, ex~~)
# for i in range(1, 5): # 1, 2, 3, 4
# for i in range(n): # 0, 1, 2, 3,..., n-1
n,l = input().split()
n=int(n)
l=int(l)
data = []
for i in range(n):
v = [0] * l
data.append(v)
for i in range(n):
for j in range(l):
data[i][j] = (n*l)-(n-1)+i-(j*n)
for i in range(n):
for j in range(l):
print(data[i][j], end=' ')
print()
# 1508, 1509, 1510, 1511, 1515
top of page
실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
2023-02-18
2023-02-18
댓글 0개
좋아요
댓글(0)
bottom of page