[or ] [or ]

Size: px
Start display at page:

Download "[or ] [or ]"

Transcription

1 On characteristic of difficult degree to solve Nurikabe-puzzles Kingo SATO BASIC

2 [or ] [or ]

3 [or ] [or ][or ] [or ] [or ] [or ][or ] [or ] [or ]

4

5 [ ] [ ]

6

7 rem ** NuriKabe ** -- hairetu_sengen -- def fnd(x,i)=((x+i-) mod )+ dim K(,),FB(,),CFB(,),SIMA(,),FB(,) dim HK(,),HFB(,),HFB(,),HSIMA(,),KHL(,), HBL(,),HFTB() dim BL(,),MBL(,),TYL(,),TZL(,),KANO(,),NOBI(,),MNOBI(,) dim KBLT(,),SLIST(,),ZRL(,),MZRL(,),PL(,), LSU(),TJC(,) dim ZT(),ZY(),HT(),HY(),RD(),NAT(),NAY(),KRL(),KT(),KY(),DJ(),RDJ() dim R(),RN(),N(),HA(),JY(),SP(),KKRL(,),DAN(,),MOMEL(,) dim D(),MKSL(,),SRL(,),SRL(,),NHL(,) dim TEMAZOKA(,),SRMAX() -- data_yomi -- gosub *DATAYOMI -- syoki_settei -- for I= to GN+: K(I,)=-:K(I,RN+)=-:K(I,RN+)=-: next I for J= to RN: K(,J)=-:K(GN+,J)=-:K(GN+,J)=-: next J for I= to GN:for J= to RN: FB(I,J)=: next J,I for I= to : read ZT(I),ZY(I): next I data -,,,,,,,- for I= to : read HT(I),HY(I): next I data -,,,,,-, -,- for I= to : read RD(I): next I data,,, for I= to : read SP(I): next I data -,,,- for I= to : DJ(I)=I: next I for I= to : RDJ(I)=-I: next I for I= to :for J= to : read TEMAZOKA(I,J): next J,I data,,,,,,,,,,,,,,, for I= to : read SRMAX(I): next I data,,,, -- SIMA_sakusei & KABESU_keisan -- gosub *SIMASAKUSEI

8 gosub *KABEN -- first_clue -- gosub *FIRSTCLUE: KBLTN= -- FB_settei -- gosub *FBSETEI -- start -- LEVEL= FBN=: FMUSY=: HIRITUMX= TOJISY=: tokusyu_syori *KAISTART LEVELUP=: FMU= while LEVELUP= LEVELUP=: GIHOSYORI= while GIHOSYORI= GIHOSYORI=: ZOKA= - kihon_syori - while ZOKA= ZOKA= kihonteki_syuhou gosub *SIKIRI if FBN> then gosub *SIKIRI gosub *ENTYO if FMU= then *MUSYORI if ZOKA= then gosub *SKCROSS if ZOKA= then gosub *SIMAHASEI wend level_ if LEVEL>= then if ZOKA= then gosub *NANAMEHUTA if ZOKA= then gosub *KABETUNAGI if ZOKA= then gosub *SIMAHASEI if ZOKA= then SRSUMAX=:gosub *SIMANOBI if ZOKA= then KABEZKTY=:SRSUMAX=:gosub *KABENOBI if (ZOKA=)and(TOJISY=)and(FMUSY=) then SPMAX=:gosub *TOJISIMA level_ if LEVEL>= then if ZOKA= then gosub *NANAMEHUTA if ZOKA= then gosub *NANAMENOBI if ZOKA= then gosub *NOTKABEX if ZOKA= then gosub *SUMISYORI if ZOKA= then gosub *HENSYORI if ZOKA= then gosub *TIDORI if ZOKA= then SRSUMAX=:gosub *SIMANOBI if ZOKA= then KABEZKTY=:SRSUMAX=:gosub *KABENOBI if (ZOKA=)and(FBN>) then FBSYTY=:gosub *FBSYORI if (ZOKA=)and(TOJISY=)and(FMUSY=) then SPMAX=:gosub *TOJISIMA

9 level_ if LEVEL>= then if ZOKA= then SRSUMAX=:gosub *SIMANOBI if ZOKA= then KABEZKTY=:SRSUMAX=:gosub *KABENOBI if ZOKA= then gosub *HANARESIMA if ZOKA= then gosub *HANAREKABE if ZOKA= then gosub *AKITOJI if (ZOKA=)and(FBN>) then FBSYTY=:gosub *FBSYORI if (ZOKA=)and(TOJISY=)and(FMUSY=) then SPMAX=:gosub *TOJISIMA level_ if LEVEL= then if ZOKA= then SRSUMAX=:gosub *SIMANOBI if ZOKA= then gosub *HEIKONOBI if ZOKA= then gosub *SYOZOKUSIMA syori_tudukeru? if ZOKA= then GIHOSYORI= wend kansei_hantei gosub *KANSEICH if ((FMU=)and(ZEROSU=))or((FMUSY=)and(FMU=)) then *KANSEI musyo_hantei if FMUSY= then gosub *KOHOLIST MUSYOHIRITU=KHN/(GN*RN)* max-hiritu_keisan if HIRITUMX<MUSYOHIRITU then HIRITUMX=MUSYOHIRITU mujyun_syori *MUSYORI if (FMUSY=)and(FMU=) then *KANSEI gosub *MUJYUNSYORI if FMSTOP= then goto *KAISTART else FMSTOP= sokusyu_syori if TOJISY= then TOJISY=:FMU=: goto *TJMODOSI level_up *LEVELUP if LEVEL< then LEVEL=LEVEL+: LEVELUP= wend *KANSEI level_keisan if GN= then OKISA= if GN= then OKISA=

10 if GN= then OKISA= if GN= then OKISA= N()=: for I= to : N(I)=*I+*(LEVEL-): next I for K= to if HIRITUMX<N(K) then TEMAZOKA=TEMAZOKA(OKISA,K): exit for next K LEVEL=LEVEL+TEMAZOKA: if LEVEL> then LEVEL= hyoji if GN< then LX= else LX= locate LX, if FZERO= then print "KANSEI!!!";" LEVEL=";LEVEL else print "TOKENAI!!!" end : : Sub Rutin : *DATAYOMI FILE$="a:nkprob.dat" open FILE$ for input as # input #,GN,RN for T= to GN: for Y= to RN input #,K(T,Y) *SIMASAKUSEI SIMASU= for T= to GN:for Y= to RN if K(T,Y)> then SIMASU=SIMASU+:SIMA(SIMASU,)=K(T,Y) sort for I= to SIMASU-:for J=I+ to SIMASU if SIMA(I,)<SIMA(J,) then swap SIMA(I,),SIMA(J,) next J,I *KABEN HIKU= for T= to GN:for Y= to RN HIKU=HIKU+K(T,Y) KBN=GN*RN-HIKU *FIRSTCLUE _mawari for T= to GN:for Y= to RN if K(T,Y)= then for D= to

11 NT=T+ZT(D):NY=Y+ZY(D) if K(NT,NY)= then K(NT,NY)=- next D for T= to GN:for Y= to RN if K(T,Y)> then hasu for DD= to if K(T+HT(DD),Y+HY(DD))> then for D=DD to DD+: K(T+ZT(D),Y+ZY(D))=-: next D next DD _tobi_yoko for D= to NT=T+ZT(D):NY=Y+ZY(D) if K(NT+ZT(D),NY+ZY(D))> then K(NT,NY)=- next D *FBSETEI for T= to GN: for Y= to RN if K(T,Y)= then FB(T,Y)=- if (K(T,Y)>)or(K(T,Y)=-) then FB(T,Y)= *SIKIRI for Q= to KBLTN SKT=KBLT(Q,):SKY=KBLT(Q,):SKSU=KBLT(Q,) for D= to PT=SKT+ZT(D):PY=SKY+ZY(D) if K(PT,PY)= then gosub *FSH henka if (SKSU<)and((FSH=)or(FSH=)or(FSH=)) then gosub *SIKIHEN if ((SKSU<)and((FSH=)or(FSH=)or(FSH=)))or((SKSU=)and ((FSH=)or(FSH=)or(FSH=))) then if SKSU< then SSU=SKSU else SSU=GSU IT=PT:IY=PY:gosub *BLOCK if BN>SSU then K(PT,PY)=-:FB(PT,PY)=: ZOKA= next D next Q

12 KBLTN= *SIKIRI for TB= to FBN T=FB(TB,):Y=FB(TB,) if (FB(T,Y)=)and(K(T,Y)=) then SKSU=FB(TB,):TBMT=FB(TB,):TBMY=FB(TB,) for D= to PT=T+ZT(D):PY=Y+ZY(D) if K(PT,PY)= then SKT=T:SKY=Y:gosub *FSH henka if (FSH=)or(FSH=)or(FSH=) then SKT=TBMT:SKY=TBMY:gosub *SIKIHEN next D next TB *FSH -- PAR. SKT,SKY -- TRYSU=K(SKT+HT(D),SKY+HY(D)):gosub *SUHAN FSH=SUHAN:if FSH= then GSU=TRYSU:GT=SKT+HT(D):GY=SKY+HY(D) TRYSU=K(SKT+HT(fnD(D,)),SKY+HY(fnD(D,))):gosub *SUHAN FSH=SUHAN:if FSH= then GSU=TRYSU:GT=SKT+HT(fnD(D,)):GY=SKY+HY(fnD(D,)) TRYSU=K(PT+ZT(D),PY+ZY(D)):gosub *SUHAN FSH=SUHAN:if FSH= then GSU=TRYSU:GT=PT+ZT(D):GY=PY+ZY(D) *SUHAN -- par. TRYSU -- if TRYSU<= then SUHAN=: if TRYSU< then SUHAN= else SUHAN= *SIKIHEN -- par. SKT,SKY,SKSU -- if SKSU<>GSU then K(PT,PY)=-:FB(PT,PY)=: ZOKA= else IT=SKT:IY=SKY:SSU=SKSU:gosub *BLOCK FHUKU= for W= to BN if (GT=BL(W,))and(GY=BL(W,)) then FHUKU=: exit for next W if FHUKU= then K(PT,PY)=-:FB(PT,PY)=: ZOKA=

13 *ENTYO for T= to GN: for Y= to RN if FB(T,Y)= then SU=K(T,Y) IT=T:IY=Y:SSU=SU:MAINTY=:gosub *BLOCK gosub *BORDER if SU< then HANSU=KBN else HANSU=SU if BN>HANSU then FMU=: if BN=HANSU then if SU> then FB(T,Y)=- for Q= to SRSU K(TYL(Q,),TYL(Q,))=-:FB(TYL(Q,),TYL(Q,))=:ZOKA= next Q for W= to SIMASU if (SIMA(W,)=)and(SIMA(W,)=SU) then SIMA(W,)=: exit for next W else if SRSU= then NWT=TYL(,):NWY=TYL(,) K(NWT,NWY)=SU:FB(NWT,NWY)=-: ZOKA= if SU> then ST=NWT:SY=NWY:FBTI=:gosub *SUSET *SUSET -- par. ST,SY,SU, (FBTI,TB) -- sesyoku MT=ST:MY=SY:gosub *MAWARISU if (YSU>)or(P>) then if (YSU>)or((SU<)and(P>)) then case_a if SU< then SSU=SU else SSU=YTI

14 IT=ST:IY=SY:gosub *BLOCK else IT=ST:IY=SY:SSU=:gosub *BLOCK FB_case if FBTI= then FBSY= else gosub *TBMOTOME if FBSY= then KTB=TB:MOKUT=ST:MOKUY=SY:gosub *FBKAE: SETSU=SSU:gosub *CHGESU FB(ST,SY)= else sikiri_kabe( koritu!! ) if FBTI= then KBLTN=:KBLT(,)=ST:KBLT(,)=SY:KBLT(,)=SU *TBMOTOME FBSY= for W= to P if FB(PL(W,),PL(W,))= then FBSY= TBT=PL(W,):TBY=PL(W,):gosub *TBSU exit for next W *TBSU -- par. TBT,TBY -- for TB= to FBN if (TBT=FB(TB,))and(TBY=FB(TB,)) then next TB *FBKAE -- par. KTB, MOKUT,MOKUY (FB= case) -- hikae_toru HBN=BN: for W= to BN:for W= to : HBL(W,W)=BL(W,W): next W,W for W= to HBN BT=HBL(W,):BY=HBL(W,) duble_check FDBL= for W= to FBN

15 if (BT=FB(W,))and(BY=FB(W,)) then FDBL= next W if FDBL= then FB(BT,BY)=: FBN=FBN+ FB(FBN,)=FB(KTB,):FB(FBN,)=BT:FB(FBN,)=BY for II= to : FB(FBN,II)=FB(KTB,II): next II FB(#,)=_case if FB(KTB,)= then IT=FB(KTB,):IY=FB(KTB,):SSU=FB(KTB,):gosub *BLOCK gosub *BORDER nobisyori MBN=BN: for W= to BN:for W= to : MBL(W,W)=BL(W,W): next W,W for Q= to SRSU NOBI(Q,)=TYL(Q,):NOBI(Q,)=TYL(Q,):NOBI(Q,)=MBN+ next Q karioki SYT=FB(FBN,):SYY=FB(FBN,) HFBN= for I= to FBN if (SYT=FB(I,))and(SYY=FB(I,)) then HFBN=HFBN+:HFTB(HFBN)=I next I for I= to HFBN: K(FB(HFTB(I),),FB(HFTB(I),))= :next I NOSU=SRSU:SU=FB(KTB,): NOBITY=:gosub *NOBISYORI modosi for I= to HFBN: K(FB(HFTB(I),),FB(HFTB(I),))= :next I FB(KTB,)=KYORI next W *CHGESU -- par. SETSU -- for W= to BN BT=BL(W,):BY=BL(W,) K(BT,BY)=SETSU:FB(BT,BY)=-: ZOKA= KBLT(W,)=BT:KBLT(W,)=BY:KBLT(W,)=SETSU next W KBLTN=BN *SKCROSS for T= to GN:for Y= to RN if K(T,Y)= then MT=T:MY=Y:gosub *MAWARISU case_a if NSU= then K(T,Y)=- :FB(T,Y)=-: ZOKA=

16 case_b if PWSU= then K(T,Y)=:FB(T,Y)=: ZOKA= ST=T:SY=Y:SU=:FBTI=:gosub *SUSET *MAWARISU -- par. MT,MY -- YSU=:PSU=:ZSU=:NSU=:P=:PWSU=:KBSU= for D= to NMT=MT+ZT(D):NMY=MY+ZY(D):KNMS=K(NMT,NMY) if (<KNMS)and(KNMS<) then YSU=YSU+:YTI=KNMS: YRT=NMT:YRY=NMY if KNMS> then PSU=PSU+ if KNMS= then ZSU=ZSU+: ZRT=NMT:ZRY=NMY:ZRL(ZSU,)=NMT:ZRL(ZSU,)=NMY if KNMS=- then KBSU=KBSU+ if KNMS< then NSU=NSU+ if KNMS= then P=P+:PT=NMT:PY=NMY:PL(P,)=NMT:PL(P,)=NMY if (KNMS>)or(KNMS=-) then PWSU=PWSU+ next D *SIMAHASEI for T= to GN-:for Y= to RN- NSU=:ZSU= for I= to :for J= to MT=T+I:MY=Y+J if K(MT,MY)=- then NSU=NSU+ if K(MT,MY)= then ZSU=ZSU+:ZSUT=MT:ZSUY=MY next J,I _hassei if (NSU=)and(ZSU=) then K(ZSUT,ZSUY)=:FB(ZSUT,ZSUY)=: ZOKA= ST=ZSUT:SY=ZSUY:SU=:FBTI=: gosub *SUSET *BLOCK -- par. IT,IY,SSU, MAINTY -- TUNATY=:MXMS=: gosub *SUTUNAGI *BLOCK

17 -- par. IT,IY,SSU, MAINTY -- TUNATY=:MXMS=: gosub *SUTUNAGI *SUTUNAGI - par. IT,IY,SSU,TUNATY,MAINTY,MXMS - BN=:BL(,)=IT:BL(,)=IY R= : FSU= while (R<=BN)and(BN<=MXMS) BT=BL(R,):BY=BL(R,) for B= to NT=BT+ZT(B):NY=BY+ZY(B): KSU=K(NT,NY) if (NT<>IT)or(NY<>IY) then type_hantei select case TUNATY case if KSU=SSU then FGO= else FGO= case if (KSU=SSU)or(KSU=) then FGO= else FGO= case if (KSU=SSU)or(KSU=) then FGO= else FGO= case if (KSU=SSU)or(KSU=)or(KSU=) then FGO= else FGO= case if (<KSU)and(KSU<)and((KSU<>SSU)or((KSU=SSU)and(FB(NT,NY)=))) then FSU=:goto *TUNAGIEND if (KSU=SSU)or(KSU=)or(KSU=) then FGO= else FGO= end select tuzukeru? if FGO= then zoka_check FBZ= for B= to BN if (NT=BL(B,))and(NY=BL(B,)) then FBZ=: exit for next B if FBZ= then BN=BN+:BL(BN,)=NT:BL(BN,)=NY if MAINTY= then FB(NT,NY)=- next B R=R+ wend *TUNAGIEND MAINTY=

18 *BORDER -- par. BN, BL -- SRSU= for W= to BN BORT=BL(W,):BORY=BL(W,) for I= to NT=BORT+ZT(I):NY=BORY+ZY(I) if K(NT,NY)= then double_check FDB= for DCH= to SRSU if (NT=TYL(DCH,))and(NY=TYL(DCH,)) then FDB=: exit for next DCH tuika & kiroku if FDB= then SRSU=SRSU+: TYL(SRSU,)=NT:TYL(SRSU,)=NY next I next W *NANAMEHUTA for T= to GN: for Y= to RN if (FB(T,Y)=)and(<K(T,Y)) then SU=K(T,Y) gosub *BLTYLKIROKU if MSRSU= then T=TZL(,):Y=TZL(,): T=TZL(,):Y=TZL(,) gosub *NANAMEITI if FAME= then VSU=K(VT,VY) case_a( huta_set ) if VSU= then FHUTA= if (SU<)and(MBN=SU-) then FHUTA= else gosub *NNHUTAHAN huta_set if FHUTA= then K(VT,VY)=-:FB(VT,VY)=: ZOKA= VSU>_case if ((VSU=)and(SU<))or((<VSU)and(VSU<)and(SU=)) then

19 gosub *VSUPLS if ZOKA= then *BLTYLKIROKU IT=T:IY=Y:SSU=SU:gosub *BLOCK gosub *BORDER for W= to BN: for W= to : MBL(W,W)=BL(W,W): next W,W for Q= to SRSU:for Q= to : TZL(Q,Q)=TYL(Q,Q): next Q,Q MBN=BN:MSRSU=SRSU *VSUPLS if SU< then HANSU=SU else HANSU=VSU case_b for DV= to WVT=VT+ZT(DV):WVY=VY+ZY(DV) if ((T<>WVT)or(Y<>WVY))and((T<>WVT)or(Y<>WVY))and(K(WVT,WVY)=) then IT=WVT:IY=WVY:SSU=VSU:gosub *BLOCK if (MBN+BN+)>HANSU then K(WVT,WVY)=-:FB(WVT,WVY)=: ZOKA= next DV case_c( kabe_sakusei ) IT=VT:IY=VY:SSU=VSU:gosub *BLOCK if (MBN+BN+)=HANSU then gosub *BORDER case_ for W= to SRSU BT=TYL(W,):BY=TYL(W,) if ((BT<>T)or(BY<>Y))and((BT<>T)or(BY<>Y)) then if K(BT,BY)= then K(BT,BY)=-:FB(BT,BY)=: ZOKA= next W case_ if MSRSU> then for Q= to MSRSU if (Q<>I)and(Q<>J) then K(TZL(Q,),TZL(Q,))=-:FB(TZL(Q,),TZL(Q,))=:ZOKA= next Q

20 *NANAMEITI gosub *NANAME if FAME= then for I= to NAT=NAT(I):NAY=NAY(I) FITI= for W= to MBN if (NAT=MBL(W,))and(NAY=MBL(W,)) then FITI=:exit for next W if FITI= then VT=NAT(I):VY=NAY(I): next I FAME= *NANAME -- par. T,Y, T,Y -- FAME= if (abs(t-t)=)and(abs(y-y)=) then FAME= NAT()=T:NAY()=Y: NAT()=T:NAY()=Y *NNHUTAHAN -- par. FHUTA,SU, VT,VY,MBN -- MT=VT:MY=VY:gosub *MAWARISU if (SU<)and(YSU>) then FHUTA=: if P> then IT=VT:IY=VY:SSU=:gosub *BLOCK GBN=BN gosub *TBMOTOME if FBSY= then GTT=FB(TB,):GTY=FB(TB,) if SU< then case_ if ((FBSY=)and(GTT<>T)and(GTY<>Y))or((GBN+MBN+)>SU) then FHUTA= else case_ if FBSY= then SSU=FB(TB,) if FB(TB,)> then IT=GTT:IY=GTY:gosub *BLOCK NRETU=BN+GBN+MBN+ else # = NRETU=FB(TB,)+MBN+

21 if NRETU>SSU then FHUTA= else P= if YSU> then SU= IT=VT:IY=VY:SSU=YTI:gosub *BLOCK if (BN+MBN+)>YTI then FHUTA= *NNHUTAHAN -- par. FHUTA,SU, VT,VY,MBN,NRETU, GTB -- MT=VT:MY=VY:gosub *MAWARISU if YSU> then if YTI<>SU then FHUTA=: FHUKU= for I= to MBN if (YRT=MBL(I,))and(YRY=MBL(I,)) then FHUKU=: exit for next I if FHUKU= then FHUTA= else YSU= if P> then gosub *TBMOTOME if FBSY= then IT=VT:IY=VY:SSU=:gosub *BLOCK if ((FBSY=)and((BN+HANRETU+)>SU))or((FBSY=)and(TB<>GTB)) then FHUTA= *NANAMEHUTA for T= to GN: for Y= to RN if (FB(T,Y)=)and(<K(T,Y)) then SU=K(T,Y) gosub *BLTYLKIROKU if ((MSRSU=)or(MSRSU=))and(MBN<SU-(MSRSU-)) then HUTATY=:KNSRSU=MSRSU:gosub *NNHUTAMAIN if ZOKA= then *NNHUTAMAIN -- par. HUTATY,MSRSU,KNSRSU -- for I= to MSRSU-:for J=I+ to MSRSU T=TZL(I,):Y=TZL(I,): T=TZL(J,):Y=TZL(J,)

22 gosub *NANAMEITI if FAME= then -- case_ -- if (K(VT,VY)=)and(SU<) then MT=VT:MY=VY:gosub *MAWARISU if YSU> then K(VT,VY)= kari_oki gosub *KANOSUSYORI K(VT,VY)= hantei modosi if FBAD= then K(VT,VY)=-:FB(VT,VY)=: ZOKA= -- case_ -- kanosu_syori gosub *KANOSUSYORI hantei if FBAD= then VSU=K(VT,VY) case_a if VSU= then if HUTATY= then FHUTA=:gosub *NNHUTAHAN if HUTATY= then FHUTA=:gosub *NNHUTAHAN hantei if FHUTA= then K(VT,VY)=-:FB(VT,VY)=: ZOKA= VSU>_case if ((VSU=)and(SU<))or((<VSU)and(VSU<)and(SU=)) then gosub *VSUPLS if ZOKA= then next J,I *KANOSUSYORI K(T,Y)=-:K(T,Y)=- kari_oki KANOTY=:gosub *NOBIJYUNBI NOBITY=:gosub *NOBISYORI K(T,Y)=:K(T,Y)= modosi *NOBIJYUNBI

23 -- par.kanoty,knsrsu,tzl, (T,Y,T,Y, JYOGAI) -- KANO(-NOSU) NOSU=:KYORI=MBN+ select case KANOTY case for Q= to KNSRSU if ((T<>TZL(Q,))or(Y<>TZL(Q,)))and((T<>TZL(Q,))or(Y<>TZL(Q,))) then NOSU=NOSU+:NOBI(NOSU,)=TZL(Q,):NOBI(NOSU,)=TZL(Q,):NOBI(NOSU,)=KYORI next Q case for Q= to KNSRSU if Q<>JYOGAI then NOSU=NOSU+:NOBI(NOSU,)=TZL(Q,):NOBI(NOSU,)= TZL(Q,):NOBI(NOSU,)=KYORI next Q end select *KABETUNAGI for T= to GN: for Y= to RN if K(T,Y)= then MT=T:MY=Y:gosub *MAWARISU GZRT=ZRT:GZRY=ZRY case_a if (NSU=)and(ZSU=) then MBN=:MBL(,)=T:MBL(,)=Y T=ZRL(,):Y=ZRL(,): T=ZRL(,):Y=ZRL(,) gosub *NANAMEITI if FAME= then VSU=K(VT,VY) if (<VSU)and(VSU<) then IT=VT:IY=VY:SSU=VSU:gosub *BLOCK if BN=VSU- then K(T,Y)=-:FB(T,Y)=-: ZOKA= case_b if (NSU=)and(ZSU=) then MT=GZRT:MY=GZRY:gosub *MAWARISU if YSU> then IT=GZRT:IY=GZRY:SSU=YTI:gosub *BLOCK if (BN+)>YTI then K(T,Y)=-:FB(T,Y)=-: ZOKA=

24 *NANAMENOBI for T= to GN: for Y= to RN if (FB(T,Y)=)and(<K(T,Y)) then SU=K(T,Y) gosub *BLTYLKIROKU if (MSRSU<=)and(MBN<SU-MSRSU) then for I= to MSRSU-:for J=I+ to MSRSU T=TZL(I,):Y=TZL(I,): T=TZL(J,):Y=TZL(J,) gosub *NANAMEITI if (FAME=)and(K(VT,VY)=) then K(VT,VY)=- kanosu_syori KASU=MBN kari_oki KANOTY=:JYOGAI=:KNSRSU=MSRSU: gosub *NOBIJYUNBI NOBITY=:gosub *NOBISYORI K(VT,VY)= hantei modosi if FBAD= then K(VT,VY)=: ZOKA= if SU< then FB(VT,VY)=: FBN=FBN+ FB(FBN,)=SU:FB(FBN,)=VT:FB(FBN,)=VY FB(FBN,)=T :FB(FBN,)=Y FB(FBN,)=T:FB(FBN,)=Y:FB(FBN,)=T:FB(FBN,)=Y FBTI=:TB=FBN else FB(VT,VY)=: FBTI= ST=VT:SY=VY:SU=:gosub *SUSET next J,I *FBSYORI for GTB= to FBN T=FB(GTB,):Y=FB(GTB,)

25 if (FB(T,Y)=)and(K(T,Y)=) then SU=:gosub *BLTYLKIROKU MNKYORI_keisan if FB(GTB,)= then MNKYORI= for W= to MBN TBT=MBL(W,):TBY=MBL(W,):gosub *TBSU if MNKYORI>FB(TB,) then MNKYORI=FB(TB,) next W case_a( huta ) SU=FB(GTB,) if (MSRSU<=)and(MBN<SU-(MSRSU-)) then IT=FB(GTB,):IY=FB(GTB,):SSU=SU:gosub *BLOCK gosub *BORDER tuika T=FB(GTB,):Y=FB(GTB,) if T> then HANRETU_keisan HANRETU=MBN+BN+ KNSRSU=MSRSU T=FB(GTB,):Y=FB(GTB,) for W= to SRSU if ((T<>TYL(W,))or(Y<>TYL(W,)))and((T<>TYL(W,))or(Y<>TYL(W,))) then KNSRSU=KNSRSU+:TZL(KNSRSU,)=TYL(W,):TZL(KNSRSU,)=TYL(W,) next W else T= HANRETU_keisan HANRETU=MNKYORI+(MBN-) gosub *NEWTZL for W= to BN:for W= to : MBL(MBN+W,W)=BL(W,W): next W,W MBN=MBN+BN nanamehuta_syori HUTATY=:gosub *NNHUTAMAIN if ZOKA= then case_b( saegiru ) T=FB(GTB,):Y=FB(GTB,) SU=:gosub *BLTYLKIROKU SU=FB(GTB,) if MBN<SU-(MSRSU-) then IT=FB(GTB,):IY=FB(GTB,):SSU=SU:gosub *BLOCK gosub *BORDER new-tzl_sakusei

26 T=FB(GTB,):Y=FB(GTB,):T=FB(GTB,):Y=FB(GTB,) if T> then MSRSU_jyogai NOKOSU= for Q= to MSRSU TZT=TZL(Q,):TZY=TZL(Q,) if ((T<>TZT)or(Y<>TZY))and((T<>TZT)or(Y<>TZY)) then NOKOSU=NOKOSU+:TZL(NOKOSU,)=TZT:TZL(NOKOSU,)=TZY next Q MSRSU=NOKOSU tuika for Q= to SRSU:for Q= to : TZL(MSRSU+Q,Q)=TYL(Q,Q): next Q,Q KNSRSU=MSRSU+SRSU else T= gosub *NEWTZL for W= to BN:for W= to : MBL(MBN+W,W)=BL(W,W): next W,W MBN=MBN+BN saegiru_syori if MSRSU<= then saegiru_syori TB=GTB:gosub *SAEGIRUMAIN if ZOKA= then case_c( hanaresu ) if FBSYTY= then T=FB(GTB,):Y=FB(GTB,) SU=:gosub *BLTYLKIROKU SU=FB(GTB,) if MBN<= then IT=FB(GTB,):IY=FB(GTB,):SSU=SU:gosub *BLOCK gosub *BORDER new-tzl_sakusei T=FB(GTB,):Y=FB(GTB,):T=FB(GTB,):Y=FB(GTB,) if T> then MSRSU_jyogai NOKOSU= for Q= to MSRSU TZT=TZL(Q,):TZY=TZL(Q,) if ((T<>TZT)or(Y<>TZY))and((T<>TZT)or(Y<>TZY)) then NOKOSU=NOKOSU+:TZL(NOKOSU,)=TZT:TZL(NOKOSU,)=TZY next Q MSRSU=NOKOSU tuika for Q= to SRSU:for Q= to : TZL(MSRSU+Q,Q)=TYL(Q,Q): next Q,Q

27 KNSRSU=MSRSU+SRSU else T= for W= to BN:for W= to : MBL(MBN+W,W)=BL(W,W): next W,W MBN=MBN+BN hanaresu_syori gosub *HANAREMAIN next GTB *NEWTZL MSRSU_jyogai NOKOSU= for Q= to MSRSU TZT=TZL(Q,):TZY=TZL(Q,) gosub *KYORIKEI if MNK>=MNKYORI then NOKOSU=NOKOSU+:TZL(NOKOSU,)=TZT:TZL(NOKOSU,)=TZY next Q MSRSU=NOKOSU tuika KNSRSU=MSRSU for Q= to SRSU TYT=TYL(Q,):TYY=TYL(Q,) FHUKU= for Q= to MSRSU if (TYT=TZL(Q,))and(TYY=TZL(Q,)) then FHUKU=: exit for next Q if FHUKU= then KNSRSU=KNSRSU+:TZL(KNSRSU,)=TYT:TZL(KNSRSU,)=TYY next Q *KYORIKEI MNK= for KK= to SRSU TYT=TYL(KK,):TYY=TYL(KK,) KA=abs(TZT-TYT)+abs(TZY-TYY) if KA<MNK then MNK=KA next KK MNK=MNK+BN+

28 *SIMAHASEI for T= to GN:for Y= to RN if K(T,Y)= then MT=T:MY=Y: gosub *MAWARISU if (ZSU=)and(NSU=) then FHNSU= for D= to if K(T+HT(D),Y+HY(D))=- then FHNSU= next D hassei if FHNSU= then K(ZRT,ZRY)=:FB(ZRT,ZRY)=: ZOKA= ST=ZRT:SY=ZRY:SU=:FBTI=: gosub *SUSET *SIMANOBI for T= to GN: for Y= to RN if (FB(T,Y)=)and(K(T,Y)>) then SU=K(T,Y) gosub *BLTYLKIROKU if (MSRSU>=SRSUMAX-)and(MSRSU<=SRSUMAX)and(MBN<=SU-MSRSU) then KNSRSU=MSRSU:gosub *SAEGIRUMAIN if ZOKA= then *SAEGIRUMAIN -- par. MSRSU,KNSRSU, (FB=..TB) -- for I= to MSRSU CHT=TZL(I,):CHY=TZL(I,) K(CHT,CHY)=- kari_oki kanosu_syori KANOTY=:JYOGAI=I:gosub *NOBIJYUNBI NOBITY=:gosub *NOBISYORI K(CHT,CHY)= hantei modosi if FBAD= then if FB(T,Y)= then K(CHT,CHY)=SU:FB(CHT,CHY)=-: ZOKA= FBTI=

29 else K(CHT,CHY)=: ZOKA= FBTI=:SU= ST=CHT:SY=CHY:gosub *SUSET next I *NOBISYORI -- par. MBN,NOSU,SU,NOBITY, (NTY=..MOKUT,MOKUY) -- FBAD= gosub *MAX if SU< then NRETU=SU else NRETU=MAX NSYO=: HANNOBI=NOSU+MBN:HANKYORI=MBN+ while (NSYO<=NOSU)and(HANNOBI<=NRETU) NBT=NOBI(NSYO,):NBY=NOBI(NSYO,):NKYO=NOBI(NSYO,) if HANKYORI<NKYO then HANKYORI=NKYO nobi-koho_sagasi for Q= to ST=NBT+ZT(Q):SY=NBY+ZY(Q) if (<=ST)and(ST<=GN)and(<=SY)and(SY<=RN) then koho if K(ST,SY)= then nobity=_case if (NOBITY=)and(MOKUT=ST)and(MOKUY=SY) then KYORI=NKYO+: new? FHUKUMU= for N= to NOSU if (ST=NOBI(N,))and(SY=NOBI(N,)) then FHUKUMU=:exit for next N if FHUKUMU= then gosub *SESYOHAN if FSESYOHAN= then NOSU=NOSU+ NOBI(NOSU,)=ST:NOBI(NOSU,)=SY:NOBI(NOSU,)=NKYO+ stop? if (K(ST,SY)>)and(NOBITY<>) then FHUKU= for W= to MBN if (ST=MBL(W,))and(SY=MBL(W,)) then FHUKU=:exit for next W if FHUKU= then stop!!

30 next Q if (NOBITY=)or(NOBITY=) then HANNOBI=NOSU+MBN if (NOBITY=)or(NOBITY=) then HANNOBI=HANKYORI NSYO=NSYO+ wend if (NOSU+MBN<NRETU)or((NOBITY=)and(HANKYORI>NRETU)) then FBAD= *MAX for U= to SIMASU if SIMA(U,)= then MAX=SIMA(U,): exit for next U *SESYOHAN -- par. ST,SY,SU(T,Y), KASU -- FSESYOHAN= MT=ST:MY=SY:gosub *MAWARISU hantei if YSU> then if SU< then FSESYOHAN= else SU= IT=ST:IY=SY:SSU=YTI:gosub *BLOCK if (NKYO+BN)>YTI then FSESYOHAN= else YSU= if P> then gosub *TBMOTOME if FBSY= then if SU< then IT=ST:IY=SY:SSU=:gosub *BLOCK if (NKYO+BN)>SU then FSESYOHAN= else FBSY= FBSU=FB(TB,) if SU< then if (FBSU<>SU)or((FBSU=SU)and((T<>FB(TB,))or(Y<>FB(TB,)))) then FSESYOHAN= else SU= tuika-nagasa if FB(TB,)> then

31 IT=FB(TB,):IY=FB(TB,):SSU=FBSU:MAINTY=:gosub *BLOCK TUIKANG=BN+ else # = IT=TBT:IY=TBY:SSU=:gosub *BLOCK TUIKANG=FB(TB,)-BN IT=ST:IY=SY:SSU=:gosub *BLOCK if (TUIKANG+BN)>FBSU then FSESYOHAN= *KABENOBI -- par. KABEZKTY,SRSUMAX -- for T= to GN: for Y= to RN if (FB(T,Y)=)and(K(T,Y)=-) then IT=T:IY=Y:SSU=-:gosub *BLOCK gosub *BORDER HNAGASA_kettei if (KABEZKTY=)and(BN+<KBN) then HNAGASA=BN+ else HNAGASA=KBN if (SRSU<=SRSUMAX)and(BN<HNAGASA-(SRSU-)) then for Q= to SRSU NWT=TYL(Q,):NWY=TYL(Q,) K(NWT,NWY)= kari_oki IT=T:IY=Y:SSU=-:TUNATY=:MXMS=HNAGASA:gosub *SUTUNAGI K(NWT,NWY)= modosi hantei if BN<HNAGASA then K(NWT,NWY)=-:FB(NWT,NWY)=-: ZOKA= next Q *NOTKABEX for T= to GN: for Y= to RN for D= to D=... yoko, D=... tate PT=T+ZT(D):PY=Y+ZY(D) if (K(T,Y)=-)and(K(PT,PY)=-) then for HD=D- to D+ step GT=T+*ZT(HD):GY=Y+*ZY(HD): GPT=PT+*ZT(HD):GPY=PY+*ZY(HD)

32 if (<=GT)and(GT<=GN)and(<=GY)and(GY<=RN) then if (K(T+ZT(HD),Y+ZY(HD))=)and(K(PT+ZT(HD),PY+ZY(HD))=) then gosub *NOTHAN if ZOKA= then next HD next D *NOTHAN FHAN= if (<K(GT,GY))and(K(GT,GY)<)and(K(GPT,GPY)=) then FHAN=:IT=GPT:IY=GPY:SSU=K(GT,GY) if (K(GT,GY)=)and(<K(GPT,GPY))and(K(GPT,GPY)<) then FHAN=:IT=GT:IY=GY:SSU=K(GPT,GPY) hantei if FHAN= then gosub *BLOCK if BN=SSU then K(IT,IY)=-:FB(IT,IY)=: ZOKA= *SUMISYORI for I= to if I<= then T= else T=GN if (I=)or(I=) then Y= else Y=RN if K(T,Y)= then case_a MT=T:MY=Y:gosub *MAWARISU if (YSU=)and(ZSU=) then IT=YRT:IY=YRY:SSU=YTI:gosub *BLOCK if BN=YTI- then K(ZRT,ZRY)=-:FB(ZRT,ZRY)=: ZOKA= case_b for B= to TP=T+B*ZT(fnD(I,)):YP=Y+B*ZY(fnD(I,)) TQ=T+(-B)*ZT(fnD(I,)):YQ=Y+(-B)*ZY(fnD(I,)) GT=T+ZT(fnD(I,-B)):GY=Y+ZY(fnD(I,-B)) PSU=K(TP,YP):QSU=K(TQ,YQ) if (PSU>)and(QSU>)and(K(GT,GY)=) then TCASE=

33 if (PSU<)and(QSU<) then TCASE= if ((PSU<)and(QSU=))or((PSU=)and(QSU<)) then kari_oki K(GT,GY)= if PSU< then SSU=PSU else SSU=QSU IT=T:IY=Y:gosub *BLOCK K(GT,GY)= modosi if BN>SSU then TCASE= hantei if TCASE= then K(GT,GY)=-:FB(GT,GY)=: ZOKA= next B case_c TP=T+*ZT(fnD(I,)):YP=Y+*ZY(fnD(I,)) TQ=T+*ZT(fnD(I,)):YQ=Y+*ZY(fnD(I,)) if (<K(TP,YP))and(K(TP,YP)<)and(<K(TQ,YQ))and(K(TQ,YQ)<) then GT=T+HT(fnD(I,)):GY=Y+HY(fnD(I,)) if K(GT,GY)= then K(GT,GY)=-:FB(GT,GY)=: ZOKA= next I *HENSYORI for HEN= to if (HEN mod )= then HTY=:HLAST=GN- else HTY=:HLAST=RN- T,Y_kettei if HTY= then if HEN= then Y= else Y=RN else HTY= if HEN= then T= else T=GN for H= to HLAST if HTY= then T=H else Y=H if K(T,Y)= then MT=T:MY=Y:gosub *MAWARISU if (YSU=)and(P=)and(ZSU=) then IT=T:IY=Y:SSU=YTI:gosub *BLOCK MBN=BN IT=ZRT:IY=ZRY:SSU=:gosub *BLOCK if (MBN+BN)>YTI then

34 K(ZRT,ZRY)=-:FB(ZRT,ZRY)=: ZOKA= next H next HEN *TIDORI for ZT= to GN- for TDRTY= to if TDRTY= then TYSTR=:TYEND=RN- else TYSTR=:TYEND=RN for ZY=TYSTR to TYEND TP=ZT+:TM=ZT+ if TDRTY= then YP=ZY+:YM=ZY+ else YP=ZY-:YM=ZY- TRYSU=K(ZT,ZY):gosub *SUHAN: SH=SUHAN TRYSU=K(TP,YP):gosub *SUHAN: SH=SUHAN TIDORI= if (SH=)and(SH=) then TIDORI= if (SH=)and(SH=) then TIDORI=: TIDSU=K(ZT,ZY) if (SH=)and(SH=) then TIDORI=: TIDSU=K(TP,YP) if (TIDORI>=)and(K(TM,YM)=) then naname_check if TDRTY= then T=ZT:Y=ZY+: T=ZT+:Y=ZY: T=ZT+:Y=ZY+: T=ZT+:Y=ZY+ else T=ZT:Y=ZY-: T=ZT+:Y=ZY: T=ZT+:Y=ZY-: T=ZT+:Y=ZY- if (K(T,Y)=)and(K(T,Y)=)and(K(T,Y)=)and(K(T,Y)=) then tobidasi_check BNWA=: FTOBID= for K= to if K= then WT=ZT:WY=ZY else WT=TP:WY=YP:T=T:Y=Y:T=T:Y=Y T,Y_ketei IT=WT:IY=WY:SSU=K(WT,WY):gosub *BLOCK BNWA=BNWA+BN for W= to BN if FB(BL(W,),BL(W,))= then T=BL(W,):Y=BL(W,): exit for next W SU=K(WT,WY) gosub *BORDER nobi_jyunbi MBN=BN: for W= to BN:for W= to : MBL(W,W)=BL(W,W): next W,W KNSRSU=SRSU: for Q= to SRSU:for Q= to : TZL(Q,Q)=TYL(Q,Q): next Q,Q KANOTY=: gosub *NOBIJYUNBI

35 nobi_syori K(TM,YM)=:K(T,Y)=-:K(T,Y)=- kari_oki NOBITY=:gosub *NOBISYORI K(TM,YM)= :K(T,Y)= :K(T,Y)= hantei modosi if FBAD= then FTOBID=: exit for next K kabe_set? if (FTOBID=)and((TIDORI=)or((TIDORI>)and(BNWA+>TIDSU))) then K(TM,YM)=-:FB(TM,YM)=: ZOKA= next ZY next TDRTY next ZT *HANARESIMA for T= to GN:for Y= to RN if (FB(T,Y)=)and(K(T,Y)>) then SU=K(T,Y) gosub *BLTYLKIROKU if (MSRSU<=)and(MBN<(SU-MSRSU)) then nobi_syori KANOTY=:KNSRSU=MSRSU:JYOGAI=:gosub *NOBIJYUNBI MNOSU=NOSU NOBITY=:gosub *NOBISYORI saegiru_syori gosub *HANAREMAIN if ZOKA= then *HANAREMAIN nobi-list_kiroku MXNOSU=NOSU for I= to MXNOSU:for I= to : MNOBI(I,I)=NOBI(I,I): next I,I saegiri_koho MOMEN= for Q=MNOSU+ to MXNOSU QT=MNOBI(Q,):QY=MNOBI(Q,):QKYORI=MNOBI(Q,) K(QT,QY)=- kari_oki NOSU=MNOSU:NOBITY=:gosub *NOBISYORI K(QT,QY)= modosi

36 kai_list if FBAD= then MOMEN=MOMEN+: MOMEL(MOMEN,)=QT:MOMEL(MOMEN,)=QY:MOMEL(MOMEN,)=QKYORI next Q kai_set if MOMEN> then HANARETY=: GT=T:GY=Y:gosub *KAISYO: *KAISYO -- par. HANARETY, GT,GY -- for KSY= to MOMEN QT=MOMEL(KSY,):QY=MOMEL(KSY,):QKYORI=MOMEL(KSY,) if HANARETY= then -danme for I= to KKRN if (QT=DAN(I,))and(QY=DAN(I,)) then K(KKRL(I,),KKRL(I,))=-:exit for next I K(QT,QY)=: ZOKA= if K(GT,GY)< then FB(QT,QY)=: FBN=FBN+ FB(FBN,)=K(GT,GY):FB(FBN,)=QT:FB(FBN,)=QY FB(FBN,)=GT :FB(FBN,)=GY FB(FBN,)= :FB(FBN,)= : FB(FBN,)=QKYORI sesyoku FBTI=:TB=FBN else SU= FB(QT,QY)=: FBTI= ST=QT:SY=QY:SU=:gosub *SUSET next KSY *HANAREKABE for T= to GN:for Y= to RN if (FB(T,Y)=)and(K(T,Y)=-) then SU=- gosub *BLTYLKIROKU NOSU=MSRSU for Q= to MSRSU: NOBI(Q,)=TZL(Q,):NOBI(Q,)=TZL(Q,):NOBI(Q,)=MBN+: next Q NKATY=:MXNOBI=:gosub *NOBIKBAK for I= to KIROKU: K(TZL(KRL(I),),TZL(KRL(I),))= : next I if ZOKA= then

37 *NOBIKBAK -- par. NKATY,NOSU,MXNOBI -- if NKATY= then TOMESU=:SETSU=- else TOMESU=-:SETSU= R=: MNOSU=NOSU while (R<=NOSU)and(NOSU<MXNOBI) koho_sagasi for D= to KAT=NOBI(R,)+ZT(D):KAY=NOBI(R,)+ZY(D) stop? if NKATY= then if K(KAT,KAY)=- then hukumu FHUKU= for W= to BN if (KAT=BL(W,))and(KAY=BL(W,)) then FHUKU=: exit for next W if FHUKU= then else goto *NKAEND else NKATY= if K(KAT,KAY)> then if K(KAT,KAY)= then new? FHUKU= for Q= to NOSU if (KAT=NOBI(Q,))and(KAY=NOBI(Q,)) then FHUKU=: exit for next Q if FHUKU= then tuika NOSU=NOSU+:NOBI(NOSU,)=KAT:NOBI(NOSU,)=KAY toji_check K(KAT,KAY)=TOMESU kari_oki gosub *TOJICHECK K(KAT,KAY)= hantei modosi if FTOJI= then K(KAT,KAY)=SETSU:FB(KAT,KAY)=: ZOKA= if SETSU= then ST=KAT:SY=KAY:SU=:gosub *SUSET *NKAEND next D R=R+

38 wend *TOJICHECK FTOJI= TOJISU=MNOSU for S= to TOJISU:for S= to :TJC(S,S)=NOBI(S,S): next S,S RTJ= while (RTJ<=TOJISU)and(TOJISU<MXNOBI) koho_sagasi for DTJ= to TTJ=TJC(RTJ,)+ZT(DTJ):YTJ=TJC(RTJ,)+ZY(DTJ) stop? if NKATY= then if K(TTJ,YTJ)=- then hukumu FHUKU= for W= to BN if (TTJ=BL(W,))and(YTJ=BL(W,)) then FHUKU=: exit for next W if FHUKU= then else goto *TOJIEND else NKATY= if K(TTJ,YTJ)> then if K(TTJ,YTJ)= then new? FHUKU= for Q= to TOJISU if (TTJ=TJC(Q,))and(YTJ=TJC(Q,)) then FHUKU=: exit for next Q if FHUKU= then TOJISU=TOJISU+: TJC(TOJISU,)=TTJ:TJC(TOJISU,)=YTJ *TOJIEND next DTJ RTJ=RTJ+ wend hantei if (TOJISU<MXNOBI)and((NKATY=)or((NKATY=)and(<TOJISU))) then FTOJI= *AKITOJI for T= to GN:for Y= to RN if K(T,Y)= then MT=T:MY=Y:gosub *MAWARISU

39 if (YSU=)and(<=ZSU)and(ZSU<=) then NOSU=: NOBI(,)=T:NOBI(,)=Y NKATY=:MXNOBI=:gosub *NOBIKBAK tudukeru if ZOKA= then *TOJISIMA for TJT= to GN:for TJY= to RN SU=K(TJT,TJY) if (FB(TJT,TJY)=)and(<SU)and(SU<) then toji_check IT=TJT:IY=TJY:SSU=SU:TUNATY=:MXMS=SU+:gosub *SUTUNAGI if (FSU=)and(BN<MXMS) then KABESU=BN-SU: TJKOSU=:KHN= space_motome TJSPN= for W= to BN if K(BL(W,),BL(W,))= then TJSPN=TJSPN+ TYL(TJSPN,)=BL(W,):TYL(TJSPN,)=BL(W,) next W kosu_seigen gosub *CONKEISAN if CONS<=SPMAX then kabe_list for K= to KABESU: RN(K)=TJSPN-(KABESU-K): next K K=:R()= while K> if R(K)<=RN(K) then gosub *FOWARD else gosub *BACK if K>KABESU then gosub *KABELIST: gosub *BACK wend TOJISY=:MUKOSU=: goto *MUSYORI *TJMODOSI if MUKOSU=(TJKOSU-) then for I=KABESU*(NMJKVA-)+ to KABESU*NMJKVA K(KHL(I,),KHL(I,))=-:FB(KHL(I,),KHL(I,))=: ZOKA= next I next TJY,TJT

40 *FOWARD K=K+ R(K)=R(K-)+ *BACK K=K- R(K)=R(K)+ *KABELIST TJKOSU=TJKOSU+ for I= to KABESU KHN=KHN+ KHL(KHN,)=TYL(R(I),):KHL(KHN,)=TYL(R(I),):KHL(KHN,)=- next I *CONKEISAN CONS= for II= to KABESU CONS=CONS*(TJSPN+-II)/(KABESU+-II) next II *HEIKONOBI for HEN= to if (HEN mod )= then HTY=:HLAST=GN else HTY=:HLAST=RN T,Y_kettei gosub *HENTY T=VT:Y=VY for H= to HLAST if HTY= then T=H else Y=H if K(T,Y)= then for P= to if P= then D=HEN else D=RD(HEN) if (K(T+ZT(D),Y+ZY(D))=-)and(K(T+ZT(RD(D)),Y+ZY(RD(D)))=) then S=: KT()=T:KY()=Y while (K(KT(S),KY(S))=)and(S<=) new_iti for I= to if P= then GD=DJ(fnD(HEN,I-)) else GD=RDJ(fnD(RD(HEN),I-)) NET=KT(S)+ZT(GD):NEY=KY(S)+ZY(GD) if K(NET,NEY)> then exit for if K(NET,NEY)= then

41 MT=NET:MY=NEY:gosub *MAWARISU if (ZSU=)and(NSU=) then FANA= else FANA=: exit for next I if I< then S=S+:KT(S)=NET:KY(S)=NEY wend if S< then toji_check for I= to S-: K(KT(I),KY(I))=: next I IT=T+ZT(D):IY=Y+ZY(D):gosub *TOJIH for I= to S-: K(KT(I),KY(I))= : next I if FTOJI= then -- hanaresu_syori -- kari_oki gosub *HENTY kari_oki modosi if P= then HD=RD(HEN):SP=-SP(HEN) else HD=HEN:SP=SP(HEN) gosub *LEND: KKRN= for I=H to LEND step SP if HTY= then VT=I else VY=I heniti & banme _ kiroku if K(VT,VY)= then KKRN=KKRN+:KKRL(KKRN,)=VT:KKRL(KKRN,)=VY -danme DHEN=HEN:gosub *DAN else exit for next I tuzuki if I=LEND+SP then gosub *NEWHEN for I=NWSTR to NWLST step SP if (NWHEN mod )= then VT=I else VY=I if K(VT,VY)= then KKRN=KKRN+:KKRL(KKRN,)=VT:KKRL(KKRN,)=VY -danme DHEN=NWHEN:gosub *DAN else exit for next I for I= to KKRN: K(KKRL(I,),KKRL(I,))=-: next I kari_oki nobi_syori SU=K(KT(S),KY(S)) if (SU<)or((SU=)and(FB(KT(S),KY(S))<>)) then IT=KT(S):IY=KY(S):SSU=SU:gosub *BLOCK

42 gosub *BORDER MBN=BN: for W= to BN:for W= to : MBL(W,W)=BL(W,W): next W,W NOSU=SRSU for Q= to SRSU: NOBI(Q,)=TYL(Q,):NOBI(Q,)=TYL(Q,):NOBI(Q,)=MBN+: next Q MNOSU=NOSU NOBITY=:gosub *NOBISYORI -- saegiru_syori -- nobi-list_kiroku MXNOSU=NOSU for I= to MXNOSU:for I= to : MNOBI(I,I)=NOBI(I,I): next I,I saegiri_koho MOMEN= for Q=MNOSU+ to MXNOSU QT=MNOBI(Q,):QY=MNOBI(Q,):QKYORI=MNOBI(Q,) K(QT,QY)=- kari_oki NOSU=MNOSU:NOBITY=:gosub *NOBISYORI K(QT,QY)= modosi kai_list if FBAD= then MOMEN=MOMEN+: MOMEL(MOMEN,)=QT:MOMEL(MOMEN,) =QY:MOMEL(MOMEN,)=QKYORI next Q modosi for I= to KKRN: K(KKRL(I,),KKRL(I,))=: next I modosi kai_set if MOMEN> then HANARETY=:GT=KT(S):GY=KY(S):gosub *KAISYO: next P next H next HEN *TOJIH -- par. IT,IY -- TUNATY=: SSU=-:MXMS=: gosub *SUTUNAGI if BN<KBN then FTOJI= else FTOJI= *HENTY if HTY= then if HEN= then VY= else VY=RN else HTY= if HEN= then VT= else VT=GN

43 *LEND if SP=- then LEND= else SP= if HTY= then LEND=GN else LEND=RN *NEWHEN select case HEN case NWSTR=:NWLST=RN:SP= if LEND= then NWHEN=:VT= else NWHEN=:VT=GN case NWSTR=:NWLST=GN:SP= if LEND= then NWHEN=:VY= else NWHEN=:VY=RN case NWSTR=RN:NWLST=:SP=- if LEND= then NWHEN=:VT= else NWHEN=:VT=GN case NWSTR=GN:NWLST=:SP=- if LEND= then NWHEN=:VY= else NWHEN=:VY=RN end select *DAN -- par. DHEN -- select case DHEN case DAN(KKRN,)=VT:DAN(KKRN,)= case DAN(KKRN,)=:DAN(KKRN,)=VY case DAN(KKRN,)=VT:DAN(KKRN,)=RN- case DAN(KKRN,)=GN-:DAN(KKRN,)=VY end select *SYOZOKUSIMA mikakutei_sima MKSN= for T= to GN:for Y= to RN if (<K(T,Y))and(K(T,Y)<)and(FB(T,Y)=) then FB_jyogai FHAN= for TB= to FBN

44 if (T=FB(TB,))and(Y=FB(TB,)) then FHAN=: exit for next TB if FHAN= then MKSN=MKSN+:MKSL(MKSN,)=T:MKSL(MKSN,)=Y:MKSL(MKSN,)=K(T,Y) main for T= to GN:for Y= to GN if (K(T,Y)=)and(FB(T,Y)=) then IT=T:IY=Y:SSU=:gosub *BLOCK MBN=BN: gosub *BORDER MSRSU=SRSU for Q= to SRSU:for Q= to : TZL(Q,Q)=TYL(Q,Q): next Q,Q syozoku-sima_sagasi GKOSU=: GQ= for Q= to MKSN TZT=MKSL(Q,):TZY=MKSL(Q,):gosub *KYORIKEI if MNK<=MKSL(Q,) then GKOSU=GKOSU+ if MNK=MKSL(Q,) then GQ=Q next Q if (GKOSU=)and(GQ>) then SIMAT=MKSL(GQ,):SIMAY=MKSL(GQ,):SIMASU=MKSL(GQ,) mawari_kabe-set( case_a ) SRN= for KK= to SRSU KA=abs(SIMAT-TYL(KK,))+abs(SIMAY-TYL(KK,))+MBN+ if KA>SIMASU then K(TYL(KK,),TYL(KK,))=-:FB(TYL(KK,),TYL(KK,))=: ZOKA= else SRN=SRN+:SRL(SRN,)=TYL(KK,):SRL(SRN,)=TYL(KK,) next KK mawari_kabe-set( case_b ) IT=SIMAT:IY=SIMAY:SSU=SIMASU:gosub *BLOCK gosub *BORDER SRN= for KK= to SRSU gosub *KYORIKEI if MNK+BN+MBN+>SIMASU then K(TYL(KK,),TYL(KK,))=-:FB(TYL(KK,),TYL(KK,))=: ZOKA= else SRN=SRN+:SRL(SRN,)=TYL(KK,):SRL(SRN,)=TYL(KK,) next KK mizoku-sima_jyogai for I= to SRN:for I= to SRN STT=SRL(I,):STY=SRL(I,):LTT=SRL(I,):LTY=SRL(I,) if STT<=LTT then DT=STT:UT=LTT else DT=LTT:UT=STT if STY<=LTY then LY=STY:RY=LTY else LY=LTY:RY=STY

45 for I=DT to UT:for I=LY to RY if K(I,I)= then next I,I next I,I nobi_kano-masu NHN= for I= to SRN:for I= to SRN STT=SRL(I,):STY=SRL(I,):LTT=SRL(I,):LTY=SRL(I,) if STT<=LTT then STEPT= else STEPT=- if STY<=LTY then STEPY= else STEPY=- for ST=STT to LTT step STEPT:for SY=STY to LTY step STEPY if K(ST,SY)= then new? FDBL= for CH= to NHN if (ST=NHL(CH,))and(SY=NHL(CH,)) then FDBL=: exit for next CH if FDBL= then nobi_hantei if ((ST=STT)and(SY=STY))or((ST=LTT)and(SY=LTY)) then NHN=NHN+: NHL(NHN,)=ST:NHL(NHN,)=SY else MT=ST:MY=SY:gosub*MAWARISU if (YSU=)and(P=) then NHN=NHN+:NHL(NHN,)=ST:NHL(NHN,)=SY next SY,ST next I,I nobi_tome for Q= to NHN jyogai_settei JGAIT=NHL(Q,):JGAIY=NHL(Q,) gosub *SAITANKOSU if FSAITAN= then K(JGAIT,JGAIY)=:FB(JGAIT,JGAIY)=: ZOKA= FBN=FBN+: FB(FBN,)=SIMASU:FB(FBN,)=SIMAT:FB(FBN,)=SIMAY FB(FBN,)=JGAIT:FB(FBN,)=JGAIY FB(FBN,)=abs(SIMAT-JGAIT)+abs(SIMAY-JGAIY)+ next Q if ZOKA= then

46 *KYORIKEI MNK= for JJ= to MSRSU KA=abs(TYL(KK,)-TZL(JJ,))+abs(TYL(KK,)-TZL(JJ,)) if KA<MNK then MNK=KA next JJ *SAITANKOSU susumu_hoko if (STEPT=)and(STEPY=) then D()=:D()= if (STEPT=)and(STEPY=-) then D()=:D()= if (STEPT=-)and(STEPY=) then D()=:D()= if (STEPT=-)and(STEPY=-) then D()=:D()= K=: R()=:RT()=STT:RY()=STY while (K>)and((RT(K)<>LTT)or(RY(K)<>LTY)) susumu_han SKT=RT(K)+ZT(D(R(K))):SKY=RY(K)+ZY(D(R(K))) FHUKUMU= if (SKT<>JGAIT)or(SKY<>JGAIY) then for W= to NHN if (SKT=NHL(W,))and(SKY=NHL(W,)) then FHUKUMU=: exit for next W if FHUKUMU= then FOWARD K=K+ R(K)=: RT(K)=SKT:RY(K)=SKY else if R(K)< then R(K)=R(K)+ else BACK K=K- R(K)=R(K)+ wend hantei if K> then FSAITAN= else FSAITAN= *KANSEICH FMU=: ZEROSU= HFB_sakusei for T= to GN:for Y= to RN CFB(T,Y)=FB(T,Y)

47 FB_new for T= to GN:for Y= to RN if K(T,Y)= then FB(T,Y)=:ZEROSU=ZEROSU+ else FB(T,Y)= kanse-check_a for T= to GN:for Y= to RN if FB(T,Y)= then SU=K(T,Y) IT=T:IY=Y:SSU=SU:MAINTY=:gosub *BLOCK if SU=- then HSU=KBN else HSU=SU check if BN>HSU then FMU=: goto *FBMODOSI else gosub *BORDER if (SRSU=)and(BN<HSU) then FMU=: goto *FBMODOSI kanse-check_b for T= to GN-:for Y= to RN- NSU= for I= to :for J= to MT=T+I:MY=Y+J if K(MT,MY)=- then NSU=NSU+ next J,I if NSU= then FMU=: goto *FBMODOSI *FBMODOSI FB_modosi for T= to GN:for Y= to RN FB(T,Y)=CFB(T,Y) *MUJYUNSYORI FMSTOP= if FMUSY= then FMUSY= koho-list_yobidasi if KHN= then FMSTOP=:FMUSY=: hikae_toru for I= to GN:for J= to RN: HK(I,J)=K(I,J):HFB(I,J)=FB(I,J): next J,I HFBN=FBN for I= to FBN:for J= to : HFB(I,J)=FB(I,J): next J,I for I= to SIMASU:for I= to : HSIMA(I,I)=SIMA(I,I): next I,I

48 atai_set KVA= if TOJISY= then ASETY=:gosub *ATAISET else gosub *TJASET else hairetu_modosi for I= to GN:for J= to RN: K(I,J)=HK(I,J):FB(I,J)=HFB(I,J): next J,I FBN=HFBN for I= to FBN:for J= to : FB(I,J)=HFB(I,J): next J,I for I= to SIMASU:for I= to : SIMA(I,I)=HSIMA(I,I): next I,I if TOJISY= then mujyun_ari? if FMU= then ASETY=:gosub *ATAISET FMUSY= else KVA=KVA+ if KVA<=KHN then atai_set ASETY=:gosub *ATAISET else FMSTOP=:FMUSY= else mujyun_ari? if FMU= then MUKOSU=MUKOSU+ else NMJKVA=KVA tugi_atai KVA=KVA+ if KVA<=TJKOSU then atai_set gosub *TJASET else FMSTOP=:FMUSY= *ATAISET -- par. KVA -- NWT=KHL(KVA,):NWY=KHL(KVA,):SU=KHL(KVA,) if ASETY= then if SU> then ATAI=- else ATAI= K(NWT,NWY)=ATAI:FB(NWT,NWY)=:ZOKA= if ATAI= then ST=NWT:SY=NWY:SU=:FBTI=:gosub *SUSET else ASETY= K(NWT,NWY)=SU:FB(NWT,NWY)=-: ZOKA=

49 if SU> then ST=NWT:SY=NWY:FBTI=:gosub *SUSET *TJASET for I=KABESU*(KVA-)+ to KABESU*KVA K(KHL(I,),KHL(I,))=-:FB(KHL(I,),KHL(I,))=: ZOKA= next I *KOHOLIST KHN= -- level_ -- case_a for T= to GN:for Y= to RN if FB(T,Y)= then SU=K(T,Y) IT=T:IY=Y:SSU=SU:gosub *BLOCK gosub *BORDER if SRSU<=SRMAX(LEVEL) then for I= to SRSU KHN=KHN+:KHL(KHN,)=TYL(I,):KHL(KHN,)=TYL(I,):KHL(KHN,)=SU next I case_b for MT= to GN:for MY= to RN if K(MT,MY)= then gosub *MAWARISU if (NSU=)and(ZSU=) then KHN=KHN+:KHL(KHN,)=MT:KHL(KHN,)=MY:KHL(KHN,)=- next MY,MT Part(), Part(), Part(), Part() Easy,Medium,Hard []

50 Easy,Medium,Hard.,.,.. Easy,Medium,Hard []

51 [] Easy,Medium,Hard.,.,... Easy,Medium,Hard Ea Me Ha [],,,() []

コンピュータ概論

コンピュータ概論 4.1 For Check Point 1. For 2. 4.1.1 For (For) For = To Step (Next) 4.1.1 Next 4.1.1 4.1.2 1 i 10 For Next Cells(i,1) Cells(1, 1) Cells(2, 1) Cells(10, 1) 4.1.2 50 1. 2 1 10 3. 0 360 10 sin() 4.1.2 For

More information

untitled

untitled 2000 (1257) 2001 (1504) 2002 (1427) 2003 (1948) 2004 (2872) 2005 (2424) 2006 (1765) Case1A Case1B Case2A Case2B Case3A Case3B or \ \ \ \

More information

N88 BASIC 0.3 C: My Documents 0.6: 0.3: (R) (G) : enterreturn : (F) BA- SIC.bas 0.8: (V) 0.9: 0.5:

N88 BASIC 0.3 C: My Documents 0.6: 0.3: (R) (G) : enterreturn : (F) BA- SIC.bas 0.8: (V) 0.9: 0.5: BASIC 20 4 10 0 N88 Basic 1 0.0 N88 Basic..................................... 1 0.1............................................... 3 1 4 2 5 3 6 4 7 5 10 6 13 7 14 0 N88 Basic 0.0 N88 Basic 0.1: N88Basic

More information

コンピュータ概論

コンピュータ概論 5.1 VBA VBA Check Point 1. 2. 5.1.1 ( bug : ) (debug) On Error On Error On Error GoTo line < line > 5.1.1 < line > Cells(i, j) i, j 5.1.1 MsgBox Err.Description Err1: GoTo 0 74 Visual Basic VBA VBA Project

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション ループ ループとは? ある条件を満たすまで 指定の命令を繰り返す Do... Loop For Next For Each Next While WEnd ループの種類 Do Loop Do While 条件 ステートメント Loop Do ステートメント Loop While 条件 Do Until 条件 ステートメント Loop Do ステートメント Until Loop 条件 Do Loop

More information

chapter4.PDF

chapter4.PDF 4. 4.1. 4.2. 63 4 1 4.3. 4.3.1. 4 a) 1 5 b) 1 c) d) 1 4.3.2. a) b) c) a) 10 18 b) 2 17 2 1 54 2 1 c) 11 4 1 1 (TB) (FB) TB FB 4.3.3. 4.3.4. 1 18 16 4.3.5. a) b) 18 16 a) b) c) 1 18 16 2 1 18 16 3 18 16

More information

10 1 1 (1) (2) (3) 3 3 1 3 1 3 (4) 2 32 2 (1) 1 1

10 1 1 (1) (2) (3) 3 3 1 3 1 3 (4) 2 32 2 (1) 1 1 10 10 1 1 (1) (2) (3) 3 3 1 3 1 3 (4) 2 32 2 (1) 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 (2) 1 (3) JI S JI S JI S JI S 25 175 J AS 3 (1) 3 70 (2) (3) 100 4 (1)69 (2) (3) (4) (5) (6) (7) (8)70 (9) (10)2 (11)

More information

離散数理工学 第 2回 数え上げの基礎:漸化式の立て方

離散数理工学 第 2回  数え上げの基礎:漸化式の立て方 2 okamotoy@uec.ac.jp 2015 10 20 2015 10 18 15:29 ( ) (2) 2015 10 20 1 / 45 ( ) 1 (10/6) ( ) (10/13) 2 (10/20) 3 ( ) (10/27) (11/3) 4 ( ) (11/10) 5 (11/17) 6 (11/24) 7 (12/1) 8 (12/8) ( ) (2) 2015 10 20

More information

技術ノート KGTN

技術ノート KGTN 技術ノート KGTN 2010092203 現象プリンタドライバを多数の GG サーバにインストールしたい. 説明このようなケースでは, プリンタドライバを含む マスタとなる GG サーバのイメージを作成し, それを展開するのが最善の方法です. プリンタドライバが追加された場合は, 各 GG サーバ上で標準的な手順でインストールするか, または 新しいプリンタドライバを含む マスタとなる GG サーバのイメージを作成し,

More information

My関数の作成演習問題集

My関数の作成演習問題集 Excel Sum,Average,Max 330 BMI Excel My Excel VBA Visual BASIC Editor AltF11 Visual BASIC Editor My Function Function -1- Function ( As Single, As Single) As Double Function Funciton Funciton As Single

More information

FAX780CL_chap-first.fm

FAX780CL_chap-first.fm FAX-780CL ABCDEFGHIα 01041115:10 :01 FAX-780CL α 1 1 2 3 1 2 f k b a FAX-780CL α n p q 09,. v m t w FAX-780CL A BC B C D E F G H I c i c s s i 0 9 V X Q ( < N > O P Z R Q: W Y M S T U V i c i k

More information

Taro-数値計算の誤差(公開版)

Taro-数値計算の誤差(公開版) 0. 目次 1. 情報落ち 計算のルールを 10 進 4 桁 切り捨て と仮定する 2 つの数の加算では まず小数点が合わされ 大きい数が優先される したがって 12.34 + 0.005678 は 12.34 と計算される このように 絶対値の小さい数を絶対値の大きい数に加えてもほとんど影響を与えない現象を情報落ちという 2. オーバーフロー アンダーフロー 計算結果の絶対値がコンピュータの処理できる最大の数を越えてしまう現象をオーバーフローという

More information

Appendix A BASIC BASIC Beginner s All-purpose Symbolic Instruction Code FORTRAN COBOL C JAVA PASCAL (NEC N88-BASIC Windows BASIC (1) (2) ( ) BASIC BAS

Appendix A BASIC BASIC Beginner s All-purpose Symbolic Instruction Code FORTRAN COBOL C JAVA PASCAL (NEC N88-BASIC Windows BASIC (1) (2) ( ) BASIC BAS Appendix A BASIC BASIC Beginner s All-purpose Symbolic Instruction Code FORTRAN COBOL C JAVA PASCAL (NEC N88-BASIC Windows BASIC (1 (2 ( BASIC BASIC download TUTORIAL.PDF http://hp.vector.co.jp/authors/va008683/

More information

31 33

31 33 17 3 31 33 36 38 42 45 47 50 52 54 57 60 74 80 82 88 89 92 98 101 104 106 94 1 252 37 1 2 2 1 252 38 1 15 3 16 6 24 17 2 10 252 29 15 21 20 15 4 15 467,555 14 11 25 15 1 6 15 5 ( ) 41 2 634 640 1 5 252

More information

Taro-Basicの基礎・条件分岐(公

Taro-Basicの基礎・条件分岐(公 0. 目次 3. 条件分岐 3. 1 If 文 3. 1. 1 処理を分岐する方法 3. 1. 2 処理を 2 つに分岐する方法 3. 1. 3 処理を 3 つ以上に分岐する方法 3. 2 Select Case 文 - 1 - 3. 条件分岐 条件により ある 文 を実行したりしなかったりするとき If 文を使う たとえば ある変数の値により 奇数 と表示したり 偶数 と表示したりするような処理ができる

More information

untitled

untitled Tylor 006 5 ..........5. -...... 5....5 5 - E. G. BASIC Tylor.. E./G. b δ BASIC.. b) b b b b δ b δ ) δ δ δ δ b b, b ) b δ v, b v v v v) ) v v )., 0 OPTION ARITHMETIC DECIMAL_HIGH INPUT FOR t TO 9 LET /*/)

More information

.NETプログラマー早期育成ドリル ~VB編 付録 文法早見表~

.NETプログラマー早期育成ドリル ~VB編 付録 文法早見表~ .NET プログラマー早期育成ドリル VB 編 付録文法早見表 本資料は UUM01W:.NET プログラマー早期育成ドリル VB 編コードリーディング もしくは UUM02W:.NET プログラマー早期育成ドリル VB 編コードライティング を ご購入頂いた方にのみ提供される資料です 資料内容の転載はご遠慮下さい VB プログラミング文法早見表 < 基本文法 > 名前空間の定義 Namespace

More information

1. A0 A B A0 A : A1,...,A5 B : B1,...,B

1. A0 A B A0 A : A1,...,A5 B : B1,...,B 1. A0 A B A0 A : A1,...,A5 B : B1,...,B12 2. 3. 4. 5. A0 A B f : A B 4 (i) f (ii) f (iii) C 2 g, h: C A f g = f h g = h (iv) C 2 g, h: B C g f = h f g = h 4 (1) (i) (iii) (2) (iii) (i) (3) (ii) (iv) (4)

More information

joho09.ppt

joho09.ppt s M B e E s: (+ or -) M: B: (=2) e: E: ax 2 + bx + c = 0 y = ax 2 + bx + c x a, b y +/- [a, b] a, b y (a+b) / 2 1-2 1-3 x 1 A a, b y 1. 2. a, b 3. for Loop (b-a)/ 4. y=a*x*x + b*x + c 5. y==0.0 y (y2)

More information

DA100データアクイジションユニット通信インタフェースユーザーズマニュアル

DA100データアクイジションユニット通信インタフェースユーザーズマニュアル Instruction Manual Disk No. RE01 6th Edition: November 1999 (YK) All Rights Reserved, Copyright 1996 Yokogawa Electric Corporation 801234567 9 ABCDEF 1 2 3 4 1 2 3 4 1 2 3 4 1 2

More information

Lesson 1 1 EXVBA2000 Lesson01 Lesson01.xls 2

Lesson 1 1 EXVBA2000 Lesson01 Lesson01.xls 2 Excel2000VBA L e a r n i n g S c h o o l 1 Lesson 1 1 EXVBA2000 Lesson01 Lesson01.xls 2 3 Module1:(General)- Public Sub () Dim WS As Object Dim DiffDate As Integer Dim MaxRows As Integer, CopyRows As Integer

More information

サイボウズ ワークフロー for ガルーン 2 マニュアル

サイボウズ ワークフロー for ガルーン 2 マニュアル 1 1 1 1 1 2 3 1 1 1 1 1 2 1 2 3 4 1 2 q w 3 4 1 2 q w 1 2 w q 3 1 2 1 2 3 4 1 2 1 2 1 2 1 2 1 2 3 1 1 2 2 1 2 1 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 3 1 2 3 1 2 3 1 2 3 1 2 Stepq 1 2

More information

google_guide_h1_h4.ai

google_guide_h1_h4.ai ?! PART 1 PART 2 FAQ PART 1 1 STEP! CASE A CASE B CASE B B CASE C CASE A CASE B CASE A CASE C 02 2 STEP!! 03 PART 1 PART 1? 04 PART 1 3 STEP 1 2 3 05 !! 1 2 3 1 2 3 PART 1 06 07 PART 2 PART 2 09 PART

More information

D0050.PDF

D0050.PDF Excel VBA 6 3 3 1 Excel BLOCKGAME.xls Excel 1 OK 2 StepA D B1 B4 C1 C2 StepA StepA Excel Workbook Open StepD BLOCKGAME.xls VBEditor ThisWorkbook 3 1 1 2 2 3 5 UserForm1 4 6 UsorForm2 StepB 3 StepC StepD

More information

PR300 電力モニタ 通信インタフェース (RS-485通信,Ethernet通信)

PR300 電力モニタ 通信インタフェース (RS-485通信,Ethernet通信) User s Manual 1 2 3 1 2 3 Ethernet 1 2 3 4 Ethernet (ST-NO) (PCLK1) (PCLK2) (COMM) (M ASC) (M RTU) (M TCP) (RS-485) (B-RT) (PR201) (NONE) (PRI) (EVEN) (ODD) (STP) (DLN) (RS-485) (Ethernet) (IP-1)

More information

(1) (2) (3) (4) (1) (a) (b) (c) (d) kg 9.8 N 5.0 kg 19.6 m/s kg m/s 8.0kg (2) 1 r=1.0m ABC QA =1

(1) (2) (3) (4) (1) (a) (b) (c) (d) kg 9.8 N 5.0 kg 19.6 m/s kg m/s 8.0kg (2) 1 r=1.0m ABC QA =1 2/ 土 28 6 11 10:30 11:20 似通った科目名がありますので注意してください. 受験許可されていない科目を解答した場合は無効 整理番号と科目コードは受験許可証とよく照合し正確に記入 30 10 11 12 00011 00016 2 01101 02607 4 (1) (2) (3) (4) 02703 (1) (a) (b) (c) (d) 1 5.0 kg 9.8 N 5.0

More information

1 1 [1] ( 2,625 [2] ( 2, ( ) /

1 1 [1] ( 2,625 [2] ( 2, ( ) / [] (,65 [] (,3 ( ) 67 84 76 7 8 6 7 65 68 7 75 73 68 7 73 7 7 59 67 68 65 75 56 6 58 /=45 /=45 6 65 63 3 4 3/=36 4/=8 66 7 68 7 7/=38 /=5 7 75 73 8 9 8/=364 9/=864 76 8 78 /=45 /=99 8 85 83 /=9 /= ( )

More information

CommandMatrix_8230E

CommandMatrix_8230E 4. USB 4. USB 4.1 USB2.0 Full Speed USB (Universal Serial Bus) USB 4.2 USB : USB2.0 Full Speed : USB B : A112010 USB(A) -USB B 1 m ID: MYID 1 127 : : ASCII : ASCII : ADC USB 4.3 USB 4.3.1 ADC USB ADC USB

More information

Collatzの問題 (数学/数理科学セレクト1)

Collatzの問題 (数学/数理科学セレクト1) / AICHI UNIVERSITY OF EDUCATION A { z = x + iy 0.100

More information

B 5 (2) VBA R / B 5 ( ) / 34

B 5 (2) VBA R / B 5 ( ) / 34 B 5 (2) VBAR / B 5 (2014 11 17 ) / 34 VBA VBA (Visual Basic for Applications) Visual Basic VBAVisual Basic Visual BasicC B 5 (2014 11 17 ) 1 / 34 VBA 2 Excel.xlsm 01 Sub test() 02 Dim tmp As Double 03

More information

t 2 2 t 2 t F ( ) p- 2 2 F 2 G F ( ) 2 2 F 2 G F ( ) 2 2 2

t 2 2 t 2 t F ( ) p- 2 2 F 2 G F ( ) 2 2 F 2 G F ( ) 2 2 2 1 2 2 0 1 2 2 2 2 2 2 2 2.1 2 2 F={f ij }, G {g ij } t f ij t g ij = 1 f ij < t g ij = 0 t p- p S 0 S p = S 0 /S t p 2 t 1 t 2 2 t 2 t 2 2 3 3 1 2 F ( ) p- 2 2 F 2 G 3 2 2 F ( ) 2 2 F 2 G 3 3 2 F ( ) 2

More information

卒業論文.PDF

卒業論文.PDF 234 1 1 1.1 1 1.2 4 1.3 4 2 5 2.1 5 2.2 6 2.3 7 2.3.1 7 2.3.2 8 2.3.3 9 2.3.4 9 2.3.5 9 2.3.6 9 3 1 3.1 3.2 3.3 11 3.4 14 3.4.1 14 3.4.2 15 3.5 16 3.6 17 i 4 2 18 4.1 18 4.2 19 4.2.1 2m/sec 2 4.2.2 3m/sec

More information

SCORE−‹Šp‡Ì”è‹ø‡«Ver3

SCORE−‹Šp‡Ì”è‹ø‡«Ver3 2 Step 0 Step 1 Step 1 Step 2 Step 3 Step 4 Step 5 Step1 3 Step 2 Step 2-1 Step 2-2 Step3 Step4 Step2 4 5 Step 3 Step 3-1 Step 3-2 Step 3-3 Step5 6 Step 3-4 Step3 Step5 7 8 Step 4 Step 4-1 9 Step4 Step

More information

y = x 4 y = x 8 3 y = x 4 y = x 3. 4 f(x) = x y = f(x) 4 x =,, 3, 4, 5 5 f(x) f() = f() = 3 f(3) = 3 4 f(4) = 4 *3 S S = f() + f() + f(3) + f(4) () *4

y = x 4 y = x 8 3 y = x 4 y = x 3. 4 f(x) = x y = f(x) 4 x =,, 3, 4, 5 5 f(x) f() = f() = 3 f(3) = 3 4 f(4) = 4 *3 S S = f() + f() + f(3) + f(4) () *4 Simpson H4 BioS. Simpson 3 3 0 x. β α (β α)3 (x α)(x β)dx = () * * x * * ɛ δ y = x 4 y = x 8 3 y = x 4 y = x 3. 4 f(x) = x y = f(x) 4 x =,, 3, 4, 5 5 f(x) f() = f() = 3 f(3) = 3 4 f(4) = 4 *3 S S = f()

More information

FAX780TA_chap-first.fm

FAX780TA_chap-first.fm FAX-780TA ABCDEFGHIα 01041115:10 :01 FAX-780CL α 1 1 2 3 1 2 f k b a FAX-780TA α n p q 09,. v m t w FAX-780TA A BC B C D E F G H I c i c s s i 0 9 i c i k o o o t c 0 9 - = C t C B t - = 1 2 3

More information

CRA3689A

CRA3689A AVIC-DRZ90 AVIC-DRZ80 2 3 4 5 66 7 88 9 10 10 10 11 12 13 14 15 1 1 0 OPEN ANGLE REMOTE WIDE SET UP AVIC-DRZ90 SOURCE OFF AV CONTROL MIC 2 16 17 1 2 0 0 1 AVIC-DRZ90 2 3 4 OPEN ANGLE REMOTE SOURCE OFF

More information

Microsoft Word - VBA基礎(3).docx

Microsoft Word - VBA基礎(3).docx 上に中和滴定のフローチャートを示しました この中で溶液の色を判断する部分があります このような判断はプログラムではどのように行うのでしょうか 判断に使う命令は IF 文を使います IF は英語で もし何々なら という意味になります 条件判断条件判断には次の命令を使います If 条件式 1 Then ElseIf 条件式 2 Then ElseIf 条件式 3 Then 実行文群 1 実行文群 2 実行文群

More information

AccessVBA−‹ŠpŁÒ-flO“Z

AccessVBA−‹ŠpŁÒ-flO“Z Microsoft Access 1 2 Private Sub After5days_Click( ) msg = Date + 5 MsgBox mag End Sub 3 Me.Filter = " =' " & Me! & "'" 4 5 Private Sub _Click() If IsNull(Me!) Then MsgBox " " Me!.SetFocus Me!.Dropdown

More information

Case 0 sqlcmdi.parameters("?tencode").value = Iidata(0) sqlcmdi.parameters("?tenname").value = Iidata(1) 内容を追加します sqlcmdi.executenonquery() Case Else

Case 0 sqlcmdi.parameters(?tencode).value = Iidata(0) sqlcmdi.parameters(?tenname).value = Iidata(1) 内容を追加します sqlcmdi.executenonquery() Case Else Imports MySql.Data.MySqlClient Imports System.IO Public Class Form1 中間省略 Private Sub コマンドテストCToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles コマンドテストCToolStripMenuItem.Click

More information

Windows Cygwin Mac *1 Emacs Ruby ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2

Windows Cygwin Mac *1 Emacs Ruby ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2 September 2016 1 Windows Cygwin Mac *1 Emacs Ruby 1 1.1 ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2 ~/16:00:20> ls 2 2 ls ls -a ~/16:00:20> ls -a

More information

総合的な経済・エネルギー・環境分析に資する技術情報の整備のための研究

総合的な経済・エネルギー・環境分析に資する技術情報の整備のための研究 1995 2000 4 3 2 2 1995 SNAIO 2000 2001 2002 4 1 3 3 3 SNAIO87 4 1000 Let SNAIO87 /=1000 4 1000 Let SNAIO86 =GroupCol(SNAIO87,SNAIO87ToSNA86Col) 4 87 86 SNAIO87ToSNA86Col Basic If Then Loop End Loop For

More information

Canon Industrial Imaging Platform Vision Edition 使用説明書

Canon Industrial Imaging Platform Vision Edition 使用説明書 Ver. 1.1 Canon Industrial Imaging Platform Vision Edition 2 Canon Industrial Imaging Platform Vision Edition * PC PC Power over Ethernet * A 180 ( ) - - - - - - - ( ) - - - - - AF AF 3 ( ) A PC PoE PLC

More information

30 2014.08 2 1985 Koblitz Miller 2.1 0 field Fp p prime field Fp E Fp Fp Hasse Weil 2.2 Fp 2 P Q R R P Q O P O R Q Q O R P P xp, yp Q xq, yq yp yq R=O

30 2014.08 2 1985 Koblitz Miller 2.1 0 field Fp p prime field Fp E Fp Fp Hasse Weil 2.2 Fp 2 P Q R R P Q O P O R Q Q O R P P xp, yp Q xq, yq yp yq R=O An Internet Vote Using the Elliptic Curve Cryptosystem TAKABAYASHI Shigeki Nowadays various changes are taking place in the society by the spread of the Internet, and we will vote by the Internet using

More information

1. 入力画面

1. 入力画面 指定した時刻に指定したマクロ (VBA) を実行するプログラム (VBA) 益永八尋 様々な業務を行っている場合には 指定した時刻に指定したマクロ (Macro VBA) を実行したくなる場合がある たとえば 9:00 17: 00 や 1 時間 6 時間間隔に指定したマクロ (Macro VBA) を実行する この様な場合に対応できるように汎用性の高いプログラムを作成した この場合に注意する必要があるのは

More information

Excel Excel Excel = Excel ( ) 1

Excel Excel Excel = Excel ( ) 1 10 VBA / 10 (2016 06 21 ) Excel Excel Excel 20132 20 = 1048576 Excel 201316 100 10 (2016 06 21 ) 1 Excel VBA Excel Excel 2 20 Excel QR Excel R QR QR BLASLAPACK 10 (2016 06 21 ) 2 VBA VBA (Visual Basic

More information

レイアウト 1

レイアウト 1 1 1 3 5 25 41 51 57 109 2 4 Q1 A. 93% 62% 41% 6 7 8 Q1-(1) Q2 A. 24% 13% 52% Q3 Q3 A. 68% 64 Q3-(2) Q3-(1) 9 10 A. Q3-(1) 11 A. Q3-(2) 12 A. 64% Q4 A. 47% 47% Q5 QQ A. Q Q A. 13 QQ A. 14 Q5-(1) A. Q6

More information

10_11p01(Ł\”ƒ)

10_11p01(Ł\”ƒ) q q q q q q q q q q q q q q q q q q q q q q q q q qq q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q

More information

橡vb_kikai0.PDF

橡vb_kikai0.PDF Visual Basic OS Windows Visual Basic GPIBRS232C A/D Visual Basic Windows Visual Basic Visual Basic Visual Basic Visual Basic Windows GUI( ) OS Visual Basic Form Form 1 Visual Basic Microsoft Visual Basic

More information

BASICとVisual Basic

BASICとVisual Basic Visual Basic BASIC Visual Basic BASICBeginner's All purpose Symbolic Instruction Code Visual Basic Windows BASIC BASIC Visual Basic Visual Basic End Sub .Visual Basic Visual Basic VB 1-1.Visual Basic

More information

csv csv

csv csv 2009 1 9 2 1. 1 2. 2 2.1......................................... 2 2.2 csv.................................... 3 2.3 csv.................................. 3 3. 4 3.1.........................................

More information

Taro13-①表紙関係.jtd

Taro13-①表紙関係.jtd 39 03 04 05 -- -2- ?? A A D = A B C A2 HI H = DG BC B = A G = EF C E = A I = H F = AE -39- 2 3 0.8 n n n n n 0.8 n n 0.8 n 70 30 00 70 30 70 30 00 250 250 200 bn 400

More information

3 m = [n, n1, n 2,..., n r, 2n] p q = [n, n 1, n 2,..., n r ] p 2 mq 2 = ±1 1 1 6 1.1................................. 6 1.2......................... 8 1.3......................... 13 2 15 2.1.............................

More information

n 第1章 章立ての部分は、書式(PC入門大見出し)を使います

n 第1章 章立ての部分は、書式(PC入門大見出し)を使います FORTRAN FORTRAN FORTRAN ) DO DO IF IF FORTRAN FORTRAN(FORmula TRANslator)1956 IBM FORTRAN IV FORTRAN77 Fortran90 FORTRAN77 FORTRAN FORTARN IF, DO C UNIX FORTRAN PASCAL COBOL PL/I BASIC Lisp PROLOG Lisp

More information

D0120.PDF

D0120.PDF 12? 1940 Stanislaw Ulam John von Neumann Cellular Automaton 2 Cellular Automata 1 0 1 2 0 1 A 3 B 1 2 3 C 10 A B C 1 ExcelVBA 1 1 1 1 0 1 1 B7 BD7 road1 B8 BD31 board 0 Road1 50 board 0 1 0 1 Excel 2 2

More information

離散数理工学 第 2回 数え上げの基礎:漸化式の立て方

離散数理工学 第 2回  数え上げの基礎:漸化式の立て方 2 okamotoy@uec.ac.jp 2014 10 21 2014 10 29 10:48 ( ) (2) 2014 10 21 1 / 44 ( ) 1 (10/7) ( ) (10/14) 2 (10/21) 3 ( ) (10/28) 4 ( ) (11/4) 5 (11/11) 6 (11/18) 7 (11/25) ( ) (2) 2014 10 21 2 / 44 ( ) 8 (12/2)

More information

. (.8.). t + t m ü(t + t) + c u(t + t) + k u(t + t) = f(t + t) () m ü f. () c u k u t + t u Taylor t 3 u(t + t) = u(t) + t! u(t) + ( t)! = u(t) + t u(

. (.8.). t + t m ü(t + t) + c u(t + t) + k u(t + t) = f(t + t) () m ü f. () c u k u t + t u Taylor t 3 u(t + t) = u(t) + t! u(t) + ( t)! = u(t) + t u( 3 8. (.8.)............................................................................................3.............................................4 Nermark β..........................................

More information

45 VBA Fortran, Pascal, C Windows OS Excel VBA Visual Basic Excel VBA VBA Visual Basic For Application Microsoft Office Office Excel VBA VBA Excel Acc

45 VBA Fortran, Pascal, C Windows OS Excel VBA Visual Basic Excel VBA VBA Visual Basic For Application Microsoft Office Office Excel VBA VBA Excel Acc \n Title 文 系 学 生 のための VBA プログラミング 教 育 についての 考 察 Author(s) 五 月 女, 仁 子 ; Soutome, Hiroko Citation 商 経 論 叢, 46(1): 45-60 Date 2010-10-31 Type Departmental Bulletin Paper Rights publisher KANAGAWA University

More information

<4D6963726F736F667420576F7264202D208DEC90AC837D836A83858341838B81698F4390B394C5816A2E646F63>

<4D6963726F736F667420576F7264202D208DEC90AC837D836A83858341838B81698F4390B394C5816A2E646F63> + = 付 録 Ⅰ マクロのフローチャート 開 始 キーワード 数 と 文 章 数 をカウントする Yes 全 ての 文 章 番 号 (1 0) を 照 合 したか No 全 ての 文 章 番 号 (data) を 照 合 したか Yes No 文 章 番 号 (1 0) が 文 章 番 号 (data) と 等 しいか Yes No 値 を 一 行 全 て 0にする 値 を 一

More information

橡WINAPLI.PDF

橡WINAPLI.PDF Windows Visual Basic 2.0 8 7 29 8 2 Windows 1. Windows 1 1.1. Windows 1 1.2. 1 2. Visual Basic 2 2.1. VisualBasic 2 2.2. Visual Basic 2 2.2.1. 2 2.2.2. 2 2.2.3. 2 2.2.4. 2 2.2.5. 2 2.3. Visual Basic 3

More information

Excel ではじめる数値解析 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 初版 1 刷発行時のものです.

Excel ではじめる数値解析 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます.   このサンプルページの内容は, 初版 1 刷発行時のものです. Excel ではじめる数値解析 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. http://www.morikita.co.jp/books/mid/009631 このサンプルページの内容は, 初版 1 刷発行時のものです. Excel URL http://www.morikita.co.jp/books/mid/009631 i Microsoft Windows

More information

(Basic of Proability Theory). (Probability Spacees ad Radom Variables , (Expectatios, Meas) (Weak Law

(Basic of Proability Theory). (Probability Spacees ad Radom Variables , (Expectatios, Meas) (Weak Law I (Radom Walks ad Percolatios) 3 4 7 ( -2 ) (Preface),.,,,...,,.,,,,.,.,,.,,. (,.) (Basic of Proability Theory). (Probability Spacees ad Radom Variables...............2, (Expectatios, Meas).............................

More information

¥¢¥ë¥´¥ê¥º¥à¥¤¥ó¥È¥í¥À¥¯¥·¥ç¥ó ÎØ¹Ö #1

¥¢¥ë¥´¥ê¥º¥à¥¤¥ó¥È¥í¥À¥¯¥·¥ç¥ó ÎØ¹Ö #1 #1 id:motemen August 27, 2008 id:motemen 1-3 1-5 6-9 10-14 1 2 : n < a 1, a 2,..., a n > a 1 a 2 a n < a 1, a 2,..., a n > : Google: insertion sort site:youtube.com 1 : procedure Insertion-Sort(A) for

More information

Microsoft Word 練習問題の解答.doc

Microsoft Word 練習問題の解答.doc 演習問題解答 練習 1.1 Label1.Text = Val(Label1.Text) + 2 練習 1.2 コントロールの追加 Private Sub Button2_Click( 省略 ) Handles Button2.Click Label1.Text = Val(Label1.Text) - 2 練習 2.1 TextBox3.Text = Val(TextBox1.Text) * Val(TextBox2.Text)

More information

MQTT V3.1 プロトコル仕様

MQTT V3.1 プロトコル仕様 1999 d digit = X MOD 128 X = X DIV 128 // if there are mre digits t encde, set the tp bit f this digit if ( X > 0 ) digit = digit OR 0x80 endif 'utput' digit while ( X> 0 ) multiplier = 1 value = 0

More information

ホームページ (URL) を開く 閉じる 益永八尋 VBA からホームページを開いたり 閉じたりします ホームページを開くはシート名 HP_Open で操作し ホームページを閉じるはシート名 "HP_Close" で操作します ホームページを開く方法はいくつかありますがここでは 1 例のみを表示します なお これは Web から入手したサンプルプログラムから使い勝手が良いように修正 追加したものです

More information

2 X Y Y X θ 1,θ 2,... Y = f (X,θ 1,θ 2,...) θ k III 8 ( ) 1 / 39

2 X Y Y X θ 1,θ 2,... Y = f (X,θ 1,θ 2,...) θ k III 8 ( ) 1 / 39 III 8 (3) VBA, R / III 8 (2013 11 26 ) / 39 2 X Y Y X θ 1,θ 2,... Y = f (X,θ 1,θ 2,...) θ k III 8 (2013 11 26 ) 1 / 39 Y X 1, X 2,..., X n Y = f (X 1, X 2,..., X n,θ 1,θ 2,...) (y k, x k,1, x k,2,...)

More information

MIFES Ver.7.0 マクロマニュアル

MIFES Ver.7.0 マクロマニュアル iv v vi 2 3 4 5 6 * * * 7 8 @6=@str3[@7++]+A insstr(mifes) :sub1 move(@@str3) :if then / goto : / gosub : if then if input(@str3,) == 0 then exit() goto if @ code == 0x0d0a @code == 0x000a goto :ret gosub

More information

D0090.PDF

D0090.PDF 400. 1 1 1 3 500g 180cm A A 0g 500g 500g 500g 0.2 0.3 cm 500g 1kg 12 2 4 2 1 2 1 500g 500g 500g 2 A FreeFall 2 VBEditor 1 1 Option Explicit Declare Sub Sleep Lib "kernel32" (ByVal dwmilliseconds As Long)

More information

p q p q p q p q p q p q p q p q p q x y p q t u r s p q p p q p q p q p p p q q p p p q P Q [] p, q P Q [] P Q P Q [ p q] P Q Q P [ q p] p q imply / m

p q p q p q p q p q p q p q p q p q x y p q t u r s p q p p q p q p q p p p q q p p p q P Q [] p, q P Q [] P Q P Q [ p q] P Q Q P [ q p] p q imply / m P P N p() N : p() N : p() N 3,4,5, L N : N : N p() N : p() N : p() N p() N p() p( ) N : p() k N : p(k) p( k ) k p(k) k k p( k ) k k k 5 k 5 N : p() p() p( ) p q p q p q p q p q p q p q p q p q x y p q

More information

Excel Excel Excel 20132 20 = 1048576 Excel 201316 100 III 7 (2014 11 18 ) 1

Excel Excel Excel 20132 20 = 1048576 Excel 201316 100 III 7 (2014 11 18 ) 1 III 7 VBA / III 7 (2014 11 18 ) Excel Excel Excel 20132 20 = 1048576 Excel 201316 100 III 7 (2014 11 18 ) 1 Excel VBA Excel Excel 2 20 Excel QR Excel R QR QR BLASLAPACK III 7 (2014 11 18 ) 2 VBA VBA (Visual

More information

Inaba Inaba 169

Inaba Inaba 169 05 Inaba Office System Unit 168 Inaba Inaba 169 05 Inaba 169 170 Inaba 05 170 Inaba Inaba 171 05 Inaba 171 CO2 CO2 CO2 CO2 1/3 CO2 172 Inaba 05 172 Inaba 05 Check P.190 Inaba 173 Inaba 173 05 H380 H H920

More information

OS Windows Mac OS Windows Mac OS Windows XP Mac OS X OS Windows 95 Mac OS

OS Windows Mac OS Windows Mac OS Windows XP Mac OS X OS Windows 95 Mac OS About use of the Chinese character which is not in a computer Reuse and sharing of data by the large-scale character set and the Macro program HUKUDA Sinobu 1 125000 800 JIS 2 2000 3 1 488 545 2 JIS X

More information

Microsoft PowerPoint - Visualプログラミング

Microsoft PowerPoint - Visualプログラミング 流れの制御構造 多方向分岐 プログラムの制御構造は下記の 6 つ (1) 連接 ( 連なり ) (2) 所定回数反復 ( 一定回数の繰り返し ) (3) 判断 ( 分かれ ) (4) 多方向分岐 (5) 前判定反復 (6) 後判定反復 上記以外は使ってはいけない. 141 if 文による多方向に分岐する処理 (1) Sub elseif2() Dim a As Integer a = Range("A1").Value

More information

RR-US470 (RQCA1588).indd

RR-US470 (RQCA1588).indd RR-US470 Panasonic Corporation 2006 2 3 4 http://www.sense.panasonic.co.jp/ 1 2 3 ( ) ZOOM 5 6 7 8 9 10 4 2 1 3 4 2 3 1 3 11 12 1 4 2 5 3 1 2 13 14 q φ φ 1 2 3 4 3 1 2 3 4 2 3 15 16 1 2 3 [/]p/o 17 1 2

More information

untitled

untitled Visual Basic.NET 1 ... P.3 Visual Studio.NET... P.4 2-1 Visual Studio.NET... P.4 2-2... P.5 2-3... P.6 2-4 VS.NET(VB.NET)... P.9 2-5.NET... P.9 2-6 MSDN... P.11 Visual Basic.NET... P.12 3-1 Visual Basic.NET...

More information

sinfI2005_VBA.doc

sinfI2005_VBA.doc sinfi2005_vba.doc MS-ExcelVBA 基礎 (Visual Basic for Application). 主な仕様一覧 () データ型 主なもの 型 型名 型宣言文字 長さ 内容 整数型 Integer % 2 バイト -32,768 32,767 長整数型 Long & 4 バイト -2,47,483,648 2,47,483,647 単精度浮動小数点数 Single 型!

More information

PBASIC 2.5 PBASIC 2.5 $PBASIC directive PIN type New DEBUG control characters DEBUGIN Line continuation for comma-delimited lists IF THEN ELSE * SELEC

PBASIC 2.5 PBASIC 2.5 $PBASIC directive PIN type New DEBUG control characters DEBUGIN Line continuation for comma-delimited lists IF THEN ELSE * SELEC PBASIC 2.5 PBASIC 2.5 BASIC Stamp Editor / Development System Version 2.0 Beta Release 2 2.0 PBASIC BASIC StampR PBASIC PBASIC PBASIC 2.5 Parallax, Inc. PBASIC 2.5 PBASIC 2.5 support@microbot-ed.com 1

More information

JAPLA /12/07 gl2 1 1 J Java C C++ J APL J J J J J J 5.01a for Windows 2 gl2 J gl2 isigraph isigraph isigraph gl2 gl2 J Help Mapping Mode gl2

JAPLA /12/07 gl2 1 1 J Java C C++ J APL J J J J J J 5.01a for Windows 2 gl2 J gl2 isigraph isigraph isigraph gl2 gl2 J Help Mapping Mode gl2 gl2 1 1 J Java C C++ J APL J J J J J J 5.01a for Windows 2 gl2 J gl2 isigraph isigraph isigraph gl2 gl2 J Help Mapping Mode gl2 isigraph Event isigraph 2.1 Mapping Mode Mapping Mode J 5.01a for Windows

More information

Advantage CA-Easytrieve Plus

Advantage CA-Easytrieve Plus CA-EasytrievePlus CA-Easytrieve PlusP 3-7 P 8-30 CA-Easytrieve Plus CA-Easytrieve Plus CA-Easytrieve Plus CA-Easytrieve Plus COBOL,PL/I CA-Easytrieve Plus CA-Easytrieve Plus a. () a. b. (COBOL PL/I) ()

More information

/

/ / 1 UNIX AWK( ) 1.1 AWK AWK AWK A.V.Aho P.J.Weinberger B.W.Kernighan 3 UNIX AWK GNU AWK 1 1.2 1 mkdir ~/data data ( ) cd data 1 98 MS DOS FD 1 2 AWK 2.1 AWK 1 2 1 byte.data 1 byte.data 900 0 750 11 810

More information

23 200802957 1 1 5 2 6 2.1 Boid........................................ 6 2.1.1 Separation........................ 7 2.1.2 Alingment........................... 7 2.1.3 Cohesion............................

More information

NEXT 1 2 3 1 2 3 4 5 6 1 2 1 2 1 1 1 1 2 3 1 2 3 4 5 6 1 2 3 4 1 2 3 4 5 6 1 2 3 4 5 1 2 3 1 1 2 1 2 3 4 5 6 7 1 2 3 1 2 1 2 3 4 5 6 7 8 9 1 1 1 2 1 2 1 2 3 4 5 6 1 2

More information

XMPによる並列化実装2

XMPによる並列化実装2 2 3 C Fortran Exercise 1 Exercise 2 Serial init.c init.f90 XMP xmp_init.c xmp_init.f90 Serial laplace.c laplace.f90 XMP xmp_laplace.c xmp_laplace.f90 #include int a[10]; program init integer

More information

橡Taro9-生徒の活動.PDF

橡Taro9-生徒の活動.PDF 3 1 4 1 20 30 2 2 3-1- 1 2-2- -3- 18 1200 1 4-4- -5- 15 5 25 5-6- 1 4 2 1 10 20 2 3-7- 1 2 3 150 431 338-8- 2 3 100 4 5 6 7 1-9- 1291-10 - -11 - 10 1 35 2 3 1866 68 4 1871 1873 5 6-12 - 1 2 3 4 1 4-13

More information

SO(3) 7 = = 1 ( r ) + 1 r r r r ( l ) (5.17) l = 1 ( sin θ ) + sin θ θ θ ϕ (5.18) χ(r)ψ(θ, ϕ) l ψ = αψ (5.19) l 1 = i(sin ϕ θ l = i( cos ϕ θ l 3 = i ϕ

SO(3) 7 = = 1 ( r ) + 1 r r r r ( l ) (5.17) l = 1 ( sin θ ) + sin θ θ θ ϕ (5.18) χ(r)ψ(θ, ϕ) l ψ = αψ (5.19) l 1 = i(sin ϕ θ l = i( cos ϕ θ l 3 = i ϕ SO(3) 71 5.7 5.7.1 1 ħ L k l k l k = iϵ kij x i j (5.117) l k SO(3) l z l ± = l 1 ± il = i(y z z y ) ± (z x x z ) = ( x iy) z ± z( x ± i y ) = X ± z ± z (5.118) l z = i(x y y x ) = 1 [(x + iy)( x i y )

More information

With sqlda sqlda に SelectCommand を追加.SelectCommand = New MySqlCommand() With.SelectCommand.CommandType = CommandType.Text.CommandText = "select * from

With sqlda sqlda に SelectCommand を追加.SelectCommand = New MySqlCommand() With.SelectCommand.CommandType = CommandType.Text.CommandText = select * from Imports MySql.Data.MySqlClient Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Label3.Text = "MySQL のデータ表示と更新のテストを行います メニューから行いたい処理を選択して実行してください

More information

PowerPoint Presentation

PowerPoint Presentation UML 2004 7 9 10 ... OOP UML 10 Copyright 2004 Akira HIRASAWA all rights reserved. 2 1. 2. 3. 4. UML 5. Copyright 2004 Akira HIRASAWA all rights reserved. 3 1..... Copyright 2004 Akira HIRASAWA all rights

More information