Archive for the ‘比赛试题’ Category

UVA 100-109

文章来源: http://thunderfyc.wordpress.com.cn 

The 3n + 1 problem
 UVA 100      PKU 1207

一个正整数按照一定规则可以变成1,问一个区间内变换步骤最长多少

直接枚举,不需要记录,而且根据试验,记录后耗时更长。要注意输入的两个数据

Read the rest of this entry »

© 2009 Vain.Thunder’s Blog[CN]
Magic Vision | Design: of . Coding: of .