HDU 1032 水题
摘要:
/** Author:lonelycatcher* problem:heu 1032* type:纯水题*/#include <iostream>#include<stdio.h>#include<string.h>#include<string.h>using namespace std;int fun(int x){int i=1;while(x!=1){if(x&1){x=3*x+1;}else{x=x>>1;}i++;}return i;}int main(){setbuf(stdout,NULL);int left, 阅读全文
posted @ 2011-08-01 08:14 lonelycatcher 阅读(218) 评论(0) 推荐(0) 编辑