输出亲朋字符串(c++) 摘要:```cpp #include using namespace std; int main(){ string s; getline(cin,s);//此函数可读取整行,包括…… 题解列表 2022年11月06日 1 点赞 2 评论 544 浏览 评分:9.9
想太多了,很简单的题搞半天 摘要:解题思路:没啥思路,就循环相加就是注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,p; char s[100]…… 题解列表 2024年02月15日 0 点赞 0 评论 318 浏览 评分:9.9
耿直思路的代码解决输出亲朋字符串 摘要:解题思路:注意事项:101参考代码:a=input()A=list(a)B=[]for i in range(len(A)): if i<len(A)-1: C=ord(A[i])+o…… 题解列表 2024年03月27日 0 点赞 1 评论 244 浏览 评分:9.9
2850: 输出亲朋字符串 摘要:``` #include using namespace std; const int N=100010; int main(){ string a,b; getline(cin,a)…… 题解列表 2023年12月19日 0 点赞 0 评论 116 浏览 评分:9.9
要注意测试案例会包括空格 摘要:解题思路:注意事项:要用gets函数,测试数据里面有空格,%s接受不了参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; …… 题解列表 2024年04月02日 0 点赞 0 评论 260 浏览 评分:9.9
2850: 输出亲朋字符串 Python极简代码 摘要:解题思路:第二个ord函数,直接在内部取膜就好,就可以直接取到第一个了注意事项:111参考代码:s = input() s1 = '' for i in range(len(s))…… 题解列表 2023年12月05日 0 点赞 2 评论 252 浏览 评分:9.9
2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[10000];int main(){ cin.getline(…… 题解列表 2023年11月04日 0 点赞 0 评论 207 浏览 评分:9.9
亲朋字符串(涉及到一个转换的问题) 摘要:问: int asciiSum=currentChar+nextChar;为什么是int类型而不是char类型,毕竟current和next都是char类型的啊?答:这是一个很好的…… 题解列表 2023年11月02日 1 点赞 0 评论 277 浏览 评分:9.9
2850: 输出亲朋字符串 摘要:参考代码:#include <bits/stdc++.h> using namespace std; char str2[300]; int tong[150]; int main() { …… 题解列表 2023年10月14日 0 点赞 0 评论 255 浏览 评分:9.9
题解 2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[103];int main(){ cin.getline(s,103…… 题解列表 2024年07月12日 0 点赞 0 评论 318 浏览 评分:9.9