题解 2850: 输出亲朋字符串

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

为什么不初始化就通不过

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){     int i;     char a[101] = {&#39;\……

c语言代码解决问题

摘要:解题思路:注意事项:注意添加终止符参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101],str_friend[101]; ……

输出亲朋字符串——python

摘要:解题思路:注意事项:参考代码:L = input()for i in range(len(L)-1):    a =chr( ord(L[i])+ord(L[i+1]))    print(a,end……

单个字符拼接输出

摘要:解题思路:注意事项:不要用cin<< 因为根据题目条件,字符串中可能含有空格参考代码://#include <bits/stdc++.h>#define _CRT_SECURE_NO_WARNINGS……

2850: 输出亲朋字符串

摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() {     char ……

输出亲朋字符串(简短)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){     char s[100];     gets(s);     int ……

2850: 输出亲朋字符串

摘要:解题思路:注意事项:参考代码:s1 = input()s2 = s1[1::1]s2 = s2 + s1[0]s = ""for i in range(len(s1)):    s += chr(or……

好理解的答案

摘要:解题思路: 无所畏惧,直接上,系统会自动转化成ascii码相加的,我们不用管这么多注意事项:亲朋字符串的最后一个字符由给定字符串s的最后一个字符ASCII值加s的第一个字符的ASCII值参考代码:#i……