#include <stdio.h>
int tansaku(int a[], int x) {
int i=0, idx=-1;
for(i=0; a[i]!=-1; i++) {
if(a[i]==x) {
idx = i; break;
}
}
return idx;
}
int main(void) {
int a[100], i, n, x, ret;
for(i
=0; i
<n
; i
++) scanf("%d", &a
[i
]); ret = tansaku(a,x);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgdGFuc2FrdShpbnQgYVtdLCBpbnQgeCkgewoJaW50IGk9MCwgaWR4PS0xOwoJZm9yKGk9MDsgYVtpXSE9LTE7IGkrKykgewoJCWlmKGFbaV09PXgpIHsKCQkJaWR4ID0gaTsgYnJlYWs7CgkJfQoJfQoJcmV0dXJuIGlkeDsKfQoKaW50IG1haW4odm9pZCkgewoJaW50IGFbMTAwXSwgaSwgbiwgeCwgcmV0OwoJc2NhbmYoIiVkICVkIiwgJm4sICZ4KTsKCWZvcihpPTA7IGk8bjsgaSsrKSBzY2FuZigiJWQiLCAmYVtpXSk7CglyZXQgPSB0YW5zYWt1KGEseCk7CglwcmludGYoInjvvJphWyVkXVxuIiwgcmV0KTsKCXJldHVybiAwOwp9Cg==