加密的病历单(清晰明了)
摘要:解题思路:注意事项:参考代码: #include<stdio.h> #include<string.h> //反转数组 void reverseArray(char* a, i……
题解 2857: 加密的病历单
摘要:解题思路:注意事项:三次遍历得出结果;注意循环格式,以及是哪个字符串;切勿弄混!参考代码:#include using namespace std;
char b[60]= {'w'……
Python代码(简洁)
摘要:s = input().strip()
result = ''
#注意超出字母表之后就会重新回到A或a
for char in s:
if char.isupper():
……