https://www.acmicpc.net/problem/23530
23530번: Not A + B
You are required to output an integer $c$ for each test in a separate line. If there are multiple solutions, you may output any of them.
www.acmicpc.net
1
2
3
4
5
6
7
8
9
10
|
def sol(a, b):
return 1
if __name__ == '__main__':
t = int(input())
for i in range(t):
a, b = map(int, input().split())
print(sol(a, b))
|
cs |
a와 b를 더한 값이 아닌 값 c를 출력해야하는데
a,b가 각각 1부터 시작하므로 1만 return 하면됨
반응형
'python-algorithm' 카테고리의 다른 글
leetcode 2357. Make Array Zero by Subtracting Equal Amounts (1) | 2024.02.09 |
---|---|
leetcode 2586. Count the Number of Vowel Strings in Range (0) | 2024.02.09 |
백준 27465 소수가 아닌 수 (0) | 2024.02.09 |
백준 14215 세 막대 (0) | 2024.02.08 |
백준 1308 D-Day (1) | 2024.02.08 |
댓글