A Easy Game

比赛题目链接

Fat brother and Maze are playing a kind of special (hentai) game on a string S. Now they would like to count the length of this string. But as both Fat brother and Maze are programmers, they can recognize only two numbers 0 and 1. So instead of judging the length of this string, they decide to judge weather this number is even.

Input

The first line of the date is an integer T, which is the number of the text cases.

Then T cases follow, each case contains a line describe the string S in the treasure map. Not that S only contains lower case letters.

1 <= T <= 100, the length of the string is less than 10086

Output

For each case, output the case number first, and then output “Odd” if the length of S is odd, otherwise just output “Even”.

Sample Input

4
well
thisisthesimplest
problem
inthiscontest

Sample Output

Case 1: Even
Case 2: Odd
Case 3: Odd
Case 4: Odd
题目的大概意思是字符串中的字符个数如果是偶数输出"Even",是奇数输出“Odd”。
由于题目比较简单我就不写解析了。。。
代码如下:
#include<stdio.h>
#include<algorithm>
#include<string.h>
using namespace std;
int main()
{int t,n=1;scanf("%d",&t);while(t--){char a[10100];scanf("%s",a);printf("Case %d: ",n++);int len=strlen(a);if(len%2==1)printf("Odd\n");elseprintf("Even\n");}return 0;
}

A Easy Game(FZU 2146)相关推荐

  1. 翻译|《Word Power Made Easy》(xiii~xxiii)

    文章目录 翻译|<Word Power Made Easy>(xiii~xxiii) 短暂的间歇 1.测试你的语法 2.现代用法随笔 3.语法是如何变化的 4.如何避免成为纯粹主义者 5. ...

  2. 翻翻棋 (FZU - 2230)

    题目链接:C - 翻翻棋 来源: FZU - 2230 Problem Description 象棋翻翻棋(暗棋)中双方在4*8的格子中交战,有时候最后会只剩下帅和将.根据暗棋的规则,棋子只能上下左右 ...

  3. 用PyTorch创建一个图像分类器?So easy!(Part 2)

    在第一部分中,我们知道了为什么以及如何加载预先训练好的神经网络,我们可以用自己的分类器代替已有神经网络的分类器.那么,在这篇文章中,我们将学习如何训练分类器. 训练分类器 首先,我们需要为分类器提供待 ...

  4. 【快速幂】小明解密码 (jzoj 2146)

    小明解密码 题目大意 让你计算n^m的个位(有t组数据) 样例输入 2 3 4 4 5 样例输出 1 4 数据范围限制 对于30%的数据,1≤t≤20,1≤n,m≤8 对于100%的数据,1≤t≤10 ...

  5. 用PyTorch创建一个图像分类器?So easy!(Part 1)

    经过了几个月的学习和实践,我完成了优达学城网站上<Python Programming with Python Nanodegree>课程的学习,该课程的终极项目就是使用Pytorch为1 ...

  6. C1. Pokémon Army (easy version)(栈模拟)

    有 n 个数,从中选出任意 x (x 为随机数)个数但是不能打乱顺序,有 p 次操作,可以交换对应两个数的位置 现在要求你选出的这几个数中 能够构成  a1-a2+a3-a4--ax  值最大 输出最 ...

  7. 2018ACM-ICPC徐州赛区网络赛: D. Easy Math(Min_25筛)

    D. Easy Math Given a positive integers nn , Mobius function \mu(n)μ(n) is defined as follows: \displ ...

  8. 数学--数论-- HDU 2601 An easy problem(约束和)

    Problem Description When Teddy was a child , he was always thinking about some simple math problems ...

  9. 智乃的树旋转(easy version)(思维+暴力)

    题目链接 https://ac.nowcoder.com/acm/contest/23478/G 题面 思路 因为题目中保证了一定会存在操作数量为1的情况,那么我们仔细读题,注意这么一句话智乃最近学习 ...

  10. Bribe the Prisoners(Easy) 题解(区间dp)

    题目链接 占坑

最新文章

  1. 原生js循环展示dom_【前端面试】用一道题讲 js 的事件循环队列
  2. [bzoj1064][Noi2008]假面舞会
  3. flex和box、flexbox高度自适应常见坑
  4. 拉马车 的游戏 c语言编程,蓝桥杯 拉马车(模拟)
  5. C#实现网页加载后将页面截取成长图片 | Playwright版
  6. ASP.NET Core 网站发布到Linux服务器
  7. open函数中O_CLOEXEC标志的开关
  8. Java游戏触屏处理,非触屏java游戏转换为触屏游戏工具使用方法
  9. 【安卓开发】项目的目录结构分析
  10. Web Service 移除 xmlns
  11. 【免费下载】全网最全5G资料包(报告、白皮书、方案、政策等1300余份,持续更新)...
  12. 20200119:(leetcode)回文数(3种解法)
  13. ubuntu14.04LTS 安装后几个基本设置
  14. java电话本怎么做_Java写的电话号码本自动化生成器,程序片段
  15. 利用OpenCV实现对车流量的统计
  16. Linux shell脚本入门到实战详解(一)
  17. java 文件 上传 下载
  18. 用stitching_detailed拼接图片失败,原因分析(待补充)
  19. 你见过灰犀牛吗?也许它比黑天鹅还可怕
  20. 通过pyhton认识一等函数

热门文章

  1. 标杆企业华为背景——张蕾老师
  2. svm对未知数据的分类_SVM多分类之一对一与一对多
  3. 下载Bootstrap
  4. 新浪微博说说html,说说新浪微博
  5. Android App拥有system权限
  6. 《Java 核心技术 卷1》 笔记 第六章 接口和内部类(3) 接口回调与内部类
  7. ucint核心边缘分析_社会网络分析中核心边缘分析的简单教程
  8. C#做小工具的时候碰到的问题
  9. postsql密码修改
  10. Redhat Linux系列(Fedora,CentOS,Redhat enterprise)中一些常用软件