摘要:
293. Game with Q an Ctime limit per test: 0.5 sec.memory limit per test: 65536 KBinput: standardoutput: standardQc and He play the following game.Each turn He writes one of the two letters "Q" or "C" on the fence. The new letter is added to the end of the string formed by the pre 阅读全文
posted @ 2013-02-18 18:15
程序流程图
阅读(154)
评论(0)
推荐(0)
摘要:
1. 7*7 结果:ABCDCBA
BCDCBAB
CDCBABC
DCBABCD
CBABCDC
BABCDCB
ABCDCBA
代码:#include int main()
{ int num, i, j, sum; for (i = 0; i < 7; i ++){ for (j = 0; j < 7; j ++){ if (i + j <= 3) sum = i + j; else if (i + j <= 6) sum = 6 - i - j; else if (i + j <= 9) sum = i + j - 6; ... 阅读全文
posted @ 2013-02-18 00:10
程序流程图
阅读(196)
评论(0)
推荐(0)
摘要:
1.UVa 10010 Where's Waldorf?from cnblogs's rollenholt#include
#include
#define maxn 57
long test,m,n,k;
char r[maxn][maxn];
const long xd[]={-1,-1,0,1,1,1,0,-1},yd[]={0,1,1,1,0,-1,-1,-1};
void search(const char *a,long&x,long &y)
{ longpos,xx,yy; for(longi=1;i=2)printf("\n" 阅读全文
posted @ 2013-02-18 00:04
程序流程图
阅读(171)
评论(0)
推荐(0)

浙公网安备 33010602011771号