Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // VGTU ACM ICPC selection B
- #include <iostream>
- using namespace std;
- int main()
- {
- int t, n, q[13][13], z=1;
- cin >> t;
- for(int i=0;i<t;i++)
- {
- cin >> n;
- for(int y=1;y<n;y++)
- {
- cin >> q[n][y];
- }
- for(int d=1;d<n;d++)
- {
- if(z!=q[n][d]){cout<<z<<endl;break;}
- else if(d==n-1){cout<<z+1<<endl;}
- z++;
- }
- z=1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement