Count Takahashi
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
给你 N 个字符串。 第 i 个字符串 要么是 Takahashi 要么是 Aoki。 有多少个 i 满足 等于 Takahashi?
输入格式
输入从标准输入给出,格式如下: N S_1 S_2 S_N
输出格式
打印满足 S_i 等于 Takahashi 的 i 的计数,作为单行中的整数。
3
Aoki
Takahashi
Takahashi
2
S_2 和 S_3 等于 Takahashi,而 S_1 不是。 因此,打印 2。
2
Aoki
Aoki
0
有可能没有 S_i 等于 Takahashi。
约束条件
N 是整数。 每个 是 Takahashi 或 Aoki。
考前热身赛
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 10
- Start at
- 2024-11-29 13:00
- End at
- 2024-11-29 18:00
- Duration
- 5 hour(s)
- Host
- Partic.
- 7