백준 파이썬 #1074: Z

https://www.acmicpc.net/problem/1074 Z자 모양의 프랙탈 구조를 이루는 행렬의 위치에 따른 값을 찾는 문제. import sys sys.stdin = open(‘C:/Users/USER/Desktop/vs/py/py1/input.txt’, ‘r’) def input(): return sys.stdin.readline().strip() # ============================================================================== A, Y, X = map(int, input().split()) N = 2**A def Z(N, Y, X, y, x, val): if N == 1: print(val-1) return K = N//2 quadrant = 0 if (y <= … Read more