#include using namespace std; typedef long long ll; #define rep(i,n) for(i=0;i>x >>lock; if(x==10){ found=true; break; } else{ ct[j]=x; } } if(found)break; else{ int m=0; int r=-1; rep(j,10){ if(m>x >>lock; if(x==10){ found=true; break; } } return 0; }