传统题 1000ms 256MiB

[2023 OUCC Round 1] Counting Letters

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

A program is required to count how many vowels and consonants are used in a given sentence.

Task:

Write a program that counts the total number of vowels and consonants used in a sentence. Output the number of vowels then the number of consonants, separated by a space.

Constraints:

[Note: you do not need to check constraints in your code for this competition - they are just for information about the range of test data values.]

  • Sentences will only contain upper and lowercase letters, spaces and a full-stop.
Input format:
  • A string.
Output format:
  • Two integers separated by a space.
Example:
I love programming.
6 10

2025 OUCC

未参加
状态
已结束
规则
IOI
题目
17
开始于
2025-5-4 17:00
结束于
2025-5-4 19:30
持续时间
2.5 小时
主持人
参赛人数
2