2776 암기왕 문제풀이 #include #include using namespace std; int arr[1000001]; void fast_io(void) { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } int bn(int s, int len) { int l = 0, r = len - 1, m; while (l s) r = m - 1; else return 1; } return 0; } int main(void) { fast_io(); int t; cin >> t; while (t--) { int n1, n2; cin >> n1; for (int i = 0; i > arr[i]; cin >> n2..