• <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://m.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;
            }

             

            久久亚洲AV无码精品色午夜麻豆| 久久99久久99小草精品免视看| 久久国产免费| 久久久久久A亚洲欧洲AV冫| 久久精品国产亚洲AV影院| 久久成人国产精品| 四虎国产永久免费久久| 区久久AAA片69亚洲| 97久久超碰成人精品网站| 人妻无码久久精品| 色妞色综合久久夜夜| 久久99精品国产麻豆蜜芽| 久久午夜免费视频| 久久国产成人精品麻豆| 伊人久久大香线焦AV综合影院 | 无码任你躁久久久久久久| 久久综合精品国产二区无码| 国产成人综合久久精品尤物| 久久精品国产色蜜蜜麻豆| 久久艹国产| 国产精品99精品久久免费| 伊色综合久久之综合久久| 嫩草影院久久国产精品| 久久久久人妻精品一区二区三区 | 亚洲国产成人久久综合一区77| 亚洲中文字幕无码久久综合网| 久久无码AV中文出轨人妻| AAA级久久久精品无码片| 久久久久精品国产亚洲AV无码| 精品欧美一区二区三区久久久 | 综合人妻久久一区二区精品| 精品国产热久久久福利| 国产成人综合久久综合 | 99久久国语露脸精品国产| 久久精品无码专区免费东京热| 久久久久亚洲av成人网人人软件| 午夜视频久久久久一区 | 欧美粉嫩小泬久久久久久久| 亚洲国产成人久久精品动漫| 久久精品国产半推半就| 久久精品免费观看|