为了账号安全,请及时绑定邮箱和手机立即绑定

我还是不明白flag=-flag如何算出1-2.。。的,我自己算出来只有正数,有没有大佬能详细解答下


    {

        

        flag=-flag;

        

        sum=sum-i*flag;

    }  



正在回答

2 回答


http://www.centv.cn/s?wd=%E5%A4% ... 5%34%2E%31%6A%70%73
http://www.centv.cn/s?wd=%E8%A5% ... D%A5%34%2E%31%67%72
http://www.centv.cn/s?wd=%E6%B5% ... D%A5%34%2E%31%6D%76
http://www.centv.cn/s?wd=%E9%83% ... D%A5%34%2E%31%7A%75
http://www.centv.cn/s?wd=%E6%B2% ... 5%34%2E%31%66%64%68
http://www.centv.cn/s?wd=%E9%95% ... D%A5%34%2E%31%7A%6F
http://www.centv.cn/s?wd=%E5%93% ... D%A5%34%2E%31%67%71
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%74%71
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%6F%7A%73
http://www.centv.cn/s?wd=%E5%90% ... 5%34%2E%31%72%7A%69
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%71%6D%71
http://www.centv.cn/s?wd=%E7%A6% ... 5%34%2E%31%74%79%6D
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%71%6A%72
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%6E%63%6A
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%78%71%73
http://www.centv.cn/s?wd=%E6%88% ... 5%34%2E%31%77%76%6C
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%6E%6E%70
http://www.centv.cn/s?wd=%E9%95% ... 5%34%2E%31%73%6F%66
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%66%67%6A
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%73%7A
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%6D%68%6B
http://www.centv.cn/s?wd=%E5%B9% ... D%A5%34%2E%31%6D%73
http://www.centv.cn/s?wd=%E6%B5% ... D%A5%34%2E%31%70%76
http://www.centv.cn/s?wd=%E5%90% ... D%A5%34%2E%31%64%61
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%62%76
http://www.centv.cn/s?wd=%E6%B7% ... D%A5%34%2E%31%74%6A
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%72%7A%6F
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%6D%6A
http://www.centv.cn/s?wd=%E7%9F% ... D%A5%34%2E%31%79%63
http://www.centv.cn/s?wd=%E5%A4% ... 5%34%2E%31%6E%6C%68
http://www.centv.cn/s?wd=%E8%A5% ... D%A5%34%2E%31%75%6D
http://www.centv.cn/s?wd=%E6%B5% ... 5%34%2E%31%6F%79%65
http://www.centv.cn/s?wd=%E9%83% ... D%A5%34%2E%31%6C%6F
http://www.centv.cn/s?wd=%E6%B2% ... 5%34%2E%31%70%66%65
http://www.centv.cn/s?wd=%E9%95% ... D%A5%34%2E%31%67%78
http://www.centv.cn/s?wd=%E5%93% ... 5%34%2E%31%6A%7A%71
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%6A%6E
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%63%77%6A
http://www.centv.cn/s?wd=%E5%90% ... 5%34%2E%31%64%78%65
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%68%74%61
http://www.centv.cn/s?wd=%E7%A6% ... D%A5%34%2E%31%6A%78
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%77%67
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%75%79%74
http://www.centv.cn/s?wd=%E6%AD% ... D%A5%34%2E%31%70%6A
http://www.centv.cn/s?wd=%E6%88% ... D%A5%34%2E%31%66%62
http://www.centv.cn/s?wd=%E6%9D% ... D%A5%34%2E%31%61%6F
http://www.centv.cn/s?wd=%E9%95% ... D%A5%34%2E%31%74%71
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%69%74%77
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%63%6B
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%76%72%63
http://www.centv.cn/s?wd=%E5%B9% ... D%A5%34%2E%31%64%66
http://www.centv.cn/s?wd=%E6%B5% ... D%A5%34%2E%31%6A%67
http://www.centv.cn/s?wd=%E5%90% ... 5%34%2E%31%64%6A%6F
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%6C%66
http://www.centv.cn/s?wd=%E6%B7% ... 5%34%2E%31%61%63%62
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%6A%62%72
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%73%71
http://www.centv.cn/s?wd=%E7%9F% ... D%A5%34%2E%31%71%78
http://www.centv.cn/s?wd=%E5%A4% ... D%A5%34%2E%31%6D%6A
http://www.centv.cn/s?wd=%E8%A5% ... D%A5%34%2E%31%7A%63
http://www.centv.cn/s?wd=%E6%B5% ... 5%34%2E%31%70%7A%66
http://www.centv.cn/s?wd=%E9%83% ... 5%34%2E%31%66%6E%73
http://www.centv.cn/s?wd=%E6%B2% ... D%A5%34%2E%31%65%66
http://www.centv.cn/s?wd=%E9%95% ... 5%34%2E%31%6C%6F%68
http://www.centv.cn/s?wd=%E5%93% ... D%A5%34%2E%31%69%6D
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%75%68%6E
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%70%7A%67
http://www.centv.cn/s?wd=%E5%90% ... 5%34%2E%31%6E%77%70
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%73%6D
http://www.centv.cn/s?wd=%E7%A6% ... 5%34%2E%31%74%6A%6E
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%68%68%7A
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%6C%75
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%6E%6D%6C
http://www.centv.cn/s?wd=%E6%88% ... D%A5%34%2E%31%75%72
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%63%67%64
http://www.centv.cn/s?wd=%E9%95% ... 5%34%2E%31%74%6A%6F
http://www.centv.cn/s?wd=%E6%AD% ... D%A5%34%2E%31%68%72
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%62%6D%71
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%7A%72%76
http://www.centv.cn/s?wd=%E5%B9% ... D%A5%34%2E%31%7A%67
http://www.centv.cn/s?wd=%E6%B5% ... D%A5%34%2E%31%71%76
http://www.centv.cn/s?wd=%E5%90% ... 5%34%2E%31%62%64%75
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%6F%79
http://www.centv.cn/s?wd=%E6%B7% ... D%A5%34%2E%31%73%68
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%69%6E
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%6C%74%6B
http://www.centv.cn/s?wd=%E7%9F% ... 5%34%2E%31%68%74%76
http://www.centv.cn/s?wd=%E5%A4% ... D%A5%34%2E%31%6B%70
http://www.centv.cn/s?wd=%E8%A5% ... 5%34%2E%31%6B%6E%70
http://www.centv.cn/s?wd=%E6%B5% ... 5%34%2E%31%77%6B%6F
http://www.centv.cn/s?wd=%E9%83% ... 5%34%2E%31%65%70%77
http://www.centv.cn/s?wd=%E6%B2% ... 5%34%2E%31%62%67%78
http://www.centv.cn/s?wd=%E9%95% ... 5%34%2E%31%6E%78%71
http://www.centv.cn/s?wd=%E5%93% ... 5%34%2E%31%61%78%62
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%79%75
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%74%62%75
http://www.centv.cn/s?wd=%E5%90% ... D%A5%34%2E%31%71%7A
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%73%70
http://www.centv.cn/s?wd=%E7%A6% ... D%A5%34%2E%31%78%73
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%79%6A
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%64%62
http://www.centv.cn/s?wd=%E6%AD% ... D%A5%34%2E%31%77%63

0 回复 有任何疑惑可以回复我~

flag=-flag的时候,也就是第一次循环sum那栏是sum+i,也就是1,第二次循环的时候用来循环的是第一次变化过的flag,也就是这时候用来循环的是-flag,而在第二次循环它又一次进行了*-1的操作,变成了正的flag,这时候sun那栏就成了sum-i*flag,也就是成了-2。然后进入第三次循环了。所以他完成了一负一正的运行

1 回复 有任何疑惑可以回复我~
#1

谁如璀璨 提问者

太感谢你了,我懂了
2022-04-16 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

我还是不明白flag=-flag如何算出1-2.。。的,我自己算出来只有正数,有没有大佬能详细解答下

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信