• <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
            <2025年6月>
            25262728293031
            1234567
            891011121314
            15161718192021
            22232425262728
            293012345

            常用鏈接

            留言簿(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!
            国产精品九九久久免费视频| 1000部精品久久久久久久久| 久久这里只精品国产99热| 国产精品久久久久影院色 | 精品国产综合区久久久久久| 国产激情久久久久影院老熟女免费| 国产AⅤ精品一区二区三区久久| 国产精品99久久久久久宅男| 午夜视频久久久久一区 | 99久久这里只精品国产免费| 亚洲香蕉网久久综合影视| 久久精品国产亚洲综合色| 精品熟女少妇aⅴ免费久久| 大香伊人久久精品一区二区| 嫩草影院久久99| 亚洲AV无码久久精品狠狠爱浪潮| 久久久国产精品福利免费| 久久久久se色偷偷亚洲精品av| 91久久精品电影| 亚洲午夜久久久久妓女影院| 精品综合久久久久久88小说| 精品国际久久久久999波多野| 久久综合久久伊人| 久久综合丝袜日本网| 亚洲AV日韩精品久久久久| 青青青青久久精品国产h久久精品五福影院1421 | 成人免费网站久久久| 亚洲国产成人久久精品99| 久久久久久免费一区二区三区| 久久久久亚洲精品日久生情 | 国产精品美女久久久久av爽| 婷婷五月深深久久精品| 2019久久久高清456| 亚洲欧美日韩久久精品| 精品视频久久久久| 精品久久久无码中文字幕天天| 久久精品这里热有精品| 97久久精品人人做人人爽| 亚洲国产成人久久精品影视 | 中文字幕无码久久精品青草| 国产精品久久久天天影视香蕉|