选择排序(c语言小白) 摘要:解题思路:用数组来存放这10个数,然后分别在数组里找到第一.二.三...小的分别赋值给下标为arr[0],arr[1].arr[2]....的注意事项:每一次排列好第一小的,就排列其他剩余的第一小的。…… 题解列表 2023年10月17日 0 点赞 0 评论 314 浏览 评分:0.0
找第一个只出现一次的字符 摘要:解题思路:可用列表将出现一次的字符打包注意事项:打包后,应先判断列表是否为空参考代码:a=input()ls=[]for i in a: if (a.count(i)==1): l…… 题解列表 2023年10月18日 0 点赞 0 评论 288 浏览 评分:0.0
c++偶数求和简单解法 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std;int main(){ int n,m; while(cin>>n>>m) { for(i…… 题解列表 2023年10月18日 0 点赞 0 评论 423 浏览 评分:0.0
c++字符串简单解法 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std;int main(){ string str; int n; cin>>n; string …… 题解列表 2023年10月18日 0 点赞 0 评论 210 浏览 评分:0.0
求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int arr[n][n]…… 题解列表 2023年10月18日 0 点赞 0 评论 272 浏览 评分:0.0
2867: 单词的长度(C语言) 摘要: #include int main() { char a[1000]; gets(a); char *p1,*p2; p1=a; p2=a; int …… 题解列表 2023年10月18日 0 点赞 0 评论 460 浏览 评分:0.0
先通分,后递归化简,python 摘要:n=int(input())t=[]for x in range(n): t.append(list(map(int,input().split('/'))))m=[]for x…… 题解列表 2023年10月18日 0 点赞 0 评论 299 浏览 评分:0.0
java解法,但是不知道为什么过不了,大佬帮忙看下 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main { public static void main(String[] args) { Scan…… 题解列表 2023年10月18日 0 点赞 0 评论 243 浏览 评分:0.0
平均值计算 C语言 摘要:注意事项:一定要注意检查上面定义的字符和下面使用的内容是否一样参考代码:#include<stdio.h>int main(){ int a[10]={0}; int i,k=0; …… 题解列表 2023年10月18日 0 点赞 0 评论 310 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main (){ char a[100]; int next[100]; …… 题解列表 2023年10月18日 0 点赞 0 评论 280 浏览 评分:0.0