# print('Hello', end='')
# print('World')
#
# print('Hello', 'World', 'Hello', 'There', sep=':')
#
# print(1+2)
# n, m = input().split()
# n = int(n)
# m = int(m)
#
# print(n+m)
# n = int(input())
# m = int(input())
#
# print(n+m)
# data = input()
#
# print(data) # list
#
# for i in range(len(data)-1, -1, -1): # 0 ~ len(data)-1
# print(data[i], end=' ')
# print('"C:\\Download\\\'hello\'.py"')
# a = input()
# print(a)
# a = input()
# a = float(a)
# print(a)
# a = input()
# b = input()
# print(b)
# print(a)
# a,b = input().split()
# print(a)
# print(b)
# a = input()
# print(a,a,a, sep=(' '))
# a,b,c = input().split('.')
# print(c,b,a, sep=('-'))
# a = input()
# for i in range(0, len(a)):
# print(a[i])
# a,b,c = input().split(':')
# print(b)
# a,b = input().split(' ')
# a = int(a)
# b =int(b)
# print(a+b)
# a = input()
# a = int(a)
# print('%x'%a)
# a = input()
# a = int(a,16)
# print('%o'%a)
# a = input()
# a = int(a)
# print(chr(a))
# a,b = input().split()
# a = float(a)
# b = float(b)
# print(a*b)
# a = input()
# a = int(a)
# b = input()
# print(int(a)*b)
# a = input()
# a = ord(a)+1
# print(chr(a))
# a,b = input().split()
# a = float(a)
# b = float(b)
# print(a**b)
# a,b = input().split()
# a = int(a)
# b = int(b)
# print(a%b)
# a,b = input().split()
# a = float(a)
# b = float(b)
# print("%.3f" %(a/b))
# a,b,c = input().split()
# a = int(a)
# b = int(b)
# c = int(c)
# d = a+b+c
# print(d,"%.2f" %(d/3), sep=(' '))
# a,b = input().split()
# a = int(a)
# b = int(b)
# print(a<<b)
# a,b = input().split()
# a = int(a)
# b = int(b)
# print(a==b)
# a,b = input().split()
# a = int(a)
# b = int(b)
# print(a!=b)
# a = bool(int(input()))
# print(not a)
# a = input()
# a = int(a)
# print(~a)
# a,b = input().split()
# a = int(a)
# b = int(b)
# print(a | b)
# a,b = input().split()
# a = int(a)
# b = int(b)
# print(a if a>b else b)
# a,b = input().split()
# a = bool(int(a))
# b = bool(int(b))
# print(a or b)
# a =input()
# a = bool(int(a))
# print(a)
# a,b = input().split()
# a = bool(int(a))
# b = bool(int(b))
# print(a and b)
# a,b = input().split()
# a = bool(int(a))
# b = bool(int(b))
# print(a!=b)
# a,b = input().split()
# a = bool(int(a))
# b = bool(int(b))
# print(a==b)
# a,b = input().split()
# a = bool(int(a))
# b = bool(int(b))
# print(not(a or b))
# a,b = input().split()
# a = int(a)
# b = int(b)
# print(a & b)
# a,b = input().split()
# a = int(a)
# b = int(b)
# print(a ^ b)
# a,b,c = input().split()
# a = int(a)
# b = int(b)
# c = int(c)
# print((a if a<c else c) if a<b else (b if b<c else c))
# n = int(input())
#
# if n > 10 and n < 20:
# print('AAA')
# print('BBB')
# if n == 15:
# print('CCC')
# else:
# print('DDD')
# elif n%5 == 0:
# print('EEE')
# else:
# print('FFF')
# for i in range(5):
# print(i)
data = [1,2,5,4,7]
# print(data[0])
# for i in data:
# print(i)
# data = [0] * 10
# # v = data * 10
#
# print(data)
# data = []
# for i in range(5):
# v = []
# for j in range(5):
# v.append(0)
# data.append(v)
#
# print(data)
# for i in range(1, 10, 2):
# print(i)
# data = [] # list
# data2 = () # tuple
# data3 = {} # dictionary
#
# data.append(10)
# print(data)
# data.append(20)
# print(data)
# data.pop()
# print(data)
# data.append(30)
# data.append(40)
# data.append(50)
# print(data)
# print(data.pop(2))
# print(data)
#
# data.
# a, b, c = input().split()
# a = int(a)
# b = int(b)
# c = int(c)
# if a % 2 == 0:
# print(a)
# if b%2==0:
# print(b)
# if c%2==0:
# print(c)
# a = input()
# a = int(a)
# if a % 2 == 0:
# if a > 0:
# print('C')
# else:
# print('A')
# else:
# if a > 0:
# print('D')
# else:
# print('B')
# a = input()
# if a == 'A':
# print('best!!!')
# elif a == 'B':
# print('good!!')
# elif a == 'C':
# print('run!')
# elif a == 'D':
# print('slowly~')
# else:
# print('what?')
# data = [1,2,3,4,5,4,3,2,1]
#
# for x in data:
# print(x)
# data = []
# print(data)
#
# data.append(10)
# print(data)
# data.append(20)
# print(data)
# data.append([1,2,3])
# print(data)
#
# print('pop',data.pop(1))
# print(data)
#
# data.reverse()
# print(data)
# tData = (1,2,3)
#
# dData = {'apple':1200, 'Banana':2000}
# print(dData.keys())
# data2 = []
# t = input()
# t = int(t)
# x = input().split()
# for i in range(t):
# x[i] = int(x[i])
# for i in range(24):
# data2.append(0)
# for i in range(t):
# data2[x[i]] += 1
# for i in range(1, 24):
# print(data2[i], end=' ')
# x = input()
# x = int(x)
# a = input().split()
# for i in range(x):
# a[i] = int(a[i])
# for i in range(x-1, -1, -1):
# print(a[i], end=' ')
# x = input()
# x = int(x)
# m = 24
# a = input().split()
# for i in range(x):
# a[i] = int(a[i])
# for i in range(x):
# if a[i] < m:
# m = a[i]
# print(m)
# x = [0] * 10
# print(x)
#
# data = []
# for i in range(10):
# data.append(x)
#
# x[0] = 5
# data = []
# for i in range(10):
# v = []
# for j in range(10):
# v.append(0)
# data.append(v)
#
# data[0][0] = 5
#
# for i in range(10):
# for j in range(10):
# print(data[i][j], end=' ')
# print()
# data = []
# for i in range(19):
# v = []
# for j in range(19):
# v.append(0)
# data.append(v)
# a = input()
# a = int(a)
# for i in range(a):
# a, b = input().split()
# a = int(a)
# b = int(b)
# data[a-1][b-1] = 1
# for i in range(19):
# for j in range(19):
# print(data[i][j], end=' ')
# print()
# data = []
# for i in range(19):
# v = []
#
# a = input().split()
# for j in range(19):
# v.append(int(a[j]))
# data.append(v)
# for i in range(19):
# for j in range(19):
# data[i][j] = int(data[i][j])
# b = input()
# b = int(b)
# for i in range(b):
# x, y = input().split()
# x = int(x)
# y = int(y)
# x -= 1
# y -= 1
# for j in range(19):
# if j != y:
# if data[x][j] == 1:
# data[x][j] = 0
# else:
# data[x][j] = 1
# for j in range(19):
# if j != x:
# if data[j][y] == 1:
# data[j][y] = 0
# else:
# data[j][y] = 1
# for i in range(19):
# for j in range(19):
# print(data[i][j], end=' ')
# print()
# data = []
# a, b = input().split()
# a = int(a)
# b = int(b)
# for i in range(a):
# v = []
# for j in range(b):
# v.append(0)
# data.append(v)
# c = input()
# c = int(c)
# for i in range(c):
# w, x, y, z = input().split()
# w = int(w)
# x = int(x)
# y = int(y)
# z = int(z)
# y -= 1
# z -= 1
# data[y][z] = 1
# if x == 0:
# for j in range(w):
# data[y][z+j] = 1
# else:
# for j in range(w):
# data[y+j][z] = 1
# for i in range(a):
# for j in range(b):
# print(data[i][j], end=' ')
# print()
# data = []
# for i in range(10):
# v = []
# a = input().split()
# for j in range(10):
# v.append(int(a[j]))
# data.append(v)
# x = 1
# y = 1
# while True:
# if data[x][y] == 2:
# data[x][y] = 9
# break
# elif data[x][y+1] == 1:
# if data[x+1][y] == 1:
# data[x][y] = 9
# break
# else:
# data[x][y] = 9
# x += 1
# else:
# data[x][y] = 9
# y += 1
# for i in range(10):
# for j in range(10):
# print(data[i][j], end=' ')
# print()
data = []
x = 0
y = 0
for i in range(7):
v = []
for j in range(7):
v.append(0)
data.append(v)
for i in range(7):
data[3][i] = 1
for k in range(3):
a, b = input().split()
a = int(a)
b = int(b)
a -= 1
b -= 1
data[i][j] = 2
for i in range(7):
if data[3][i] == 2:
data[3][i] = 1
for j in range(7):
data[j][i] += 1
else:
x += 1
if x != 7:
for i in range(7):
for j in range(7):
if data[i][j] == 3:
data[i][j] = 1
for k in range(7):
data[i][k] += 1
else:
y += 1
if y != 49:
for i in range(7):
for j in range(7):
if data[i][j] == 3:
data[i][j] = 1
for k in range(7):
data[i][k] += 1
for i in range(7):
for j in range(7):
print(data[i][j], end=' ')
print()
top of page

실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
2022.05.14.
2022.05.14.
댓글 0개
좋아요
댓글(0)
더 이상 게시물에 대한 댓글 기능이 지원되지 않습니다. 자세한 사항은 사이트 소유자에게 문의하세요.
bottom of page


