摘要:
先对区间左边界排序,在对右边界左二分查找 1 // you can use includes, for example: 2 #include 3 4 // you can write to stdout for debugging purposes, e.g. 5 // cout other... 阅读全文
摘要:
判断数组中是否存在满足形成三角形的条件的三个数。判断连续相邻的三个数即可;可以证明当步相邻的时候存在的的话,那么就一定会有一组相邻的是满足的。 1 // you can use includes, for example: 2 #include 3 4 // you can write to s... 阅读全文