• <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!
            精品国产91久久久久久久a| 一级a性色生活片久久无少妇一级婬片免费放| 久久男人AV资源网站| 欧美精品九九99久久在观看| 无码日韩人妻精品久久蜜桃| 国产精品永久久久久久久久久| 97精品伊人久久大香线蕉| 99久久精品日本一区二区免费| 久久嫩草影院免费看夜色| 2020国产成人久久精品 | 久久综合综合久久狠狠狠97色88| 久久国产影院| 国产精品女同久久久久电影院| 超级碰久久免费公开视频| 久久亚洲精品成人AV| 伊人久久大香线蕉综合热线| 9999国产精品欧美久久久久久| 久久综合狠狠综合久久综合88| 久久婷婷色香五月综合激情 | 久久久久免费精品国产| 精品国产乱码久久久久软件 | 久久亚洲sm情趣捆绑调教| 国内精品久久久久久中文字幕| 久久久噜噜噜www成人网| 日产精品久久久久久久| 亚洲人成无码网站久久99热国产| 久久综合久久久| 青草影院天堂男人久久| 久久国产精品99精品国产987| 亚洲中文字幕无码一久久区| 久久99热这里只有精品国产| 久久九九久精品国产免费直播| 亚洲国产精品无码久久青草| 免费精品久久久久久中文字幕 | 香蕉久久影院| 午夜福利91久久福利| 伊人久久国产免费观看视频| 久久亚洲精品国产精品婷婷| 99久久夜色精品国产网站| 漂亮人妻被黑人久久精品| 久久精品这里热有精品|