BOJ - 2033 - 반올림 Updated: July 09, 2020 def solution(): N = int(input()) div = 10 while N > div: if N % div >= div // 2: N += div N -= (N % div) div *= 10 print(N) solution() https://www.acmicpc.net/problem/2033 Share on Twitter Facebook LinkedIn Previous Next Leave a comment
Leave a comment