题干

决定下列农业区位选择的主导因素是:
①古巴的甘蔗  
②宁夏平原水稻种植  
③新疆吐鲁番瓜果生产 
④ 上海郊区乳牛业

A:①热量 ②水源 ③光照 ④市场

B:①水源 ②地形 ③热量 ④市场

C:①地形 ②政策 ③土壤 ④科技

D:①土壤 ②热量 ③地形 ④政策

上一题 下一题 0.0难度 选择题 更新时间:2011-12-24 10:44:50

答案(点此获取答案解析)

A

同类题3

先阅读短文,然后根据短文内容从方框内所给的单词中选择恰当的词(注意词形变化)填入短文空白处,使短文完整、通顺。一词只用一次,一空限填一词。方框中有两个词是多余的。将能填入空白处的答案写在答题卡上的相应题号后。

   The world itself is becoming much smaller by using modern traffic and modern communication. Life today is much ____  than it was hundreds of years ago, but it has brought new problems. One of the biggest is ____ . To pollute means to make things dirty. Pollution comes in many ways. We see it, drink it and even hear it.
   Man has been polluting the earth. The more people are, the more pollution is. Many years ago, the problem was not so  ____  because there were not so many people. When the land was ____   up or the river was dirty in a place, men moved to another one. But this is no ____   true. Man is now slowly pollution the ____  world.
   Air pollution is still the most serious. It’s bad to all living things in the world, but it is not ____ one kind of pollution. Water pollution ____  our fish and pollutes our drinking water. Noise pollution makes us become angry more easily.
   Many countries are making rules to ____  pollution. They stop the people from burning coal in houses and factories in the city, and from blowing dirty smoke into the air. The pollution of SO2 is now the most dangerous problem of air pollution. It is caused by heavy traffic. It is certain that if there are fewer people driving, there will be ____  air pollution.
   The earth is our home. We must take care of it. That means ____  the land, water and air clean.

同类题5

小朋友拍照:有来自K(1<=K<=20)个不同国家的N(1<=N<=100)个小朋友排成一行准备拍照。国籍用数字1,2,3……K表示,每个小朋友的国籍依次存入数组a(1)到a(N)。由于小朋友太多,没有办法全部被拍入。摄像师决定拍摄一段连续区间内的小朋友,这个区间内每种国籍的小朋友至少要有1个,求满足要求的最小区间长度。

例如有10个小朋友,5种国籍,从左到右排列,国籍编号依次是2,1,2,4,3,3,5,5,3,5,则最小的一段包含所有5种国籍的区间是从第2个到第7个小朋友,区间长度为6。

算法解析:区间的长度至少为K(国籍的数量),最大为N(小朋友的数量)。我们可以通过二分K到N之间的求得最小区间长度。

实现上述功能的VB代码如下,但加框处代码有错,请改正。

Dim a(1 To 100) As Integer   '依次存储为1到100的小朋友的国籍编号

Dim K As Integer

Dim N As Integer

Private Sub Form_Load()   '窗体加载,生成数据

'产生N的值,表示人数

'产生K的值,表示国籍种数

'产生编号为1到N的小朋友的国籍编号,并存储在数组a中

'代码略

End Sub

Private Sub Command1_Click()    '使用二分的思想计算最小区间

Dim M As Integer

i = K: j = N       '答案的范围为K到N,即最少K,最多N个小朋友

Do While i <= j   

    M = (i + j) \ 2     '二分,求中间值

    If pd(M) = True Then   '调用Pd函数,判断区间长度为M时,是否包含所有国籍

      j = M – 1 

      ans = M        '若以M为区间长度可包含所有国籍,更新答案

    Else

      i =           '第①处错误

    End If

Loop

Text1.Text = Str(ans)

End Sub

Function pd(M As Integer) As Boolean

Dim f(1 To 20) As Integer  'f(i)表示国籍为i的小朋友是否包含

Dim t As Integer           't用于统计当前区间包含的国籍数量

pd = False

For i = 1 To N - M + 1     '枚举以i为起点的M个小朋友中,各个国籍是否包含

    For j = i To i + M - 1

      f(a(j)) = 1            '等于1,表示国籍为a(j)的小朋友已包含,0表示不包含

    Next j

    t = 0

    For j = 1 To K      '统计已包含的国籍的数量

      t =          '第②处错误

    Next j

    If t = K Then pd = True: Exit Function           '若包含K个国籍,返回True

    For j = 1 To K     'f数组元素重新初始化为0

      f(j) = 0

    Next j

Next i

End Function