강의

멘토링

커뮤니티

Inflearn Community Q&A

f1sher27434468's profile image
f1sher27434468

asked

Introduction to Python Algorithm Problem Solving (Coding Test Preparation)

K 번째 수 코드 질문입니다..

Written on

·

163

0

import sys

sys.stdin=open("TextFile1.txt", "rt")

T=int(input())

for t in range (T):

    n ,s ,e ,k =map(int, input().split())

    a=list(map(int, input().split()))

    print(a)

이렇게 똑같이 입력했는데 

계속 예외가 발생함

too many values to unpack (expected 4)

이렇게 뜨네요vㅍ

python코테 준비 같이 해요!

Answer 1

0

codingcamp님의 프로필 이미지
codingcamp
Instructor

안녕하세요^^

제 컴퓨터에서는 이상없이 읽어드립니다. 

TextFile1.txt 파일에 입력이 형식에 맞게 적혀있는지 확인해 보세요.

f1sher27434468's profile image
f1sher27434468

asked

Ask a question