编写题解 2850: 输出亲朋字符串(Java) 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2850: 输出亲朋字符串 import java.util.Scanner; public class t_2850 …… 题解列表 2024年02月06日 0 点赞 0 评论 529 浏览 评分:0.0
逐一处理字符即可 摘要:参考代码:#include<iostream> using namespace std; int main() { string s; getline(cin, s…… 题解列表 2023年12月31日 0 点赞 0 评论 462 浏览 评分:9.0
2850: 输出亲朋字符串 ```#includeusingnamespacestd;constintN=10010;intmain(){stringa,b;getline(cin,a);//读入一行for(inti=0;i+1 题解列表 2023年12月19日 0 点赞 0 评论 410 浏览 评分:0.0
2850: 输出亲朋字符串 ```#includeusingnamespacestd;constintN=100010;intmain(){stringa,b;getline(cin,a);for(inti=0;i+1 题解列表 2023年12月19日 0 点赞 0 评论 372 浏览 评分:9.9
题解 2850: 输出亲朋字符串 #includeusingnamespacestd;constintN=100000;intmain(){stringa,b;getline(cin,a);for(inti=0;i+1 题解列表 2023年12月19日 0 点赞 0 评论 415 浏览 评分:0.0
2850: 输出亲朋字符串 Python极简代码 摘要:解题思路:第二个ord函数,直接在内部取膜就好,就可以直接取到第一个了注意事项:111参考代码:s = input() s1 = '' for i in range(len(s))…… 题解列表 2023年12月05日 0 点赞 2 评论 711 浏览 评分:9.9
输出亲朋字符串 摘要:解题思路:注意事项:chr为解码将将ascii值转为字符ord为编码及将字符转为ascii值参考代码:n = str(input())ls=[]for i in range(len(n)-1): …… 题解列表 2023年11月28日 0 点赞 0 评论 495 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[10000];int main(){ cin.getline(…… 题解列表 2023年11月04日 0 点赞 0 评论 586 浏览 评分:9.9
亲朋字符串(涉及到一个转换的问题) 摘要:问: int asciiSum=currentChar+nextChar;为什么是int类型而不是char类型,毕竟current和next都是char类型的啊?答:这是一个很好的…… 题解列表 2023年11月02日 1 点赞 0 评论 758 浏览 评分:9.9
2850: 输出亲朋字符串 摘要:参考代码:#include <bits/stdc++.h> using namespace std; char str2[300]; int tong[150]; int main() { …… 题解列表 2023年10月14日 0 点赞 0 评论 592 浏览 评分:9.9