2013年6月14日

[置顶] 挑战编程

摘要: 第一章 入门Chapter 1100-The 3n + 1 problem#include #include #include using namespace std; const int maxn=1111111; int f[maxn]; int main() { int x,y; int ans,ret; memset(f,0,sizeof(f)); while (~scanf("%d%d",&x,&y)) { ans=0; for (int i=min(x,y);ians) ans=ret; ... 阅读全文

posted @ 2013-06-14 11:45 电子幼体 阅读(104) 评论(0) 推荐(0) 编辑

挑战编程

摘要: 第一章 入门Chapter 1100-The 3n + 1 problem#include #include #include using namespace std;const int maxn=1111111;int f[maxn];int main(){ int x,y; int ans,ret; memset(f,0,sizeof(f)); while (~scanf("%d%d",&x,&y)) { ans=0; for (int i=min(x,y);ians) ans=ret; } printf... 阅读全文

posted @ 2013-06-14 11:45 电子幼体 阅读(170) 评论(0) 推荐(0) 编辑

导航