백준 - 2417 정수 제곱근 Swift

AekT·2021년 10월 31일
post-thumbnail

백준 2417 정수 제곱근

문제 : https://www.acmicpc.net/problem/2417

Swift :

import Foundation

let input = UInt64(readLine()!)!

print(Int(ceil(sqrt(Double(input)))))
profile
으악

0개의 댓글