博客
关于我
25:求特殊自然数
阅读量:625 次
发布时间:2019-03-13

本文共 738 字,大约阅读时间需要 2 分钟。

#include
int ten_to_nine(long int n,long n1){ int a=n,number=0;//a=n是为了保存10进制,然后输出 int i=0,N=0,i1=0,N1=0; int temp[3]={ 0},temp1[3]={ 0}; while(n!=0)//8-14行用数组来保存9进制数 { temp[i]=n%9; n=n/9; i++; } N=i; while(n1!=0)//16-22行用数组来保存9进制数 { temp1[i1]=n1%7; n1=n1/7; i1++; } N1=i1; for(i=0;i
//using namespace std;//int main()//{ // int i;// for (i = 65; i <= 342; i++) // { // if ((i % 9 == i / 49) &&// (i / 9 % 9 == i / 7 % 7) &&// (i / 81 == i % 7)) // { // cout << i << endl;// cout << i / 49 << i / 7 % 7 << i % 7 << endl;// cout << i / 81 << i / 9 % 9 << i % 9 << endl;// break;// }// }// return 0;//}

转载地址:http://avkaz.baihongyu.com/

你可能感兴趣的文章
mysql中having的用法
查看>>
MySQL中interactive_timeout和wait_timeout的区别
查看>>
mysql中int、bigint、smallint 和 tinyint的区别、char和varchar的区别详细介绍
查看>>
mysql中json_extract的使用方法
查看>>
mysql中json_extract的使用方法
查看>>
mysql中kill掉所有锁表的进程
查看>>
mysql中like % %模糊查询
查看>>
MySql中mvcc学习记录
查看>>
mysql中null和空字符串的区别与问题!
查看>>