• <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>

            ACM___________________________

            ______________白白の屋
            posts - 182, comments - 102, trackbacks - 0, articles - 0
            <2025年8月>
            272829303112
            3456789
            10111213141516
            17181920212223
            24252627282930
            31123456

            常用鏈接

            留言簿(24)

            隨筆分類(332)

            隨筆檔案(182)

            FRIENDS

            搜索

            積分與排名

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

             

            MiYu原創, 轉帖請注明 : 轉載自 ______________白白の屋            

             

            題目地址 :

            http://acm.hdu.edu.cn/showproblem.php?pid=3082

            題目分析:

                 沒什么特殊的方法, 簡單模擬就可以了  :

             代碼 :

            代碼
            /*
            Mail to   : miyubai@gamil.com
            My Blog   : www.baiyun.me
            Link      : 
            http://www.cnblogs.com/MiYu  || http://www.shnenglu.com/MiYu
            Author By : MiYu
            Test      : 1
            Complier  : g++ mingw32-3.4.2
            Program   : HDU_3082
            Doc Name  : Simplify The Circuit
            */
            //#pragma warning( disable:4789 )
            #include <iostream>
            #include 
            <fstream>
            #include 
            <sstream>
            #include 
            <algorithm>
            #include 
            <string>
            #include 
            <set>
            #include 
            <map>
            #include 
            <utility>
            #include 
            <queue>
            #include 
            <stack>
            #include 
            <list>
            #include 
            <vector>
            #include 
            <cstdio>
            #include 
            <cstdlib>
            #include 
            <cstring>
            #include 
            <cmath>
            #include 
            <ctime>
            using namespace std;
            char str[110];
            char *tok;
            int main ()
            {
                
            int T;
                scanf ( 
            "%d",&T );
                
            while ( T -- ) {
                    
            int N;
                    
            double res = 0;
                    scanf ( 
            "%d"&N );
                    
            for ( int i = 1; i <= N; ++ i ) {
                        scanf ( 
            "%s", str );
                        tok 
            = strtok ( str, "-" );
                        
            int t = atoi ( tok );
                        
            int r = t;
                        
            while ( tok = strtok ( NULL, "-" ) ) {
                            t 
            = atoi ( tok );
                            r 
            += t;
                        }
                        res 
            += 1.0 / r;
                    }
                    printf ( 
            "%.2lf\n"1.0 / res );
                }
                
            return 0;
            }

             

            久久777国产线看观看精品| A级毛片无码久久精品免费| 精品久久久久久亚洲精品| 久久免费视频网站| 一本色道久久综合狠狠躁篇| 久久热这里只有精品在线观看| 欧洲人妻丰满av无码久久不卡| 99久久精品免费看国产一区二区三区| 伊人精品久久久久7777| 久久精品国产秦先生| 97精品久久天干天天天按摩| 亚洲精品NV久久久久久久久久| 久久综合给合久久国产免费 | 热99RE久久精品这里都是精品免费 | 久久久久一区二区三区| 久久综合久久伊人| 久久综合五月丁香久久激情| 精品水蜜桃久久久久久久| 久久精品亚洲男人的天堂| 国产精品欧美亚洲韩国日本久久| 99久久免费国产特黄| 精品国产乱码久久久久久郑州公司 | 久久综合九色综合网站| 久久久久亚洲av成人网人人软件 | 久久精品毛片免费观看| 韩国三级中文字幕hd久久精品| 九九久久精品国产| 久久AV高清无码| 免费精品国产日韩热久久| 久久婷婷激情综合色综合俺也去 | 久久综合一区二区无码| 精品久久久无码人妻中文字幕豆芽| 99国内精品久久久久久久| 亚洲国产精品嫩草影院久久| 精品人妻久久久久久888| 久久男人AV资源网站| 久久香蕉国产线看观看99| 伊人久久大香线蕉av不卡 | 思思久久99热免费精品6| 亚洲午夜久久影院| 日本久久中文字幕|