AT_abc482_a.Nigiri

入门

通过率:0%

时间限制:2.00s

内存限制:1024MB

AC君温馨提醒

该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

You are given a string SS consisting of o and .. If the number of os in SS is odd, print odd; if it is even, print even.

给你一个由字符 o 和 . 组成的字符串 SS。如果 SS 中 o 的个数为奇数,则输出 odd;如果为偶数,则输出 even。

输入格式

The input is given from Standard Input in the following format:

SS

输入从标准输入中以如下格式给出:

SS

输出格式

Print the answer.

输出答案。

输入输出样例

  • 输入#1

    oo.o.o

    输出#1

    even
  • 输入#2

    ..o.....

    输出#2

    odd
  • 输入#3

    .

    输出#3

    even

说明/提示

Sample 1 Explanation:
SS contains 44 os. Since 44 is even, print even.

Sample 2 Explanation:
SS contains 11 o. Since 11 is odd, print odd.

Sample 3 Explanation:
SS contains 00 os. Since 00 is even, print even.

Constraints

  • SS is a string of length between 11 and 1010, inclusive, consisting of o and ..

样例 1 解释:
SS 中包含 44 个字符 o。由于 44 是偶数,输出 even。

样例 2 解释:
SS 中包含 11 个字符 o。由于 11 是奇数,输出 odd。

样例 3 解释:
SS 中包含 00 个字符 o。由于 00 是偶数,输出 even。

限制条件

  • SS 是一个长度在 11 到 1010(含)之间的字符串,仅由字符 o 和 . 组成。

输入解题思路,AI测评打分。不知道怎么写?

首页