쉽다 생각했는데..이렇게 했더니 시간초과 걸렸다..
그렇다면..
sys.stdin.readline()을 이용해보자!
시간초과 해결!!
기본 제공하는 input() 과 sys.stdin.readline()의 성능차이를 느낄 수 있는 문제였다.