zoj 3432 异或
来源:互联网 发布:linux 查看 arp列表 编辑:程序博客网 时间:2024/05/16 20:28
用了 map 爆炸了
本来想用字典树,后来看了一下别人怎么解决的 结果 ......
#include <iostream>#include <stdio.h>#include <string.h>#include <algorithm>#include <map>using namespace std;#define maxn 3005#define ll long longchar ch[10];char ans[10];int n;int main(){ while(scanf("%d\n",&n)!=EOF) { memset(ans,0,sizeof(ans)); for(int i=0;i<2*n-1;i++) { gets(ch); for(int j=0;j<7;j++) { ans[j]^=ch[j]; } } for(int i=0;i<7;i++) { printf("%c",ans[i]); } printf("\n"); } return 0;}
0 0
- zoj 3432 异或
- zoj 3432(异或的使用)
- zoj 5518 异或
- zoj 3870 异或运算
- zoj 3870 异或运算
- ZOJ 3870 Team Formation(异或)
- ZOJ 3870 Team Formation (异或运算)
- ZOJ 3591 Nim (连续子序列异或和)
- Zoj 3870 Team Formation(异或运算)
- ZOJ 3870 Team Formation(异或运算)
- zoj 3870 Team Formation(异或运算)
- Zoj 3870 Team Formation(异或运算)
- ZOJ.3418 Binary Number【异或】 2015/09/22
- Zoj 3870 Team Formation(异或运算)
- ♥ZOJ 3870-Team Formation【异或,数学】
- Zoj 3870 Team Formation(异或运算),zoj3870
- zoj 3432
- zoj 2029【二分查找】或【STL】
- ODPS技术架构及应用实践
- 007 Belief and Disbelief
- SQLHelper
- 测试驱动开发优缺点
- 008 Cause
- zoj 3432 异或
- 开始玩hadoop4--装hadoop(ubuntu14.04,hadoop-2.6.0,最后还是屈服了java7)
- poj2063 Investment
- linux下C语言简单实现线程池
- 推荐一个zookeeper信息查看工具
- 电容特性
- QVariant空指针处理
- hdu 1005 循环节
- Tomcat源码学习——第2章