|
ゴンとも |
|
十進basic で
for a=1 to 9 for b=0 to 9 if b=a then goto 30 for c=0 to 9 if c=a or c=b then goto 20 for d=1 to 9 if d=a or d=b or d=c then goto 10 if mod(1000*d+100*c+10*b+a,1000*a+100*b+10*c+d)=0 then print 1000*a+100*b+10*c+d 10 next d 20 next c 30 next b next a end f9押して 1089 ・・・・・・(答え) 2178 あと最初は1001を送りました。 |
|
豊川市
5月22日(木) 0:10:44
MAIL:fttnm528@bb.ne.jp 41805 |