• <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
            <2025年6月>
            25262728293031
            1234567
            891011121314
            15161718192021
            22232425262728
            293012345

            常用鏈接

            留言簿(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://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;
            }

             

            99久久国产亚洲综合精品| 久久精品一区二区影院| 久久久久久精品久久久久| 久久天天躁狠狠躁夜夜不卡| 综合网日日天干夜夜久久 | 久久久久久久女国产乱让韩| 久久人人爽人人爽人人片AV高清| 久久久久成人精品无码中文字幕 | 久久国产AVJUST麻豆| 久久精品一本到99热免费| 成人精品一区二区久久| 狠狠综合久久AV一区二区三区| 丁香五月网久久综合| 久久天天躁狠狠躁夜夜avapp| 99久久精品国产免看国产一区| 无码任你躁久久久久久| 久久se精品一区二区| 麻豆精品久久久久久久99蜜桃| 久久久91精品国产一区二区三区 | 久久精品国产亚洲AV蜜臀色欲| 久久精品国产精品青草app| 一本久久综合亚洲鲁鲁五月天| 热久久国产精品| 亚洲人成精品久久久久| 久久一区二区三区99| 2021国产成人精品久久| 97超级碰碰碰久久久久| 中文字幕无码精品亚洲资源网久久| 99精品久久久久久久婷婷| 91精品国产高清久久久久久io| 中文字幕热久久久久久久| 久久久久久久久久久| 香蕉99久久国产综合精品宅男自| 久久精品国产福利国产琪琪| 99久久精品免费国产大片| 欧美久久综合性欧美| 久久精品国产99国产精偷 | 久久精品国产99国产精品亚洲| 久久精品国产99国产精品| 久久久精品日本一区二区三区| 久久精品不卡|