资源描述
求和为99的两个两位数四个数字要不一样且属1-8这几个数字源程序:q=;Fori=12,i99/2,i+,b=CharactersToStri ngi*100+99-i;lfLe ngthUnion b=4,lfUn io nb? 1,2,3,4,5,6,7,8=Union b,q=Appe ndq,i,99-iLen gthqq结果:有 24 组,12, 87, 13, 86, 14, 85, 15, 84, 16, 83, 17, 82, 21, 78, 23, 76, 24, 75, 25, 74, 26, 73, 28, 71, 31,68, 32, 67, 34, 65, 35, 64, 37, 62, 38, 61, 41,58, 42, 57, 43, 56, 46, 53, 47, 52, 48, 51源程序及结果截图:rvr 1 = L2t i 99/2 f 1 ii - aiaracters 1100 4*9;If LmffthLUniorlto = 4* IiUnionlb 口1,U 护 * 4,邛* fi11, 71=Urijcntb *L 庆崖 Ln*L:异垦q = Apperidq, r 99 - H J )Lentli qj2 412,67,13rBfif3515r 申,15,03 | ,17r 33j21, 73 f Z3r“砂,73 f2Br 71,(31,弓日Jr3Er 671,3轧 65 r nsr62,38.SB 42. E7,43,56)r say.IE S3, 4Brsi
展开阅读全文