• <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
            <2010年8月>
            25262728293031
            1234567
            891011121314
            15161718192021
            22232425262728
            2930311234

            常用鏈接

            留言簿(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;
            }

             

            久久综合色老色| 国产精自产拍久久久久久蜜| 久久精品国产男包| 人妻少妇久久中文字幕| 久久天天躁狠狠躁夜夜网站| 99精品国产在热久久| 国产精品狼人久久久久影院 | 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 亚洲精品国产字幕久久不卡| 久久久久人妻一区二区三区vr| 国产精品美女久久久久| 久久久久久久综合日本| 久久香综合精品久久伊人| 国产精品欧美久久久久天天影视| 欧美精品国产综合久久| 色综合久久88色综合天天| 久久只有这里有精品4| 一级做a爰片久久毛片16| 久久国产欧美日韩精品| 精品久久久久中文字幕一区| 人人狠狠综合久久88成人| 欧美亚洲日本久久精品| 成人资源影音先锋久久资源网| 久久这里的只有是精品23| 88久久精品无码一区二区毛片| 日韩人妻无码精品久久免费一| 久久久久一本毛久久久| 久久免费视频观看| 久久亚洲精品国产精品| 一本一道久久a久久精品综合 | 国产V亚洲V天堂无码久久久| 亚洲另类欧美综合久久图片区| 国产AⅤ精品一区二区三区久久 | 青青国产成人久久91网| 久久亚洲中文字幕精品有坂深雪| 99久久无色码中文字幕人妻| 久久久久久久久波多野高潮| 久久久这里有精品| 伊人久久精品无码av一区| 久久久亚洲欧洲日产国码是AV| 婷婷国产天堂久久综合五月|