【发布时间】:2016-06-22 20:08:56
【问题描述】:
我在 CodinGame 网站上玩游戏。任务是找到最接近零的数字。这是给你的。
let n = Int(readLine()!)! // the number of temperatures to analyse
let temps = readLine()! // the n temperatures expressed as integers ranging from -273 to 5526
我不知道该怎么做。我猜有很多方法可以解决。
【问题讨论】: