問題一覧 > 通常問題

No.2547 Did you enjoy Chofu Festival?

レベル : / AI推定難易度 : 101 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 152
作問者 : sepa38 / テスター : dyktr_06 InTheBloom Seed57_cash ryota2357
お気に入りにしたユーザー ProblemId : 10364 / 自分の提出
問題文最終更新日: 2023-11-25 12:01:12
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
MMA Contest 017 (順位表) の他の問題:

Problem Statement

In a certain year, $N$ people came to the Chofu Festival. The $i$-th person's expectation for the Chofu Festival was $A_i$, and their satisfaction was $B_i$. For each of the $N$ people, if their satisfaction is less than their expectation, they are disappointed; otherwise, they go home satisfied.

Output the number of people who were satisfied.

Input

$N$
$A_1 \ A_2 \ \cdots \ A_N$
$B_1 \ B_2 \ \cdots \ B_N$

Constraints

  • All inputs are integers.
  • $1 \leq N \leq 100$
  • $1 \leq A_i, B_i \leq 100$

Output

Output the result on $1$ line.

Sample

Sample 1
Input
5
1 4 5 9 2
3 10 7 6 1
Output
3

It seems that persons $1, 2, 3$ were satisfied.

Sample 2
Input
1
100
100
Output
1

Perhaps this is fine in its own way.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。