-
import Foundation var n = Int(readLine() ?? "") ?? 0 var count = 0 while true { if n % 5 == 0 { count = count + n/5 break } n = n - 3 count = count + 1 if n
123456789101112131415let line = readLine() ?? ""var n = Int(line) ?? 0var count = 1while true { n = n - count if n
1 2 3 4 5 6 7 8 9 let line = readLine() ?? "" var n = Int(line) ?? 0 n = n - 1 var count = 1 while n > 0 { n = n - count * 6 count = count + 1 } print(count) cs