|
|
вернуться в форумwht is wrong?? visual C #include<stdio.h> int main() { int n, i, j; long int m; long long int pro[15000], stu[15000]; int count = 0; scanf("%d", &n); for (i = 1; i <= n; i++) { scanf("%lld\n", &pro[i]); } scanf("%ld\n", &m); for (i = 1; i <= m; i++) { scanf("%lld\n", &stu[i]); for (j = 1; j <= n; j++) { if (stu[i] == pro[j]) count++; } } printf("%d", count); return 0; } |
|
|