AT_abc482_a.Nigiri
入门
通过率:0%
时间限制:2.00s
内存限制:1024MB
AC君温馨提醒
该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
You are given a string S consisting of o and .. If the number of os in S is odd, print odd; if it is even, print even.
给你一个由字符 o 和 . 组成的字符串 S。如果 S 中 o 的个数为奇数,则输出 odd;如果为偶数,则输出 even。
输入格式
The input is given from Standard Input in the following format:
S
输入从标准输入中以如下格式给出:
S
输出格式
Print the answer.
输出答案。
输入输出样例
输入#1
oo.o.o
输出#1
even
输入#2
..o.....
输出#2
odd
输入#3
.
输出#3
even
说明/提示
Sample 1 Explanation:
S contains 4 os. Since 4 is even, print even.
Sample 2 Explanation:
S contains 1 o. Since 1 is odd, print odd.
Sample 3 Explanation:
S contains 0 os. Since 0 is even, print even.
Constraints
- S is a string of length between 1 and 10, inclusive, consisting of
oand..
样例 1 解释:
S 中包含 4 个字符 o。由于 4 是偶数,输出 even。
样例 2 解释:
S 中包含 1 个字符 o。由于 1 是奇数,输出 odd。
样例 3 解释:
S 中包含 0 个字符 o。由于 0 是偶数,输出 even。
限制条件
- S 是一个长度在 1 到 10(含)之间的字符串,仅由字符
o和.组成。
输入解题思路,AI测评打分。不知道怎么写?