我猜你已经听说家里藏了两只小精灵了,我不会告诉你,你现在的密室里,隐藏着6个数字,这6个数字,按一定顺序排列,输入下面的js程序中,会得到终极答案的提示,祝你好运!
js程序:
<script type="text/javascript"> //假设你得到的六个数字排序后依次对应:a,b,c,d,e,f var keys=["墙","桌","地","书","镜","门","杯","水","风","壶","子","头","你","我","爱","情"]; var i=a*4+b+c*2-f; var j=d+e*e+f; var key=keys[i]+keys[j]; alert("密码:"+key); </script>
现在我会给出第一个提示,请问这段程序的输出是:
<script type="text/javascript"> var lian=[1,5,1,0,6,2,1,7,1,9,0]; var fu=[1,8,7,2,1,1,2,2,7,1,0]; var sum=[]; for(var i=0; i<lian.length; i++) { if(i%2==0) { sum[i]=(lian[i]+fu[i]); } else { sum[i]=(lian[i]-fu[i]); } } alert(sum[5]); </script>
时间: 2024-10-12 17:12:57