2014年3月9日
摘要: 原题链接#include #include #define MAX 1001int a[MAX][MAX];int main(){ int t, n, max, count, i, j; scanf("%d", &t); while(t--){ scanf("%d", &n); max = (1 + n) * n / 2; count = 0; a[i = 1][j = 1] = ++count; while(count 1){ if(a[i + 1][j - 1] == 0) a[++i][--j] = ++count; else br 阅读全文
posted @ 2014-03-09 00:07 长木Qiu 阅读(159) 评论(0) 推荐(0) 编辑