algorithm
所在版块:心情闲聊 发贴时间:2003-05-18 04:02

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
assume the number you have choose is A, then A is an integer between 1 and 7. Assume you have celebrated your birthday of this year, then put 1753 in the calculation. If you have not, then it can be shown in a similar way. Assume you were born in year B.
According to procedure, (2A+5)*50+1753-B is the final answer, which is 100A+2003-B indeed. Make sure you were born after 1903, otherwise it would be bug for this algorithm. And this will guarantee 2003-B would be the number the last two digits represent. Therefore, A is the first digit, which represents the number you choose, and 2003-B is your age.
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

Put your OWN COOL signature here!
 相关帖子 我要回复↙ ↗回到正文
用数学的方法测出你的年龄(初中以上数学可以进入) 华新最牛的笔名   (475 bytes , 686reads )
只是小把戏 紫色的云   (36 bytes , 305reads )
不用看就知道我今年多大了! 华新最牛的笔名   (0 bytes , 189reads )
algorithm 陀螺   (606 bytes , 347reads )
不准列 过把瘾去死   (0 bytes , 164reads )