九度oj1074
来源:互联网 发布:怎么看mac国行还是港行 编辑:程序博客网 时间:2024/04/29 22:42
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
int snum(int num)
{
int total = 0 ;
int orinum = num;
if( num == 0)
return 1;
else
{
while(num > 0)
{
total = total * 10 + num % 10;
num /= 10;
}
if(total == orinum)
return 1;
else
return 0;
}
}
int main(int argc, char* argv[])
{
int i;
for(i=0;i<256;i++)
{
if(snum(i*i) == 1)
printf("%d\n",i);
}
return 0;
}
- 九度oj1074
- light oj1074
- 【九度OJ】:九度OJ 1050
- 【九度OJ】:九度OJ 1053
- 【九度OJ】:九度OJ 1056
- 【九度OJ】:九度OJ 1059
- 【九度OJ】:九度OJ 1206
- 人生九度
- 九度oj1181
- 九度oj1207
- 九度oj1182
- 九度o j1026
- 九度oj1186
- 九度oj1127
- 九度oj1051
- 九度oj1197
- 九度oj1188
- 九度oj1195
- JQuery插件第二十个:利用json数组即时创建明细列表
- Unix/Linux 桌面环境相关知识备忘
- 柯达破产背后的品牌价值
- VC6中编译参数设置
- 网上偶然间看到的,转一下
- 九度oj1074
- uva 401 (2)
- VC6默认目录设置SDK
- 暴风影音去广告补丁NSIS代码开放
- 《Java编程思想》之接口(Java中实现多重继承?!)
- 第六章 过程总结
- 从瀑布到敏捷(四)给我们的系统增加最简单的防护——在CI系统中增加版本基础验证
- 中国春节和犹太人的春节
- c++程序设计实验报告(一)