From e288fb27f13b3882f233e2392ac91db830d49c43 Mon Sep 17 00:00:00 2001 From: pmh5574 Date: Wed, 28 Jun 2023 09:30:07 +0900 Subject: [PATCH 1/2] 230628 --- ThisCodeTest/implement/11.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ThisCodeTest/implement/11.py b/ThisCodeTest/implement/11.py index 6a90944..d356e5e 100644 --- a/ThisCodeTest/implement/11.py +++ b/ThisCodeTest/implement/11.py @@ -27,10 +27,10 @@ # 사과가 있으면 몸길이 안줄임 if _map[i][j] == 1: - + if timeCount in X: # 해당 값이지 체크 else: - + qwer timeCount+=1 # 회전함수 @@ -44,5 +44,5 @@ def rotate_90(m): ret[k][N-1-i] = m[i][k] return ret -print(X) -print(C) \ No newline at end of file +# print(X) +# print(C) \ No newline at end of file From 9d067f08dc1b58401e5793a36965540dd1bb2a5f Mon Sep 17 00:00:00 2001 From: pmh5574 Date: Thu, 29 Jun 2023 09:30:17 +0900 Subject: [PATCH 2/2] 230629 --- ThisCodeTest/implement/11.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ThisCodeTest/implement/11.py b/ThisCodeTest/implement/11.py index d356e5e..0fcc56b 100644 --- a/ThisCodeTest/implement/11.py +++ b/ThisCodeTest/implement/11.py @@ -24,14 +24,16 @@ for i in range(N): for j in range(N): + for k in range(len(X)): - # 사과가 있으면 몸길이 안줄임 - if _map[i][j] == 1: - if timeCount in X: # 해당 값이지 체크 + # 사과가 있으면 몸길이 안줄임 + if _map[i][j] == 1: + if timeCount == k: # 시간지난거 체크 + + else: + qwer - else: - qwer - timeCount+=1 + timeCount+=1 # 회전함수 def rotate_90(m):