zoj 3211 80ers' Memory
来源:互联网 发布:李炎恢javascript讲义 编辑:程序博客网 时间:2024/06/06 07:36
zoj 3211 80ers' Memory 题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3207
简单字符匹配
所有信息可由sample得
#include<stdio.h>#include<string.h>int main(){ int n,k,p,i,j,sum; char sam[109][22],tc[22]; scanf("%d",&n); for(i=0; i<n; i++) { scanf("%s",sam[i]); } scanf("%d",&k); while(k--) { scanf("%d",&p); sum=0; while(p--) { scanf("%s",tc); for(i=0; i<n; i++) { sum+=!strcmp(tc,sam[i]); } } printf("%d\n",sum); } return 0;}本题核心算法==0,一个strcmp();全解决。
- zoj 3211 80ers' Memory
- ZOJ 80ers' Memory
- ZOJ#3207:80ers' Memory
- zoj 3207 80ers' Memory(水~)
- ZOJ 320780ers' Memory(STL)
- ZOJ-3207-80ers' Memory【6th浙江省赛】【STL】
- 80ers' Memory
- 80ers' Memory
- ZOJ3207 80ers' Memory
- ZOJ3207-80ers' Memory
- F. 80ers' Memory
- 省赛热身赛之80ers' Memory
- 2014ACM集训13级PK赛4-80ers' Memory
- The 6th Zhejiang Provincial Collegiate Programming Contest->ProblemF:80ers' Memory
- The 6th Zhejiang Provincial Collegiate Programming Contest->ProblemF:80ers' Memory
- zoj 1414 //Memory Limit Exceeded
- ERS Precise Orbit Determination: Orbits
- 读取ERS 格式说明网址
- 在非阻塞下select函数的使用
- GPIO设置
- Tomcat 安装
- 在Android中通过Intent使用Bundle传递对象
- bootmem allocator分析
- zoj 3211 80ers' Memory
- Android脚本打包之ant语法
- Kernel panic - not syncing: No init found. yaffs2文件系统挂上找不到init
- UIImage 图片处理:截图,缩放,设定大小,存储
- 一个最简单的C#事件例子
- 每日雕蟲一技[2013-03-21]诡异的EasyUI-combobox
- 不要一辈子靠技术生存
- 归并排序
- 网络学习笔记