• <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>
            心如止水
            Je n'ai pas le temps
            posts - 400,comments - 130,trackbacks - 0
            RE一次,WA兩次,結(jié)果是因?yàn)樘峤诲e(cuò)了題目。
            以下是我的代碼:
            #include<iostream>
            #include
            <sstream>
            #include
            <vector>
            #include
            <string>
            #include
            <algorithm>
            #include
            <cstdio>
            using namespace std;

            struct Type
            {
                Type():AC(
            false),tried(0) {}
                
                
            bool AC;
                
            int tried,AC_time;
            };

            struct Type2
            {
                Type2(
            int aa,int bb,int cc):id(aa),solved(bb),total_time(cc) {}
                
                
            int id;
                
            int solved;
                
            int total_time;
            };
            bool operator<(const Type2 &a,const Type2 &b)
            {
                
            return ((a.solved>b.solved) ||
                        (a.solved
            ==b.solved && a.total_time<b.total_time) ||
                        (a.solved
            ==b.solved && a.total_time==b.total_time && a.id<b.id));
            }

            int main()
            {
            #ifndef ONLINE_JUDGE
                freopen(
            "data.in","r",stdin);
            #endif
                
                
            int T;
                scanf(
            "%d",&T);
                cin.
            get();cin.get();
                
                
            bool first_case(true);
                
            while(T--)
                {
                    
            if(first_case)
                        first_case
            =false;
                    
            else
                        printf(
            "\n");
                    
                    Type r[
            107][17];
                    
            bool be[107]={false};
                    
                    
            string in;
                    
            while(getline(cin,in&& !in.empty())
                    {
                        
            int id,prob,tm;
                        
            char state;
                        istringstream(
            in)>>id>>prob>>tm>>state;
                        
                        be[id]
            =true;
                        
            if(state=='R' || state=='U' || state=='E' || r[id][prob].AC)
                            
            continue;
                        
            if(state=='C')
                        {
                            r[id][prob].AC
            =true;
                            r[id][prob].AC_time
            =tm+20*r[id][prob].tried;
                        }
                        
            else
                            r[id][prob].tried
            ++;
                    }
                    vector
            <Type2> a;
                    
            for(int i=1;i<=100;i++)
                        
            if(be[i])
                        {
                            
            int t1(0),t2(0);
                            
            for(int j=1;j<=9;j++)
                                
            if(r[i][j].AC)
                                {
                                    t1
            ++;
                                    t2
            +=r[i][j].AC_time;
                                }
                            a.push_back(Type2(i,t1,t2));
                        }
                    sort(a.begin(),a.end());
                    
                    
            for(int i=0;i<a.size();i++)
                        printf(
            "%d %d %d\n",a[i].id,a[i].solved,a[i].total_time);
                }
                
                
            return 0;
            }
            posted on 2011-09-06 14:08 lee1r 閱讀(408) 評(píng)論(0)  編輯 收藏 引用 所屬分類: 題目分類:基礎(chǔ)/模擬
            人妻无码αv中文字幕久久琪琪布| 少妇久久久久久被弄到高潮| 久久久精品人妻一区二区三区蜜桃 | 亚洲日韩中文无码久久| 国产亚洲精品美女久久久| 久久国产视频网| 国产精品免费福利久久| 久久久久亚洲AV无码专区桃色| 亚洲色大成网站WWW久久九九| 精品久久久久久无码中文野结衣| 中文字幕精品久久久久人妻| 久久精品国产91久久综合麻豆自制 | 69久久精品无码一区二区| 武侠古典久久婷婷狼人伊人| 成人国内精品久久久久一区| 人妻无码精品久久亚瑟影视| 国产精品一区二区久久精品无码 | 久久综合丁香激情久久| 中文字幕乱码人妻无码久久| 色播久久人人爽人人爽人人片aV | 亚洲国产精品无码久久久秋霞2 | 国内精品久久国产大陆| 久久久久久亚洲精品成人 | 狠狠久久亚洲欧美专区| 看久久久久久a级毛片| 国产亚洲精品久久久久秋霞 | 久久久无码一区二区三区| 久久亚洲精品国产精品婷婷| 品成人欧美大片久久国产欧美...| 久久永久免费人妻精品下载| 久久亚洲精品无码AV红樱桃| 久久久久青草线蕉综合超碰| 欧美亚洲国产精品久久久久| 午夜视频久久久久一区 | 国产精品久久久久乳精品爆| 国产午夜久久影院| 久久九九有精品国产23百花影院| 成人综合伊人五月婷久久| 99久久国产亚洲高清观看2024| 国产精品欧美久久久久无广告| 久久强奷乱码老熟女|