백준 온라인저지
-
37 - 백준 온라인 저지에서 여러 줄 입력 받기 - 추가문풀 필요study with Q - 파이썬 2024. 4. 22. 20:19
#여러 줄 입력 받기 위해서는 한 줄 입력 : input() 함수 하나 input() 두 줄 입력 : input() 함수 두 개 사용 input() input() 여러 줄 입력 : 반복문 사용 N = 10 for n in range(N): input() # 예시 문제 두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오. 입력 첫째 줄에 테스트 케이스의 개수 T가 주어진다. 각 테스트 케이스는 한 줄로 이루어져 있으며, 각 줄에 A와 B가 주어진다. (0 > 5 1 1 >>> 2 2 3 >>> 5 3 4 >>> 7 9 8 >>> 17 5 2 >>> 7 백준 온라인 저지 > 12, 13 제외한 반복문 문제 풀기 replit 더보기 https://replit.com/@wh3308/onr..