Advertisement

从数组中随机选择若干位数使其总和等于固定值sum从n个数字中选择多个进行相加运算结果等于m

阅读量:

直接代码

复制代码
 <!DOCTYPE html>

    
 <html lang="en">
    
 <head>
    
     <meta charset="UTF-8">
    
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
     <meta http-equiv="X-UA-Compatible" content="ie=edge">
    
     <title>Document</title>
    
     <style>
    
     input{
    
         margin:20px;
    
         height: 35px;
    
         display: inline-block;
    
         width: 400px;
    
         font-size: 20px;
    
     }
    
     button{
    
         height: 35px;
    
         display: inline-block;
    
         width: 100px;
    
     }

全部评论 (0)

还没有任何评论哟~