poj 2159
来源:互联网 发布:电影票房数据 编辑:程序博客网 时间:2024/06/07 22:47
代码如下
#include<cstdio>#include<iostream>#include<cstring>#include<algorithm>using namespace std;int main(){string s;int a[26];int b[26];memset(a,0,sizeof(a));memset(b,0,sizeof(b));cin>>s;for(int i=0;i<s.length();i++){a[s[i]-'A']++;}cin>>s;for(int i=0;i<s.length();i++){b[s[i]-'A']++;}sort(a,a+26);sort(b,b+26);for(int i=0;i<26;i++){if(a[i]!=b[i]){printf("NO\n");return 0;}}printf("YES\n");return 0; }
阅读全文
0 0
- POJ-2159
- POJ 2159
- POJ 2159
- poj 2159
- poj-2159
- poj 2159
- POJ 2159
- POJ-2159
- POJ 2159
- poj 2159
- poj 2159
- poj 2159
- poj 2159
- POJ 2159 字符串加密
- POJ 2159 Ancient Cipher
- [poj] 水题2159
- poj 2159 : Ancient Cipher
- poj 2159 字母映射
- Scala学习三:循环
- Oracle数据库并行机制Parallel Execution
- ubuntu 执行apt-get install ruby 不能正常install
- 日志处理Log4j 与 logback对比、及使用配置
- nodejs 读取ini文件
- poj 2159
- 哪种公司能干 哪种不能
- POSIX消息队列(mq_)
- WPF异常捕捉
- 常用又偏门的sql
- lvs 配置小记
- Studio把项目转成 .JAR .AAR
- Android NDK开发之C语言基础及指针①
- JVM 性能调优实战之:一次系统性能瓶颈的寻找过程