Anagrams问题(c语言代码) 摘要: 解题思路:首先根据题目我们知道给定的两个字符串的长度一定是一样的,要求我们求字符串中的字母出现的次数是否一样。我们可以不跟着他的要求来解题,换种思路就很简单了。 N.1将两个字符串中的字符全…… 题解列表 2023年04月25日 0 点赞 0 评论 640 浏览 评分:9.9
数组插入处理题解 摘要:解题思路:利用for循环让输入数据与已排序数据依次比较大小,如果已排序数据小于输入数据,则顺序打印,直到碰到大于输入数据的情况,打印输入数据,并把i值赋值给m,然后通过break语句跳出循环,利用fo…… 题解列表 2023年04月25日 0 点赞 0 评论 382 浏览 评分:9.9
删除数组零元素(c语言代码) 摘要:```c #include #include int delete_zero(int* arr, int len); int main() { int n = 0; scanf("%…… 题解列表 2023年04月25日 0 点赞 0 评论 703 浏览 评分:9.9
pair来写容易很多 摘要:解题思路:pair第一个存学号第二个存成绩然后用bool来进行判断加上sort排序注意事项:参考代码:#include<iostream>#include<algorithm>using namesp…… 题解列表 2023年04月25日 0 点赞 0 评论 548 浏览 评分:9.9
pair方法解决,方便易懂 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;typedef pair<int,double> bai…… 题解列表 2023年04月26日 0 点赞 0 评论 747 浏览 评分:9.9
输出二进制表示 摘要:```c #include #include int main() { int bin[8] = { 0 }; int n = 0,i = 1; scanf("%d", &n)…… 题解列表 2023年04月26日 0 点赞 0 评论 561 浏览 评分:9.9
数组求和(c语言代码) 摘要:解题思路:让数组循环,每次只需要记录从数组第一个元素起,到第m个元素的和,再比较大小。 ```c #include #include void cycle(int*, int); …… 题解列表 2023年04月26日 0 点赞 0 评论 534 浏览 评分:9.9
成绩统计(c语言代码) 摘要:```c #include int main() { int n, good = 0, pass = 0; scanf("%d", &n); int temp = n,score…… 题解列表 2023年04月26日 0 点赞 0 评论 571 浏览 评分:9.9
java最长最短单词 摘要:解题思路:注意事项:参考代码:package ten;import java.util.Scanner;public class 最长最短单词 { public static void main…… 题解列表 2023年04月26日 0 点赞 0 评论 474 浏览 评分:9.9
刷题统计(c语言代码) 摘要:解题思路:一开始看到题目肯定会使用循环解题,当然大家肯定都试过,得到的结果就是超时。那我们就直接使用一个星期可完成的任务量,来算需要多少天。初中就学过得基础知识:总任务量 / 每日完成量 = 天数。我…… 题解列表 2023年04月26日 1 点赞 4 评论 1125 浏览 评分:9.9