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

            搜索

            積分與排名

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

             

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

             

            題目地址:

                 http://acm.hdu.edu.cn/showproblem.php?pid=1098

            題目分析:

                 純粹的數學題, 數學歸納法的 應用  , 最后 歸納得出  原題等價與 18 + k*a 是否能被65整除.

            代碼如下 :

            代碼
            /*
            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_1098
            Doc Name  : Ignatius's puzzle
            */
            //#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;
            inline 
            bool scan_d(int &num)
            {
                    
            char in;bool IsN=false;
                    
            in=getchar();
                    
            if(in==EOF) return false;
                    
            while(in!='-'&&(in<'0'||in>'9')) in=getchar();
                    
            if(in=='-'){ IsN=true;num=0;}
                    
            else num=in-'0';
                    
            while(in=getchar(),in>='0'&&in<='9'){
                            num
            *=10,num+=in-'0';
                    }
                    
            if(IsN) num=-num;
                    
            return true;
            }
            int main ()
            {
                
            int N;
                
            while ( scan_d ( N ) ) {
                    
            if ( N % 65 == 0 )
                        puts ( 
            "no" );
                    
            else {
                        
            int i;
                        
            for ( i = 0; i < 65++ i ) {
                            
            if ( ( i * N + 18 ) % 65 == 0 ) {
                                printf ( 
            "%d\n", i );
                                
            break;
                            }
                        }
                        
            if ( i == 65 ) puts ( "no" );
                    }
                }
                
            return 0;
            }

             

            Feedback

            # This forum needed shkinag up and you?ve just done that. Great post!  回復  更多評論   

            2011-05-26 08:43 by Jhett
            This forum needed shkinag up and you?ve just done that. Great post!
            国产亚洲色婷婷久久99精品| 久久久久亚洲?V成人无码| 国产免费久久精品99re丫y| 麻豆国内精品久久久久久| 无码人妻少妇久久中文字幕| 中文精品99久久国产| 亚洲AV无码久久精品色欲| 久久免费视频观看| 久久强奷乱码老熟女| 久久AV高清无码| 中文字幕久久亚洲一区| 久久国产欧美日韩精品| 国产毛片久久久久久国产毛片| 伊人精品久久久久7777| 国产精品久久久久无码av| 久久99这里只有精品国产| 久久国产精品久久| 国产精品久久久久久久app| 91久久成人免费| 日产精品久久久一区二区| 欧美成a人片免费看久久| 久久精品www人人爽人人| 伊人 久久 精品| 久久精品国产精品亚洲下载| 国产精品免费福利久久| 亚洲国产另类久久久精品| 久久综合九色综合欧美就去吻 | 国产福利电影一区二区三区,免费久久久久久久精 | 欧美成人免费观看久久| 成人亚洲欧美久久久久 | 久久天天躁狠狠躁夜夜躁2O2O| 久久亚洲欧洲国产综合| 99久久精品无码一区二区毛片| 久久国产精品成人片免费| 亚洲乱码中文字幕久久孕妇黑人| 欧美午夜A∨大片久久| 国内精品伊人久久久久网站| 女人香蕉久久**毛片精品| 久久香蕉一级毛片| 一级做a爰片久久毛片人呢| 大美女久久久久久j久久|