haju__log
[python][SWEA][D3] 3431. 준환이의 운동관리 본문
SW Expert Academy
SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!
swexpertacademy.com
T=int(input())
for test_case in range(1,T+1):
l,u,x=map(int,input().split())
if x>u:
print("#%d %d" %(test_case,-1))
elif x<l:
print("#%d %d" %(test_case,l-x))
elif x>=l:
print("#%d %d" % (test_case, 0))
'SWEA' 카테고리의 다른 글
[python][SWEA][D3] 4406. 모음이 보이지 않는 사람 (0) | 2023.05.05 |
---|---|
[python][SWEA][D3] 10505. 소득 불균형 (0) | 2023.05.05 |
[python][SWEA][D3] 12368. 24시간 (0) | 2023.05.05 |
[python][SWEA][D3] 13218. 조별과제 (0) | 2023.05.05 |
[python][SWEA][D2] 1945. 간단한 소인수분해 (0) | 2023.05.04 |