• <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年10月>
            262728293012
            3456789
            10111213141516
            17181920212223
            24252627282930
            31123456

            常用鏈接

            留言簿(24)

            隨筆分類(332)

            隨筆檔案(182)

            FRIENDS

            搜索

            積分與排名

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

            HDU 2573 HDOJ 2573 Typing ACM 2573 IN HDU

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

            MiYu原創, 轉帖請注明 : 轉載自 ______________白白の屋    

             

            純模擬, 沒什么好說的, 直接代碼 

            代碼
            /*
            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_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;
            }

             

            久久无码AV一区二区三区| 亚洲国产高清精品线久久| 久久国产高清字幕中文| 久久亚洲视频| 久久亚洲精品国产亚洲老地址 | 青春久久| 久久精品aⅴ无码中文字字幕重口| 欧美精品一区二区久久| 99久久精品国产高清一区二区 | 久久亚洲AV成人无码| 狠狠色丁香久久婷婷综合| 99精品久久精品| 一本久久a久久精品vr综合| 成人国内精品久久久久一区| 国产精品美女久久久m| 97精品国产97久久久久久免费| 日本久久久精品中文字幕| 久久夜色精品国产噜噜亚洲a| 狠狠色丁香久久婷婷综合图片| 一极黄色视频久久网站| 国内精品久久久久影院薰衣草 | 精品久久久久久国产| 日韩乱码人妻无码中文字幕久久 | 中文字幕无码av激情不卡久久| 久久99国内精品自在现线| 91精品国产综合久久香蕉| 久久人人爽人人爽人人片av高请 | 2021精品国产综合久久| 国产成人精品久久| 亚洲午夜久久久| 久久午夜综合久久| 久久精品国产亚洲Aⅴ蜜臀色欲| 一本色道久久HEZYO无码| 久久精品国产99久久丝袜| 国产免费久久久久久无码| 国产成人无码精品久久久免费| 久久99精品国产麻豆婷婷| 四虎国产精品成人免费久久| 久久久久99精品成人片直播| 国产精品久久久久久搜索| 激情综合色综合久久综合|