摘要: Yet another end of the worldTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 0Accepted Submission(s): 0Problem DescriptionIn the year 3013, it has been 1000 years since the previous predicted rapture. However, the Maya will not play a joke any more 阅读全文
posted @ 2013-08-17 16:59 心中的阿哲 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #include #include #define M 101int s[M][M];int main(){ int n, i, j, t; while(scanf("%d", &n) != EOF){ memset(s, 0, sizeof(s)); t = 1; s[i=1][j=n] = t++; while(t = 1 && !s[i][j-1]){ s[i][--j] = t++; } while(i-1... 阅读全文
posted @ 2013-08-17 10:52 心中的阿哲 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 蛇形矩阵是由1开始的自然数依次排列成的一个矩阵上三角形。Input本题有多组数据,每组数据由一个正整数N组成。(1#include int s[23][23];int main(){ int x, n, i, j, t; scanf("%d", &x); while(x--){ scanf("%d", &n); memset(s, 0, sizeof(s));//对于填数题一定记得清0,而且二维数组清0是在sizeof里写上数组名 i = j = t = 1; ... 阅读全文
posted @ 2013-08-17 10:19 心中的阿哲 阅读(346) 评论(0) 推荐(0) 编辑