2850: 输出亲朋字符串
摘要:参考代码:s = input()
s1 = ''
for i in range(len(s) - 1):
s1 += chr(ord(s[i]) + ord(s[i + ……
一般方法,一般思路,小白解法
摘要:解题思路:注意事项:参考代码:n=input()l=''for i in range(len(n)-1): l+=chr(ord(n[i])+ord(n[i+1]))l+=chr……
八行简便 编写题解 2850: 输出亲朋字符串
摘要:解题思路:字符串与码的结合注意事项:下标大小参考代码:a=list(input())n=len(a)c=[]for i in range(n): b=chr(ord(a[i-1])+ord(a[……
编写题解 2850: 输出亲朋字符串(Java)
摘要:解题思路:注意事项:参考代码:package arrLast;
//题目 2850: 输出亲朋字符串
import java.util.Scanner;
public class t_2850 ……
2850: 输出亲朋字符串
摘要:```
#include
using namespace std;
const int N=10010;
int main(){
string a,b;
getline(cin,a);……
每一个字符和取模后的下一个字符相加输出
摘要:解题思路:遍历每一个字符,和取模后的下一个字符相加输出注意事项:scanf接收不了空格,要用gets参考代码:#include<stdio.h>#include<string.h>int main()……
题解 2850: 输出亲朋字符串
摘要: #include
using namespace std;
const int N=100000;
int main() {
string……
2850: 输出亲朋字符串
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char ……