From 714e95a8d140e9613c8bcc3896188429a13952ad Mon Sep 17 00:00:00 2001 From: Seong Joon Hee Date: Wed, 10 May 2023 13:22:41 +0900 Subject: [PATCH] =?UTF-8?q?#17=20:=202579=5F=EA=B3=84=EB=8B=A8=20=EC=98=A4?= =?UTF-8?q?=EB=A5=B4=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...63\204\353\213\250 \354\230\244\353\245\264\352\270\260.py" | 3 +++ 1 file changed, 3 insertions(+) diff --git "a/\354\235\264\355\213\260\354\244\200\355\235\254/2579_\352\263\204\353\213\250 \354\230\244\353\245\264\352\270\260.py" "b/\354\235\264\355\213\260\354\244\200\355\235\254/2579_\352\263\204\353\213\250 \354\230\244\353\245\264\352\270\260.py" index 2a0bf00..301b097 100644 --- "a/\354\235\264\355\213\260\354\244\200\355\235\254/2579_\352\263\204\353\213\250 \354\230\244\353\245\264\352\270\260.py" +++ "b/\354\235\264\355\213\260\354\244\200\355\235\254/2579_\352\263\204\353\213\250 \354\230\244\353\245\264\352\270\260.py" @@ -41,6 +41,9 @@ ########################################################################################### #미리 리스트의 공간을 모두 할당 받는(?)건 낭비인가? 싶어서 다시 작성해봤지만 런타임에러 뜸 +import sys +input = sys.stdin.readline #이렇게 해도 런타임에러 발생 + n = int(input()) #계단 개수 score = [] #계단 점수 리스트 -> 계단 개수만큼만 할당 for x in range(n) :