可是里面的数算出来是6.5的时候,它竟然打出结果是6!!!害我白交了两遍!!把那个改成round(length(s)/2+0.05)才过了……
后来我一怒之下改成了
((odd(length(s))) and (m>(round(length(s))/2)+1)) or ((not (odd(length(s)))) and (m>length(s)/2))
……
换种思路,简化程序
这样不就行了么?
快速帮助 | 运行状态 | 反馈举报 | 关于我们 | 免责声明 | 浙ICP备11060257号 Processed in 0.0037 Second(s) Copyright (C) RQNOJ 2007-2019. All Rights Reserved.