• <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 閱讀(229) 評論(0)  編輯 收藏 引用 所屬分類: 規律
            <2025年7月>
            293012345
            6789101112
            13141516171819
            20212223242526
            272829303112
            3456789

            常用鏈接

            留言簿(3)

            隨筆分類

            隨筆檔案

            文章分類

            文章檔案

            友情鏈接

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            久久国产香蕉视频| 伊人久久国产免费观看视频| 精品国产福利久久久| 久久亚洲精品无码观看不卡| 久久这里都是精品| 大伊人青草狠狠久久| 亚洲美日韩Av中文字幕无码久久久妻妇| 2021久久精品免费观看| 国内精品久久久久| 亚洲国产精品无码久久青草| 成人免费网站久久久| 久久亚洲国产最新网站| 99久久免费只有精品国产| 久久精品免费一区二区| 日本久久久精品中文字幕| 国内精品人妻无码久久久影院导航 | 久久午夜无码鲁丝片秋霞| 青青草国产成人久久91网| 蜜臀av性久久久久蜜臀aⅴ麻豆 | 久久露脸国产精品| 国产69精品久久久久777| 中文无码久久精品| 久久这里都是精品| 久久天天婷婷五月俺也去| 久久精品二区| 久久一区二区三区免费| 久久精品国产99久久香蕉| 伊人久久大香线焦综合四虎| 91精品国产乱码久久久久久| 色婷婷综合久久久久中文一区二区| 韩国三级中文字幕hd久久精品 | 亚洲中文字幕无码久久2020 | 久久91精品国产91久久户| 久久久无码人妻精品无码| 久久久久亚洲av无码专区| 久久综合综合久久综合| 久久这里只有精品18| 久久人人爽人人爽人人AV| 久久精品一本到99热免费| 色综合久久久久久久久五月| 久久久免费精品re6|