标签:cpp make scan hdu can des integer line tle
http://acm.hdu.edu.cn/showproblem.php?pid=2123
代码:
#include <bits/stdc++.h> using namespace std; int num[10][10]; int main() { int T; scanf("%d", &T); while(T --) { int x; scanf("%d", &x); for(int i = 1; i <= x; i ++) { for(int j = 1; j <= x; j ++) num[i][j] = i * j; } for(int i = 1; i <= x; i ++) { for(int j = 1; j <= x; j ++) { if(j != x) printf("%d ", num[i][j]); else printf("%d\n", num[i][j]); } } } return 0; }
标签:cpp make scan hdu can des integer line tle
原文地址:https://www.cnblogs.com/zlrrrr/p/9410872.html