您需要 登录 才可以下载或查看,没有账号?立即注册
Introduction The first century spans from the year 1 up to and including the year 100, The second - from the year 101 up to and including the year 200, etc. Task Given a year, return the century it is in. Input , Output Examples centuryFromYear(1705) returns (18) centuryFromYear(1900) returns (19) centuryFromYear(1601) returns (17) centuryFromYear(2000) returns (20)复制代码
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)
GMT+8, 2026-3-1 19:59
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.