FZU-2146 Easy Game
来源:互联网 发布:马尔可夫矩阵的计算题 编辑:程序博客网 时间:2024/06/05 10:24
#include <iostream>#include <cstdio>#include <cstring>#include <string>using namespace std;int t, cas;string str;int main(){ cas = 0; scanf("%d", & t); while(t --) { cin >> str; int len = str.length(); if(len % 2 == 0) printf("Case %d: Even\n", ++cas); else printf("Case %d: Odd\n", ++cas); } return 0;}
题意:
输入字符串,判断字符串长度是奇数还是偶数。
题解:
水。
0 0
- FZU 2146 Easy Game
- FZU-2146 Easy Game
- FZU 2146 Easy Game
- FZU-Problem 2146 Easy Game
- FZU Problem 2146 Easy Game ( 数学啊)
- A Easy Game(FZU 2146)
- FZU Easy Game
- fzu 2146 Easy Game & 2147 A-B Game & 2151 OOXX Game(水题)
- Easy Game
- Easy Game
- FZU 1913 Easy Comparison
- Another Easy Problem FZU
- FZU 1113 Game Prediction
- FZU 2150 Fire Game
- fzu 2148 Moon Game
- FZU 2151 OOXX Game
- FZU 2148 Moon Game
- FZU 2150 Fire Game
- android 组件EditText实例
- R语言之装袋、adaboost、随机森林算法
- Android-基本控件(Spanner 下拉列表)
- scala学习之:scala多重界定代码实战及其在Spark中的应用
- Nginx开发从入门到精通一
- FZU-2146 Easy Game
- php中的数据类型详解
- A1056. Mice and Rice (25)
- Struts2文件上传与下载
- C++实现栈
- Android binder 原理及实现机制<一>
- 暑假第5周工作周报
- 打不开Eclipse,Eclipse闪退(已解决)
- dijkstra算法(Pascal描述)