• <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
            <2011年5月>
            24252627282930
            1234567
            891011121314
            15161718192021
            22232425262728
            2930311234

            常用鏈接

            留言簿(24)

            隨筆分類(332)

            隨筆檔案(182)

            FRIENDS

            搜索

            積分與排名

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

             

            MiYu原創(chuàng), 轉(zhuǎn)帖請注明 : 轉(zhuǎn)載自 ______________白白の屋       

             

            題目地址:

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

            題目分析:

                 純粹的數(shù)學(xué)題, 數(shù)學(xué)歸納法的 應(yīng)用  , 最后 歸納得出  原題等價與 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!  回復(fù)  更多評論   

            2011-05-26 08:43 by Jhett
            This forum needed shkinag up and you?ve just done that. Great post!
            久久福利青草精品资源站免费| 亚洲国产精品无码久久久秋霞2 | 国产精品久久久久久久久久免费| 久久精品国产半推半就| 久久成人18免费网站| 99久久这里只精品国产免费| 久久精品国产第一区二区三区| 久久黄视频| 久久国产高潮流白浆免费观看| 天天做夜夜做久久做狠狠| 久久w5ww成w人免费| 青青草原综合久久大伊人导航| 亚洲午夜无码久久久久| 国产精品无码久久四虎| 色8久久人人97超碰香蕉987| 久久久久无码中| 久久久久综合网久久| 亚洲中文字幕无码一久久区| 国产成人精品久久综合| 国产婷婷成人久久Av免费高清| 怡红院日本一道日本久久 | 亚洲国产精品综合久久一线| 国产精品久久国产精麻豆99网站 | 久久无码中文字幕东京热| 国产福利电影一区二区三区久久老子无码午夜伦不 | 青草影院天堂男人久久| 一本久久知道综合久久| 久久性精品| 久久久久99精品成人片三人毛片| 91精品国产高清91久久久久久| 亚洲国产成人精品女人久久久 | 色综合久久久久综合体桃花网 | 久久久精品人妻一区二区三区蜜桃 | 2021久久精品免费观看| 久久精品国产亚洲Aⅴ香蕉| 麻豆精品久久久一区二区| 97久久久精品综合88久久| 99精品久久精品一区二区| 狠狠色婷婷综合天天久久丁香| 国产精品久久久久国产A级| AV无码久久久久不卡网站下载|