문제https://www.acmicpc.net/problem/7795 해설이분탐색 문제이분탐색을 구현하는것보다 lower_bound or upper_bound를 사용하는것이 빠름코드12345678910111213141516171819202122232425262728293031323334353637383940#includeiostream>#includealgorithm>#includevector> using namespace std;typedef long long ll; int n,m,num;ll ret, t; int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL); cin >> t; while(t){ t--; ..