poj1316
来源:互联网 发布:什么是面向对象的编程 编辑:程序博客网 时间:2024/06/15 03:30
#include <cstdio>
int main()
{
int result[10001];
result[0]=0;
for(int i=1; i<=10000; i++)
{
int m=0;
int wan=i/10000;
int qian=(i-wan*10000)/1000;
int bai=(i-wan*10000-qian*1000)/100;
int shi=(i-wan*10000-qian*1000-bai*100)/10;
int ge=(i-wan*10000-qian*1000-bai*100-shi*10);
m=i+wan+qian+bai+shi+ge;
result[i]=m;
}
int output[5000];
int q=0;
int count=1;
while(count<=10000)
{
Loop:
for(int j=1; j<10000; j++)
{
if(count == result[j])
{
count++;
goto Loop;
}
}
while(1)
{
output[q]=count;
count++;
q++;
break;
}
}
for(int j=0; j<q-1; j++)
{
printf("%d\n",output[j]);
}
}
int main()
{
int result[10001];
result[0]=0;
for(int i=1; i<=10000; i++)
{
int m=0;
int wan=i/10000;
int qian=(i-wan*10000)/1000;
int bai=(i-wan*10000-qian*1000)/100;
int shi=(i-wan*10000-qian*1000-bai*100)/10;
int ge=(i-wan*10000-qian*1000-bai*100-shi*10);
m=i+wan+qian+bai+shi+ge;
result[i]=m;
}
int output[5000];
int q=0;
int count=1;
while(count<=10000)
{
Loop:
for(int j=1; j<10000; j++)
{
if(count == result[j])
{
count++;
goto Loop;
}
}
while(1)
{
output[q]=count;
count++;
q++;
break;
}
}
for(int j=0; j<q-1; j++)
{
printf("%d\n",output[j]);
}
}
- poj1316
- poj1316
- poj1316
- POJ1316
- poj1316
- poj1316解题报告
- POJ1316 Self Numbers
- poj1316 self number
- poj1316--Self Numbers
- POJ1316-Self number
- poj1316 Self Numbers
- POJ1316 Self Numbers
- POJ1316 Milking Time【dp】
- POJ1316 Self Numbers
- POJ1316简单枚举
- POJ1316 ZOJ1180 UVA640
- POJ1316 Self Numbers【水题】
- poj1316 0ms水过
- poj1003
- network 最小生成树 Kruskal 算法 poj 1861 zoj 1542
- 夏梦
- Response.Redirect和Server.Transfer 的区别
- vb.net中的public,private,shared关键字
- poj1316
- poj2017
- C# 数值转换相关
- poj1953
- 程序员技术练级攻略
- poj1401
- 指向数组的指针,指向函数的指针
- Dijkstra算法探索及优化
- c#频繁读取word文件 所请求的剪切板操作失败 解决方法