#include using namespace std; int main(){ int N,cur=0; string ans="Yes"; vector> block(N,vector(2)); for(int i=0;i>block[i][j]; } } sort(block.begin(),block.end(),[](vector a,vector b){ return a[0]+a[1] v:block){ if(v[0]