Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
Q&A
.
.
input[]={'1','2','3','4'}
tu[]={'0''4''3''2''1'}
input1: 789456
input2: 654
i=1
tu1[1]=6,tu2[1]=4
mul=24, re[1]=0
...
re[1]=0+24=24
re[2]=0+20=20
...
re[2]=20+2=22, re[1]=4
...
input1: 789456
input2: 654
i=1
tu1[1]=6,tu2[1]=4
sum=10, re[1]=0
re[1]=0+0=0 re[2]=0+1=0
i=2
tu1[2]=5 tu2[2]=5
sum=10,re[2]=1
re[2]=1+0=1
re[3]=0+1=1
.
.
.
input1: 789456
input2: 664
tu1[0]=6,tu2[0]=3
i=1
sub=2, re[1]=0
re[1]=0+2=2
i=2
sub=-1,re[2]=0
re[2]=0+10-1=9
re[3]=0-1=-1
...
input1=987654
input2=145
d=3,k=3
q=987654
r=145000
q=987654
r=145000
re=q-r,p[k+1]++
q<<re, re[]={0}
...
k--
r=14500
re=q-r,p[k+1]++
...
몫:p 나머지:q