久久京东热成人精品视频,伊人久久综合,国产一区二区精品自拍,在线精品国精品国产3d

<menu id="e206k"></menu>
<center id="e206k"></center>
  • <menu id="e206k"></menu>
    <center id="e206k"></center>
  • <menu id="e206k"><noscript id="e206k"></noscript></menu>
    當(dāng)前位置: 高中信息技術(shù) / 單選題
    • 1. (2021高三上·浙江開學(xué)考) 某對(duì)分查找算法的 VB 程序如下:

      Private Sub Command1_Click()

          Dim d(1 To 10) As Integer, i As Integer, j As Integer

          Dim m As Integer, key As Integer, s As String

          key = Int(Rnd( ) * 50) *2+ 1

          s = "": i = 1: j = 10

          Do While i <= j

              m = (i + j) \ 2

              If key = d(m) Then Exit Do

              If key < d(m) Then

                  j = m - 1: s = s + "L"

              Else

                  i = m + 1: s = s + "R"

              End If

          Loop

          Label1.Caption = s

      End Sub

      若數(shù)組d(1)至d(10)的值依次為"11,13,20,48,51,67,70,73,80,91",若執(zhí)行后 Label1 上顯示2個(gè)“L”和1個(gè)“R”或2個(gè)“R”和1個(gè)“L”,則key的可取值個(gè)數(shù)為(   )

      A . 6 B . 13 C . 17 D . 22

    微信掃碼預(yù)覽、分享更方便