• <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年11月>
            31123456
            78910111213
            14151617181920
            21222324252627
            2829301234
            567891011

            常用鏈接

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

             

            看久久久久久a级毛片| 久久久婷婷五月亚洲97号色| 亚洲综合伊人久久综合| 国内精品久久久久久久影视麻豆 | 伊人久久久AV老熟妇色| 久久精品国产亚洲AV忘忧草18| 久久这里只精品国产99热| 久久人人爽人人爽人人片AV麻豆| 久久热这里只有精品在线观看| 精品久久人人爽天天玩人人妻| 久久99国产综合精品| 亚洲?V乱码久久精品蜜桃 | 欧美午夜精品久久久久免费视 | 99久久精品免费看国产免费| 超级碰碰碰碰97久久久久| 久久91精品国产91久久麻豆| 久久久久亚洲AV综合波多野结衣| 久久人人爽人人爽人人片av麻烦 | 国产成人精品久久亚洲高清不卡 | 成人午夜精品无码区久久| 欧美亚洲另类久久综合| 亚洲色欲久久久综合网东京热| 亚洲国产成人久久精品影视| 亚洲国产另类久久久精品黑人| 久久午夜免费视频| 日本精品久久久久久久久免费| 97久久超碰国产精品旧版| 欧美黑人又粗又大久久久| 少妇被又大又粗又爽毛片久久黑人| 狠狠狠色丁香婷婷综合久久五月| 亚洲国产精品无码久久久久久曰 | 久久国产精品偷99| 久久精品免费大片国产大片| 亚洲国产精品无码久久| 久久中文字幕精品| 久久九九免费高清视频| 激情久久久久久久久久| 99久久国产主播综合精品 | 久久久亚洲欧洲日产国码aⅴ | 久久不见久久见免费视频7| 欧美熟妇另类久久久久久不卡|