/* -*- coding: utf-8 -*- * * 2547.cc: No.2547 Did you enjoy Chofu Festival? - yukicoder */ #include #include using namespace std; /* constant */ const int MAX_N = 100; /* typedef */ /* global variables */ int as[MAX_N], bs[MAX_N]; /* subroutines */ /* main */ int main() { int n; scanf("%d", &n); for (int i = 0; i < n; i++) scanf("%d", as + i); for (int i = 0; i < n; i++) scanf("%d", bs + i); int cnt = 0; for (int i = 0; i < n; i++) if (as[i] <= bs[i]) cnt++; printf("%d\n", cnt); return 0; }