pku oj
hll127
这个作者很懒,什么都没留下…
展开
-
pku oj 1002 487-3279
#include #include #include using namespace std; static const int s_table[] = {2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,-1,7,7,8,8,8,9,9,9,-1}; string normalize(const string& str) { const int LEN = (in原创 2012-11-04 22:13:16 · 595 阅读 · 0 评论 -
pku oj 1003 Hangover
#include #include using namespace std; int main() { double num; while (cin>>num) { if (fabs(num-0.0) < 1e-10) break; double cur = 0.0; int n = 2; while (cur <原创 2012-11-05 18:08:55 · 787 阅读 · 0 评论 -
pku oj 1001 Exponentiation
#include #include #include using namespace std; typedef map map_power; //题目中0 < n <= 25 int GetMaxLessEqu(int n) { if (0 == (n & (n-1))) return n; int ret = 1; while (ret < n) ret<原创 2012-11-04 13:15:32 · 913 阅读 · 0 评论