| 1 | #include<bits/stdc++.h> |
| 2 | using namespace std; |
| 3 | int linear(int arr[], int key, int n){ |
| 4 | for (int i = 0; i < n; ++i) |
| 5 | { |
| 6 | if(arr[i]==key){ |
| 7 | return i; |
| 8 | } |
| 9 | } |
| 10 | return -1; |
| 11 | } |
| 12 | void initial(){ |
| 13 | #ifndef ONLINE_JUDGE |
| 14 | freopen("input.txt", "r", stdin); |