2 条题解
-
1
202502cj14周子祥 (周子祥) LV 8 @ 2025-06-27 19:48:53
#include <iostream>
#include<math.h>
using namespace std;
int main()
{
int n,m;
cin>>n>>m;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=m;j++)
{
cout<<i*j<<" ";
}
cout<<"\n";
}
return 0;
} -
12025-05-27 20:28:28@
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,s;
cin>>a>>s;
for(int i=1;i<=a;i++)
{
for(int j=1,x=i;j<=s;j++)
{
cout<<x+(j-1)*x<<' ';}
puts(" ");
}
return 0;
}
- 1
信息
- ID
- 2880
- 难度
- 4
- 分类
- (无)
- 标签
- 递交数
- 72
- 已通过
- 29
- 通过率
- 40%
- 上传者