没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
private void Test()
{
int[] a = new[]{
1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10
};
int[] b = new[]{
5 , 6 , 7 , 8 , 9 , 10
};
int[] c = Convolution(b , a);
foreach(int i in c)
{
Console.Write(i);
Console.Write(":");
}
Console.WriteLine();
}
public int[] Convolution(int[] X , int[] Y)
{
int sum = 0 , indexX = 0 , indexY = 0;
int[] A , B;
if(X.Length >= Y.Length)
{
A = X;
B = Y;
}
else
{
B = X;
A = Y;
}
int XLength = A.Length , YLength = B.Length;
int AllLength = XLength + YLength;
int[] Result = new int[AllLength - 1];
for(int index = 0; index < AllLength - 1; index++)
{
indexX = index;
indexY = 0;
int tmpIndex = 0;
while(tmpIndex < YLength)
gzkdev
- 粉丝: 18
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页