본문 바로가기
python-algorithm

백준 Not A + B

by 무적김두칠 2024. 2. 9.

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 하면됨

반응형

댓글