• <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原創(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://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!  回復(fù)  更多評論   

            2011-05-26 08:43 by Jhett
            This forum needed shkinag up and you?ve just done that. Great post!
            亚洲国产高清精品线久久| 久久免费的精品国产V∧| 国产精品久久国产精品99盘| 色婷婷综合久久久久中文| 亚洲国产精品嫩草影院久久| 亚洲欧美精品一区久久中文字幕| 久久99精品久久久久久秒播| 久久夜色精品国产| 亚洲精品无码久久久久去q| 99精品国产免费久久久久久下载 | avtt天堂网久久精品| 亚洲va久久久噜噜噜久久狠狠| 精品国产乱码久久久久软件| 国产A级毛片久久久精品毛片| 97久久天天综合色天天综合色hd| 狠狠色丁香久久婷婷综合图片| 国产精品久久久久久影院| 久久无码人妻一区二区三区 | 精品熟女少妇aⅴ免费久久| 国产精品毛片久久久久久久| 国内精品久久久久久久涩爱| 无码人妻久久一区二区三区蜜桃| 久久综合欧美成人| 久久国产成人精品麻豆| 久久久久久噜噜精品免费直播| 久久人人爽人人爽人人AV| 国产激情久久久久影院老熟女免费| 久久人人爽人人爽人人片AV麻豆 | 丰满少妇人妻久久久久久| 久久久久久国产精品无码超碰 | 99久久国产综合精品成人影院| 久久成人18免费网站| 国产精品福利一区二区久久| 精品人妻伦九区久久AAA片69| 久久AⅤ人妻少妇嫩草影院| 久久天天躁狠狠躁夜夜96流白浆| 精品久久久久久无码人妻热 | 亚洲精品无码久久久久去q| 麻豆av久久av盛宴av| 亚洲国产成人乱码精品女人久久久不卡 | 99re久久精品国产首页2020|