ZOJ Problem Set - 1926 Guessing Game
来源:互联网 发布:湖北中科网络欠款 编辑:程序博客网 时间:2024/03/29 07:41
这题还是蛮有趣的。但是很水。直接标记就可以了!
#include <iostream>#include <cstring>#include <cstdio>using namespace std;int main(){ char p[10]; int m,i; int a[11]; memset(a,0,sizeof(a)); while(cin>>m&&m!=0) { getchar(); cin.getline(p,10); if(p[4] == 'h'){ for(i = m;i < 11;i ++) a[i] = 1; } else if(p[4] == 'l') { for(i = 0;i <= m;i ++) a[i] = 1; } else if(p[4] == 't') { if(a[m] == 1) cout<<"Stan is dishonest"<<endl; else cout<<"Stan may be honest"<<endl; memset(a,0,sizeof(a)); } } return 0;}
- ZOJ Problem Set - 1926 Guessing Game
- zoj 1926 Guessing Game
- ZOJ 1926 Guessing Game
- zoj 1926 Guessing Game
- zoj 1926 || poj 2328 Guessing Game(水~)
- Guessing Game
- Guessing Game
- Guessing Game
- Guessing Game
- ZOJ Problem Set - 2060
- ZOJ Problem Set - 2972
- ZOJ Problem Set - 1037
- ZOJ Problem Set - 1048
- ZOJ Problem Set - 1049
- ZOJ Problem Set - 1051
- ZOJ Problem Set - 1067
- ZOJ Problem Set - 1115
- ZOJ Problem Set - 1151
- GPU上大规模粒子系统的Dx9实现细节总结
- Linux中对虚拟机的远程访问
- 相关模糊概念
- 提升你网站水平的 jQuery 插件推荐
- ZipPay将推出移动支付服务 比Square更便宜
- ZOJ Problem Set - 1926 Guessing Game
- TC35学习4---调试几种TC35命令返回的response
- 任正非语录:企业发展就是要发展一批狼
- 解读乔布斯:产品
- 长假最后一天。。
- 全球100大互联网创业企业:京东凡客上榜
- 2012淘宝校园招聘-笔试感想
- 索爱X8 一键root方法/删除系统程序
- 编程技术面试的五大要点