首页
DreamJudge
院校信息
考研初试
机试真题
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
RingoCrystal
2025年3月18日 12:16
字符解密 题解:简简单单find函数
P1824
回复 0
|
赞 0
|
浏览 901
#include <bits/stdc++.h> using namespace std; int main() { string a="abcdefghijklmnopqrstuvwxyz"; string b=a; reverse(b.begin(),b.end()); string s; while(cin>>s){ for(auto &x:s){ x=b[a.find(x)]; } cout<<s...
My_opt
2022年4月30日 01:53
map
P1824
回复 0
|
赞 0
|
浏览 4.1k
#include <bits/stdc++.h> using namespace std; int main() { char s; unordered_map<char, char> h; for (int i = 0; i < 26; i ++ ) h['a' + i] = 'a' + 25 - i; while (cin >> s) cout << h[s]; return 0; }
题目
字符解密
题解数量
2
发布题解
在线答疑
热门题解
1
map
2
字符解密 题解:简简单单find函数