输出亲朋字符串 摘要:解题思路:注意事项:chr为解码将将ascii值转为字符ord为编码及将字符转为ascii值参考代码:n = str(input())ls=[]for i in range(len(n)-1): …… 题解列表 2023年11月28日 0 点赞 0 评论 491 浏览 评分:0.0
八行简便 编写题解 2850: 输出亲朋字符串 摘要:解题思路:字符串与码的结合注意事项:下标大小参考代码:a=list(input())n=len(a)c=[]for i in range(n): b=chr(ord(a[i-1])+ord(a[…… 题解列表 2024年04月06日 0 点赞 0 评论 627 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:参考代码:s = input() s1 = '' for i in range(len(s) - 1): s1 += chr(ord(s[i]) + ord(s[i + …… 题解列表 2024年03月23日 0 点赞 0 评论 640 浏览 评分:0.0
一般方法,一般思路,小白解法 摘要:解题思路:注意事项:参考代码:n=input()l=''for i in range(len(n)-1): l+=chr(ord(n[i])+ord(n[i+1]))l+=chr…… 题解列表 2024年03月15日 0 点赞 0 评论 527 浏览 评分:0.0
每一个字符和取模后的下一个字符相加输出 摘要:解题思路:遍历每一个字符,和取模后的下一个字符相加输出注意事项:scanf接收不了空格,要用gets参考代码:#include<stdio.h>#include<string.h>int main()…… 题解列表 2024年04月20日 0 点赞 0 评论 767 浏览 评分:0.0
编写题解 2850: 输出亲朋字符串(Java) 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2850: 输出亲朋字符串 import java.util.Scanner; public class t_2850 …… 题解列表 2024年02月06日 0 点赞 0 评论 525 浏览 评分:0.0
2850: 输出亲朋字符串 ```#includeusingnamespacestd;constintN=10010;intmain(){stringa,b;getline(cin,a);//读入一行for(inti=0;i+1 题解列表 2023年12月19日 0 点赞 0 评论 408 浏览 评分:0.0
题解 2850: 输出亲朋字符串 #includeusingnamespacestd;constintN=100000;intmain(){stringa,b;getline(cin,a);for(inti=0;i+1 题解列表 2023年12月19日 0 点赞 0 评论 414 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 496 浏览 评分:0.0
6行:万花丛中过,片叶不沾身 摘要:解题思路:注意事项:参考代码:word=input()result=""for i in range(len(word)-1): result += chr(ord(word[i])+ord(w…… 题解列表 2024年07月25日 0 点赞 0 评论 889 浏览 评分:0.0