博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Problem A. Speaking in Tongues
阅读量:6981 次
发布时间:2019-06-27

本文共 1593 字,大约阅读时间需要 5 分钟。

字母替换

 

// Test.cpp : Defines the entry point for the console application.////#include "stdafx.h"#include 
#include
#include
#include
#include
using namespace std;int main(){ map
chatMap; chatMap.insert(make_pair('a', 'y')); chatMap.insert(make_pair('b', 'h')); chatMap.insert(make_pair('c', 'e')); chatMap.insert(make_pair('d', 's')); chatMap.insert(make_pair('e', 'o')); chatMap.insert(make_pair('f', 'c')); chatMap.insert(make_pair('g', 'v')); chatMap.insert(make_pair('h', 'x')); chatMap.insert(make_pair('i', 'd')); chatMap.insert(make_pair('j', 'u')); chatMap.insert(make_pair('k', 'i')); chatMap.insert(make_pair('l', 'g')); chatMap.insert(make_pair('m', 'l')); chatMap.insert(make_pair('n', 'b')); chatMap.insert(make_pair('o', 'k')); chatMap.insert(make_pair('p', 'r')); chatMap.insert(make_pair('q', 'z')); chatMap.insert(make_pair('r', 't')); chatMap.insert(make_pair('s', 'n')); chatMap.insert(make_pair('t', 'w')); chatMap.insert(make_pair('u', 'j')); chatMap.insert(make_pair('v', 'p')); chatMap.insert(make_pair('w', 'f')); chatMap.insert(make_pair('x', 'm')); chatMap.insert(make_pair('y', 'a')); chatMap.insert(make_pair('z', 'q')); FILE* pf = fopen("out.txt", "w+"); int caseNum = 0; scanf("%d\n", &caseNum); char* s = (char*)malloc(10000 * sizeof(char)); string* t = new string[caseNum]; memset(s, 0, 10000 * sizeof(char)); for(int i = 0; i
::iterator iter; for(int j = 0; j
second); } } for(int k = 0; k

 

转载于:https://www.cnblogs.com/dangerman/archive/2013/03/14/2959504.html

你可能感兴趣的文章
hao123联盟新政的机制效用
查看>>
vSphere 6.5密码正确不能登录解决方法
查看>>
ACM HDU 1020Encoding
查看>>
Nvelocity中全选+批量删除
查看>>
jquery常用代码片段
查看>>
Lync 2010 标准版安装注意事项
查看>>
防不胜防 了解DNS缓存中毒攻击原理
查看>>
“.NET研究”如何发布你的Android应用程序
查看>>
等级滤波器(泛化的腐蚀、膨胀和中值滤波)
查看>>
软件开发告诫
查看>>
20120213 情人节前一天 南京 买的碧桂园凤凰城的房子
查看>>
Windows Image Lists
查看>>
c 基础系列--- define struct and init struct array
查看>>
POJ 1755 Triathlon
查看>>
【吼吼睡cocos2d学习笔记】第二章 - 开始学习
查看>>
Shell知识积累
查看>>
SQL Server 2012清除连接过的服务器名称历史?
查看>>
Volatile相关知识
查看>>
过载保护
查看>>
使用 Socket 通信实现 FTP 客户端程序
查看>>