我尝试简化条件:
for ( int t=0, size=fo.getPrintViewsPerFile().size();
t<size && t<countPerFile;
t++)
{
// ...
}
, 更确切地说:
t<s && t<c
您需要比较两次,然后从中计算布尔值。有没有更简单的方法来做到这一点?如果不是,你怎么证明?我可以在某种程度上简化它,证明树。
[添加]
我试图通过逻辑直接解决问题。看看选择最小值的含义会很有趣。关联:
http://www.umsu.de/logik/trees/?f= (\exists%20s%20\exists%20c%20\forall%20t%20%20(Pts%20\land%20Ptc))\leftrightarrow \neg(\foralls\forallc\existst(\neg(Pts)\lor\neg(Ptc)))