• <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原創, 轉帖請注明 : 轉載自 ______________白白の屋       

             

            題目地址:

                 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!
            国产精品亚洲美女久久久| 久久99精品国产麻豆婷婷| 99久久精品免费看国产一区二区三区 | 国产精品一区二区久久不卡| 久久精品国产福利国产秒| 久久久久久久国产免费看| 亚洲午夜久久久久久噜噜噜| 久久综合狠狠综合久久激情 | 亚洲一区精品伊人久久伊人| 国产精品99精品久久免费| 久久人人爽人人澡人人高潮AV| 99久久国产综合精品女同图片 | 亚洲国产精品无码久久98| 青青草原综合久久| A狠狠久久蜜臀婷色中文网| 久久香蕉国产线看观看猫咪?v| 久久精品中文騷妇女内射| 最新久久免费视频| 国产精品gz久久久| 国产成人精品白浆久久69| 久久人妻少妇嫩草AV蜜桃| 天天综合久久一二三区| 国产无套内射久久久国产| 日本三级久久网| 久久国产乱子伦精品免费强| 久久综合狠狠综合久久| 亚洲中文字幕无码一久久区| 精品乱码久久久久久夜夜嗨| 久久婷婷久久一区二区三区| …久久精品99久久香蕉国产| 人妻少妇久久中文字幕| 久久人人爽人人爽人人AV| 亚洲愉拍99热成人精品热久久| 久久中文字幕人妻熟av女| 国产精品亚洲综合久久| 国产69精品久久久久APP下载| 青青热久久国产久精品 | 欧美激情精品久久久久久| 精品久久综合1区2区3区激情| 久久国产精品视频| 久久一区二区免费播放|