c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[10001],str1[10001]; get…… 题解列表 2023年06月10日 0 点赞 0 评论 437 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a[20000],i,j; scanf("%d", &n); for (i = 0…… 题解列表 2023年06月10日 0 点赞 0 评论 411 浏览 评分:0.0
zero-Sn的公式求和 摘要:解题思路:2+22+222可以转换为9+99+999再乘以2/9;注意事项:参考代码:/*题目 1013: [编程入门]Sn的公式求和题目描述求Sn=a+aa+aaa+…+aa…aaa(有n个a)之值…… 题解列表 2023年06月10日 0 点赞 0 评论 511 浏览 评分:0.0
1001: [编程入门]第一个HelloWorld程序 摘要:(前言:本文章为小编第一篇C语言文章)先上代码: #include<stdio.h> int main() { printf("**************************\n");…… 题解列表 2023年06月10日 0 点赞 0 评论 469 浏览 评分:9.9
[递归实现]逆波兰表达式 解题思路:逆波兰表达式的第一个字符一定是运算符,判断输入的字符串第一个字符是否为运算符,是则返回两个子逆波兰表达式相运算的结果,如不是则返回数值注意事项:不能使用gets读入字符串atof是将字符串转换为浮点数的函数,在头文件stdlib.h中本题还可利用栈的思想参考代码:#include#inclu 题解列表 2023年06月10日 0 点赞 0 评论 1093 浏览 评分:7.5
C++ sort 字符串内排序 #C++Sort```c++#include#includeusingnamespacestd;intmain(){strings;while(getline(cin,s)){sort(s.begin(),s.end());cout 题解列表 2023年06月09日 0 点赞 0 评论 572 浏览 评分:9.9
C语言编程——不失为一种妙解 摘要:解题思路:函数 rotate 接收三个参数:一个整数数组 arr,数组的长度 n,和要向后移动的位置数 m。函数的实现过程如下:创建一个临时数组 temp,长度为 m,用来存储后面的 m 个元素。将后…… 题解列表 2023年06月09日 0 点赞 2 评论 446 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[501],str1[501],k=0; gets(str)…… 题解列表 2023年06月09日 0 点赞 0 评论 707 浏览 评分:9.9
理解题目所给的参考答案,易于理解,保证看了都会 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[4]; int i,j,k,n; for(i=0;i<4;i++) scan…… 题解列表 2023年06月09日 1 点赞 6 评论 881 浏览 评分:9.5
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h> int main(){ char str[501]; gets(str); …… 题解列表 2023年06月09日 0 点赞 0 评论 529 浏览 评分:0.0