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

            搜索

            積分與排名

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

             

            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://www.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!
            精品综合久久久久久97超人| 久久亚洲AV无码精品色午夜| 狠狠色婷婷久久一区二区| 99精品伊人久久久大香线蕉| 久久久久人妻一区精品色| 久久久精品国产免大香伊| 亚洲精品tv久久久久久久久久| 国产精品久久久99| 久久综合狠狠综合久久激情 | 99久久免费国产精品特黄| 一级做a爱片久久毛片| 日韩精品国产自在久久现线拍| 久久久中文字幕| 丁香久久婷婷国产午夜视频| 91久久精品无码一区二区毛片| 国产高清国内精品福利99久久| 久久精品18| 麻豆av久久av盛宴av| 久久亚洲日韩精品一区二区三区| 久久久久久久久久久久中文字幕 | 国产婷婷成人久久Av免费高清 | 国产精品天天影视久久综合网| 久久久久无码精品国产| 狠狠综合久久综合中文88| 国产精品久久久久9999| 99久久免费只有精品国产| 国产福利电影一区二区三区久久老子无码午夜伦不 | 国内精品伊人久久久久妇| 久久亚洲私人国产精品| 国产 亚洲 欧美 另类 久久| 天堂无码久久综合东京热| 久久婷婷五月综合97色| 久久亚洲国产欧洲精品一| 久久久久国色AV免费看图片| 伊人色综合久久天天人手人婷| 久久精品国产影库免费看| 精品综合久久久久久88小说| 97精品国产97久久久久久免费| 99久久国产亚洲高清观看2024 | 久久精品国产99久久香蕉| 久久久久波多野结衣高潮|