1094. The Largest Generation
来源:互联网 发布:淘宝上aj正品店铺 编辑:程序博客网 时间:2024/05/18 00:24
#include <cstdio>#include <string>#include <iostream>#include <cstring>using namespace std ;#define MAX 256int main(void){string data ;int con[MAX];int souLen , desLen ;int i ;memset(con , 0 , sizeof(con)) ;//freopen("input.txt" , "r" , stdin) ;cin >> data ;souLen = data.length() ;for( i = 0 ; i < data.length() ; i ++ ){con[data[i]] ++ ;}cin >> data ;desLen = data.length() ;for( i = 0 ; i < data.length() ; i++ ){if( con[data[i]] > 0 ){con[data[i]] -- ;desLen -- ;souLen -- ;}}if( desLen == 0 ){printf("Yes %d\n" , souLen);}else{printf("No %d\n" , desLen);}return 0 ;}
0 0
- 1094.The Largest Generation
- 1094. The Largest Generation
- 1094. The Largest Generation
- 1094. The Largest Generation
- 1094. The Largest Generation
- 1094. The Largest Generation
- 1094. The Largest Generation
- 1094. The Largest Generation
- 1094. The Largest Generation
- 1094. The Largest Generation (25)
- PAT 1094. The Largest Generation
- 1094. The Largest Generation (25)
- 1094. The Largest Generation (25)
- 1094. The Largest Generation (25)
- 1094. The Largest Generation (25)
- 1094. The Largest Generation (25)
- 1094. The Largest Generation (25)
- 1094. The Largest Generation (25)
- MEAN架构Angular fullstack generator生成器
- Introduction to Java Programming编程题6.1<为学生分数转换为ABCDF>
- JAVA IO流(2)
- 快速排序(Java)
- 基于Jenkins+git+gradle的android持续集成
- 1094. The Largest Generation
- js原生实现FastClick事件
- Android内存泄漏研究
- 由pcap文件提取IPv6的flow数据
- 使用确定对话框来控制循环
- App 从Windows到OS X的移植
- select @@identity
- 能力风暴机器人AS-MF2011循迹算法
- mysql双主复制