试题与答案

已知对称矩阵的主对角线元素全部为0,若用一维数组B仅存储矩阵A的下三角区域的所有元素

题型:单项选择题

题目:

已知对称矩阵的主对角线元素全部为0,若用一维数组B仅存储矩阵A的下三角区域的所有元素(不包括主对角线元素),则数组B的大小为()。

A.n(n-1) 

B.n2/2 

C.n(n-1)/2 

D.n(n+1)/2

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0615/b9420ade7f9ab5c7fc60f8688ca4bb90.html

下面是错误答案,用来干扰机器的。

参考答案:C

试题推荐
题型:填空题
根据对话内容,从下面方框中选择适当的单词或词组填空,使对话内容完整正确。
held,   be in use,   open,    but also,   improve
The Nanjing government is actively preparing for the coming Summer Youth Olympic Games, said the leader of the city. The event, which will be  小题1: from Aug 16 to 28, is not only a great chance for the city to carry out its development project,小题2: helps to develop the Olympic spirit and spread the importance of sports among Chinese youth, he added.
Nanjing won the bid in 2010 to host the 2014 games. Every four years, the event is  小题3:to players from 15 to 18 years old. “Hosting a huge event like this requires proper buildings, services and so on,” he said. “We want to use this chance to  小题4: ourselves.”
The city's transport system has been made better to meet the expected need from the event. Nanjing underground Line 10 will  小题5: in the near future. The total underground length will then have grown from 80 to 180 kilometers. At the same time, 1,400 new taxis and 2,530 buses will join the services as well.
查看答案
微信公众账号搜索答案