摘要: 这是杭电上的一道简单题,我很意外我的代码可以AC,我以为这样写会超时! 本来是想建立一个表,通过查表的形式我觉得效率会更高一些,可是在建表的过程中,表中的数据实在难搞(也可能是我没发现规律),建表问题暂且搁置!View Code #include <stdio.h>#include <stdlib.h>int counter( int n ){ int cnt = 1; while( n != 1 ) { if( !(n%2) ) { n = n/2; cnt++; ... 阅读全文
posted @ 2013-02-25 10:08 翼展zjz 阅读(125) 评论(0) 推荐(0) 编辑