比赛时一直错贴的叶找的代码:#include #include
#include
using namespace std;
#define MAXN 10000
const int mod[20]={1,1,2,6,4,2,2,4,2,8,4,4,8,4,6,8,8,6,8,2};//列出钱20个的阶层最后一位
int ld(char* buf)
{ int len = strlen(buf), a[MAXN], i, c, ret = 1; if(len==1) return mod[buf[0]-'0'];//如果是个位数直接输出 for(i=0;... Read More
posted @ 2013-04-23 21:47
free斩
Views(170)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号