• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            posts - 195,  comments - 30,  trackbacks - 0

            In arithmetic we often use the scheme called 'round up by five' to round up a decimal fraction number into a decimal integer number whose fraction part equals to or is bigger than 0.5, otherwise, its fraction part is discarded.

            In this problem, you are to implement a similar sheme called 'round up by six'.

            Input

            The first line of the input is an integer N indicating the number of cases you are to process. Then from the second line there are N lines, each containing a number (may or may not be fractional).

            Output

            For each number in the input, you are to print the round-up-by-six version of the number in a single line.

            Sample Input

            2
            25.599
            0.6
            

            Sample Output

            25
            1
            
             
            #include<iostream>
            #include<cmath>
            using namespace std;
            int main()
            {int n;
            cin>>n;
            while(n--)
            {  double a;
            cin>>a;
            double b=floor(a);
            if(a-b>=0.6)
            cout<<b+1<<endl;
            else
            cout<<b<<endl;
            }
            return 0;
            }
            
            posted on 2009-07-03 00:56 luis 閱讀(239) 評論(0)  編輯 收藏 引用 所屬分類: 規律
            <2009年7月>
            2829301234
            567891011
            12131415161718
            19202122232425
            2627282930311
            2345678

            常用鏈接

            留言簿(3)

            隨筆分類

            隨筆檔案

            文章分類

            文章檔案

            友情鏈接

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            香蕉久久夜色精品升级完成| 99久久免费国产精品| 欧洲性大片xxxxx久久久| 久久精品成人影院| 狠狠色婷婷久久一区二区| 久久久久AV综合网成人| 久久国产精品免费一区| 国产精品久久久香蕉| 精品久久久久香蕉网| 99久久免费国产精品特黄| 久久精品国产亚洲精品2020| 99久久婷婷国产一区二区| 蜜臀av性久久久久蜜臀aⅴ麻豆| 久久久久久久国产免费看| 一本久久a久久精品vr综合| 精品久久国产一区二区三区香蕉| 久久久久se色偷偷亚洲精品av | 久久精品国产精品亚洲下载| 色青青草原桃花久久综合| 狠狠色伊人久久精品综合网| 乱亲女H秽乱长久久久| 亚洲七七久久精品中文国产| 久久久久久国产精品美女| 久久人人爽人人爽人人AV东京热| 久久婷婷色综合一区二区| 三级片免费观看久久| 国产69精品久久久久99| 99热成人精品免费久久| 久久不见久久见免费视频7| 成人午夜精品无码区久久| 亚洲日本va午夜中文字幕久久| 久久精品夜色噜噜亚洲A∨| 91久久精品91久久性色| 青青草国产精品久久| 久久婷婷激情综合色综合俺也去| 久久久精品视频免费观看| 欧美亚洲国产精品久久蜜芽| 91久久婷婷国产综合精品青草| 久久香蕉超碰97国产精品| 久久久久久国产精品免费无码 | 91久久成人免费|