1037题怎么看都不过是个简单的二分图最大匹配问题,但就是WA。问题出在哪儿呢(自语中...)?
元芳,你怎么看?
元芳,你怎么看?

重剑无锋,大巧不工
2012-12-06 09:57
2012-12-07 11:17


2012-12-07 20:44

2012-12-07 21:21
2012-12-07 21:42
程序代码:
#include <stdio.h>
static int DecimaltoGray( int x)
{
return x^(x>>1);
}
int main()
{
int t,n;
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);
printf("%d\n",DecimaltoGray(n));
}
}

2012-12-07 22:02
2012-12-07 22:07

2012-12-08 21:54
2012-12-08 22:26
2012-12-08 22:56