
[SWEA - D3] 2805. ๋์๋ฌผ ์ํํ๊ธฐ
ยท
Algorithm/SWEA
๋์ ์ฝ๋ t = int(input()) for tc in range(1,t+1): n = int(input()) lt = n//2 rt = n//2 result = 0 for _ in range(n//2): arr = list(map(int,input())) result += sum(arr[lt:rt+1]) lt -= 1 rt += 1 for _ in range(n//2,n): arr = list(map(int,input())) result += sum(arr[lt:rt+1]) lt += 1 rt -= 1 print("#"+str(tc) , result ) ์ฝ๋๊ฐ ๋๋ฌด ์ง์ ๋ถํด์ ๋ค์ ํ์๋ค. ์์ ์ฝ๋ t = int(input()) for tc in range(1,t+1): n = int(input()..