PS/Baekjoon Online Judge

[백준18198] Basketball One-on-One [Python]

kimyoungrok 2023. 5. 2. 17:37
728x90

백준 18198 - 문제
백준 18198 - 입/출력


풀이

Alice 와 Barbara가 번걸아가면서 진행한 농구게임에 대한 정보가 주어진다.

중간에 게임이 끝나는 경우는 없기 때문에, 양쪽의 점수를 모두 다 더해준 후 최종점수를 기준으로 누가 이겼는지 출력해주면 된다.


소스코드

소스코드 보기


출처

 

18198번: Basketball One-on-One

The input consists of a single line with no more than 200 characters: the record of one game. The record consists of single letters (either A or B) alternating with single numbers (either 1 or 2), and includes no spaces or other extraneous characters. Each

www.acmicpc.net

728x90