관리 메뉴

솜씨좋은장씨

[BaekJoon] 26500번 : Absolutely (Python) 본문

Programming/코딩 1일 1문제

[BaekJoon] 26500번 : Absolutely (Python)

솜씨좋은장씨 2023. 1. 7. 23:30
728x90
반응형

코딩 1일 1문제! 오늘의 문제는 백준의 Absolutely 입니다.

 

26500번: Absolutely

The first line contains a single positive integer, n, indicating the number of data sets. Each data set is on a separate line and contains two values on the number line, separated by a single space.

www.acmicpc.net

👨🏻‍💻 코드 ( Solution )

def absolutely(value1, value2):
    return round(abs(value1-value2), 1)


if __name__ == "__main__":
    for _ in range(int(input())):
        value1, value2 = map(float, input().split())
        
        print(absolutely(value1=value1, value2=value2))
 

GitHub - SOMJANG/CODINGTEST_PRACTICE: 1일 1문제 since 2020.02.07

1일 1문제 since 2020.02.07. Contribute to SOMJANG/CODINGTEST_PRACTICE development by creating an account on GitHub.

github.com

Comments