1 条题解
-
4
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n <= 0) { cout << "Error"; return 0; } for (int i = 1; i <= n; ++i) { for (int j = 1; j <= n; ++j) { cout << i << "x" << j << "=" << setw(2) << i * j; if (j < n) cout << " "; } cout << endl; } return 0; }
- 1
信息
- ID
- 30932
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 5
- 标签
- (无)
- 递交数
- 29
- 已通过
- 15
- 上传者