• <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年9月>
            2930311234
            567891011
            12131415161718
            19202122232425
            262728293012
            3456789

            常用鏈接

            留言簿(24)

            隨筆分類(332)

            隨筆檔案(182)

            FRIENDS

            搜索

            積分與排名

            最新隨筆

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            HDU 2573 HDOJ 2573 Typing ACM 2573 IN HDU

            Posted on 2010-11-16 17:30 MiYu 閱讀(564) 評(píng)論(0)  編輯 收藏 引用 所屬分類: ACM ( 水題 )

            MiYu原創(chuàng), 轉(zhuǎn)帖請(qǐng)注明 : 轉(zhuǎn)載自 ______________白白の屋    

             

            純模擬, 沒(méi)什么好說(shuō)的, 直接代碼 

            代碼
            /*
            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_2573 
            Doc Name  : Typing
            */
            //#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;
            bool isup = false
            int main ()
            {
                
            int T;
                cin 
            >> T;
                
            while ( T -- ) {
                      
            int N;
                      
            string str, word; 
                      cin 
            >> N;
                      
            while ( N -- ) {
                           cin 
            >> str;
                           
            if ( str.size() == 1 ) {
                               word 
            += char( isup ? toupper(str[0]) : tolower (str[0]) );     
                           } 
            else if ( str == "Caps" ) isup = !isup;
                           
            else {
                                cin 
            >> str;
                                word 
            += char!isup ? toupper(str[0]) : tolower (str[0]) );          
                           }    
                      }   
                      cout 
            << word << endl;
                      isup 
            = false;   
                }
                
            return 0;
            }

             

            狠狠人妻久久久久久综合| 久久亚洲精品成人无码网站| 久久国产乱子伦免费精品| 久久亚洲国产成人精品性色| 精品久久久久久国产| www亚洲欲色成人久久精品| 亚洲精品无码久久不卡| 国产精品久久久久久久| 青青久久精品国产免费看| 少妇高潮惨叫久久久久久| 久久99精品久久久久久9蜜桃 | 无码AV波多野结衣久久| 久久精品无码一区二区三区| 亚洲色欲久久久久综合网| 91精品国产91久久久久久| 欧美黑人又粗又大久久久| 国产精品伦理久久久久久| 久久精品人人做人人妻人人玩| 狠狠色伊人久久精品综合网| 乱亲女H秽乱长久久久| 色偷偷88欧美精品久久久 | 久久精品国产亚洲av麻豆图片| AV色综合久久天堂AV色综合在| 一级做a爰片久久毛片毛片| 狠狠色丁香久久婷婷综| 亚洲精品白浆高清久久久久久 | 91性高湖久久久久| 日本欧美久久久久免费播放网| 久久午夜福利电影| 国产免费久久久久久无码| 国产成人久久精品区一区二区| 久久亚洲精品国产精品| 亚洲国产欧洲综合997久久| 欧美精品国产综合久久| 欧美日韩久久中文字幕| 99久久精品国产一区二区| 欧美国产成人久久精品| 人妻丰满?V无码久久不卡| 热99RE久久精品这里都是精品免费| 久久人人超碰精品CAOPOREN| 三级片免费观看久久|