精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • 【vbs】1000到9999之間有多少個(gè)各位數(shù)字不同

    【vbs】1000到9999之間有多少個(gè)各位數(shù)字不同
    求該VBS,謝謝
    其他人氣:411 ℃時(shí)間:2019-12-09 22:35:48
    優(yōu)質(zhì)解答
    dim num,c,i,bool,chr
    for c=1000 to 9999
    for i=1 to 3
    if instr(instr(1,c,mid(c,i,1))+1,c,mid(c,i,1))0 then
    bool=false
    exit for
    else
    bool=true
    end if
    next
    if bool then num=num+1:chr=chr & c & vbCr
    next
    msgbox num
    msgbox chr
    總共4536個(gè)
    第二種方法,要簡(jiǎn)單點(diǎn),.
    dim num,c,i,bool,chr,arr()
    for c=1000 to 9999
    redim arr(10)
    for i=1 to 4
    if arr(mid(c,i,1))=true then
    bool=false
    exit for
    else
    arr(mid(c,i,1))=true
    bool=true
    end if
    next
    if bool then num=num+1:chr=chr & c & vbCr
    next
    msgbox num
    msgbox chr
    我來回答
    類似推薦
    請(qǐng)使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版