posts - 99,  comments - 8,  trackbacks - 0
#include <stdio.h>
#
include <stdlib.h>
int main ()
{
    int  i;
    char R;
    int r;
    
while ( (R = getchar()) != EOF )
    {
            getchar();
          
//将 R 转化为数字 
          
if ( '0' <= R && R <= '9')
             r 
= R - '0';
             
else if ( 'A' <= R && R <= 'Z' ) 
                  r 
= R - 'A' + 10;
                  
else if ( 'a' <= R && R <= 'z' )
                  r 
= R - 'a' + 36;
             
for (i = 2; i <= 62; i++)
             {
                 
if ( (i - 1% r == 0 )
                 {
                      printf (
"%d\n", i);
                      
break;
                 }
                 
else
                     
continue;
             }
    }
    
//system("pause");
    
return 0;
}
posted on 2010-08-29 11:41 雪黛依梦 阅读(312) 评论(0)  编辑 收藏 引用 所属分类: 大数

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


<2010年8月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
2930311234

常用链接

留言簿(4)

随笔分类

随笔档案

文章档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜