Cantor的数表
来源:互联网 发布:网络摄像头一体机 编辑:程序博客网 时间:2024/05/04 17:07
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int n,x=1,y=1,count=1;
scanf("%d",&n);
for(;;)
{
y++;
count++;
{
x++;
y--;
count++;
{
x++;
count++;
{
x--;
y++;
count++;
}
if(count==n)
break;
}
printf("%d/%d",x,y);
return 0;
}
#include <stdlib.h>
#include <string.h>
int main()
{
int n,x=1,y=1,count=1;
scanf("%d",&n);
for(;;)
{
//往左走
{
y++;
count++;
}
//往左下方走
{
x++;
y--;
count++;
}
//往下走
{
x++;
count++;
}
//往右上方走
{
x--;
y++;
count++;
}
if(count==n)
break;
}
printf("%d/%d",x,y);
return 0;
}
0 0
- Cantor的数表
- cantor的数表
- 白皮书&&cantor的数表
- Cantor的数表
- Cantor的数表
- cantor的数表
- Cantor的数表 数学
- Cantor的数表
- Cantor的数表
- cantor的数表
- Cantor的数表
- Cantor的数表
- Cantor的数表
- Cantor的数表
- Cantor的数表
- 【Cantor 的数表 5.4.1】
- 【Cantor 的数表 5.4.1】
- Cantor的数表 【找规律】
- ubuntu部署hadoop之单机模式与伪分布式模式(个人笔记)
- java swing实现俄罗斯方块游戏源代码下载
- 节点复制
- hadoop的安装
- 天净沙·秋思(元曲作家马致远)
- Cantor的数表
- Hibernate常见的问题
- 浅拷贝与深拷贝
- jQuery-Selectors(选择器)的使用(六、属性篇)
- 雪崩效应
- 关于SPEECHSDK5.1语音朗读引擎不能使用的问题
- evernote个人使用经验
- Android中的全屏
- 【BZOJ】【P2006】【NOI2010】【超级钢琴】【题解】【堆+ST】