摘要:
描述Fractions in octal (base 8) notation can be expressed exactly in decimal notation. For example, 0.75 in octal is 0.953125 (7/8 + 5/64) in decimal. All octal numbers of n digits to the right of the octal point can be expressed in no more than 3n decimal digits to the right of the decimal point. Wri 阅读全文
posted @ 2014-02-11 16:09
chen2013
阅读(251)
评论(0)
推荐(0)
摘要:
描述 Once,in a kingdom,there are N cities.M roads have been buit such that from one city you can reach any other cities.Between any two cities there is ... 阅读全文
posted @ 2014-02-11 15:10
chen2013
阅读(255)
评论(0)
推荐(0)
摘要:
描述小Q被邪恶的大魔王困在了迷宫里,love8909决定去解救她。迷宫里面有一些陷阱,一旦走到陷阱里,就会被困身亡:(,迷宫里还有一些古老的传送阵,一旦走到传送阵上,会强制被传送到传送阵的另一头。现在请你帮助love8909算一算,他至少需要走多少步才能解救到小Q? (上下左右四个方向走,传送门可以多次使用)输入第一行为一个整数T,表示测试数据组数。每组测试数据第一行为两个整数N,M,(1 #include #include #include #define MAXN 55using namespace std;int T,M,N;int csMap[27][5];char m[MAXN][M 阅读全文
posted @ 2014-02-11 14:30
chen2013
阅读(565)
评论(0)
推荐(0)