这道题不是很难,二分答案+判定即可
注意在一套牌中Joker只能用一次
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
![](https://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif)
1 var a:array[0..51] of longint; 2 mid,l,r,n,m,i,ans:longint; 3 4 function check(x:longint):boolean; 5 var i,t:longint; 6 begin 7 t:=m; 8 if t>x then t:=x; //判定的关键 9 for i:=1 to n do10 if a[i]
本文共 315 字,大约阅读时间需要 1 分钟。
这道题不是很难,二分答案+判定即可
注意在一套牌中Joker只能用一次
1 var a:array[0..51] of longint; 2 mid,l,r,n,m,i,ans:longint; 3 4 function check(x:longint):boolean; 5 var i,t:longint; 6 begin 7 t:=m; 8 if t>x then t:=x; //判定的关键 9 for i:=1 to n do10 if a[i]
转载于:https://www.cnblogs.com/phile/p/4473114.html