poj 3077Rounders(模拟)

Description

For a given number, if greater than ten, round it to the nearest ten, then (if that result is greater than 100) take the result and round it to the nearest hundred, then (if that result is greater than 1000) take that number and round it to the nearest thousand, and so on …

Input

Input to this problem will begin with a line containing a single integer n indicating the number of integers to round. The next n lines each contain a single integer x (0

Original: https://www.cnblogs.com/hrhguanli/p/5192996.html
Author: hrhguanli
Title: poj 3077Rounders(模拟)

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/546487/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球