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

            misschuer

            常用鏈接

            統(tǒng)計

            積分與排名

            百事通

            最新評論

            Kiki & Little Kiki 1

            #include<iostream>
            #include
            <string>
            #include
            <set>
            using namespace std;

            int main()
            {
                
                multiset
            <int> a;
                
                multiset
            <int>::iterator p;
                
                multiset
            <int>::iterator it;
                
                
            char str[ 5 ];
                
                
            int v , t;
                
                
            while (scanf ("%d" , &t) != EOF)
                
            {
                    
                    
            while (t --)
                    
            {
                        
                        scanf (
            "%s%d" , str , &v);
                        
                        
            if( str[ 3 ] != '\0')
                        
            {
                            a.insert(v);
                            
                            
                        }

                        
                        
            else
                        

                            
                            it 
            = a.find(v);
                            
                            
            if(it != a.end())
                            
            {
                                printf(
            "%d\n" , *it);
                                
                                a.erase(it);
                            }

                            
                            
            else
                            
            {
                                
                                
                                
            if(*a.begin() > v)
                                
            {
                                    printf (
            "No Element!\n");
                                    
                                    
            continue;
                                }

                                
                                a.insert(v);
                                
                                it 
            = a.find(v);
                                
                                p 
            = it;
                                
                                it 
            --;
                                
                                printf(
            "%d\n",*it);
                                
                                a.erase(p);
                                
                                a.erase(it);
                            }

                            
                        }

                    }

                    
                    a.clear();
                    
                    printf (
            "\n");
                }

                
                
            return 23;
                
            }

            posted on 2009-04-18 10:49 此最相思 閱讀(130) 評論(0)  編輯 收藏 引用

            久久综合色老色| 99久久亚洲综合精品成人| 国产69精品久久久久APP下载| 久久精品女人天堂AV麻| 超级碰碰碰碰97久久久久| 久久亚洲AV成人无码电影| 久久99国产精一区二区三区| 91精品国产综合久久香蕉| 亚洲精品美女久久久久99小说| 人妻精品久久无码专区精东影业| 大伊人青草狠狠久久| 欧美一级久久久久久久大| 亚洲AV乱码久久精品蜜桃| 91久久香蕉国产熟女线看| 伊人久久综合无码成人网| 精品免费tv久久久久久久| 2021最新久久久视精品爱| 9999国产精品欧美久久久久久| 久久久久av无码免费网| 久久人人爽人人澡人人高潮AV | 久久亚洲高清观看| 婷婷久久五月天| 国内精品久久久久久麻豆| 久久亚洲精品国产精品| 人妻丰满?V无码久久不卡| 色综合色天天久久婷婷基地 | 久久久久亚洲AV成人片| 免费精品国产日韩热久久| 久久97久久97精品免视看秋霞 | 久久涩综合| 国产午夜精品理论片久久| 国产精品一久久香蕉产线看 | 伊人久久大香线蕉亚洲| 久久精品国产亚洲av瑜伽| 中文字幕亚洲综合久久| 久久99精品国产麻豆宅宅| 亚洲人成网亚洲欧洲无码久久 | 久久久亚洲裙底偷窥综合| 久久最新免费视频| 久久精品国产男包| 久久婷婷午色综合夜啪|