WHU OJ ,已无法访问
1021乒乓球比赛
```c
include
int main()
{
char i,j,k;
for(i='X'; i
include
int time_elapse(int hour, int minute, int second)
{
return hour*3600+minute*60+second;
}
int main()
{
int n;
char t[9],s[9];
int a,b,c,d,e,f;
int s1,s2;
scanf("%d",&n);
for(; n>0; n--)
{
继续阅读 »
分析:不需要一般象棋程序的“着法生成器”也可以求解more
```cpp
include
include
using namespace std;
typedef char Board[8][8];
typedef struct _Position {
int row;
int col;
} Position;继续阅读 »
more
```cpp
include
include
using namespace std;
void hartal(vector & days, int h) {
int n = days.size();
int t = h - 1;
while (t < n) {
int r = t % 7;
if (r != 5 && r != 6)
days[t] = true;
t += h;
}
}继续阅读 »
#include <stdio.h>
#include<limits.h>
/* return last byte of x or other bytes of y*/
unsigned bytefun(unsigned x,unsigned y)
{
return ((x<<24)>>24)|(y&(UINT_MAX-0xff));
}
int main()
{
unsigned x = 0x89ABCDEF;
unsigned y = 0x76543210;
printf("%x",bytefun(x,y));
return 0;
}继续阅读 »