合并果子(python) 摘要:解题思路:注意事项:参考代码:import heapqdef mergeFruits(fruits): heap = [] for fruit in fruits: heap…… 题解列表 2023年12月17日 0 点赞 0 评论 384 浏览 评分:0.0
题解 2861: 验证子串(用isSubstring()函数解决) 摘要:```c #include #include int isSubstring(char* a, char* b, int len_a, int len_b)//默认len_a>len_b { …… 题解列表 2023年12月17日 1 点赞 0 评论 416 浏览 评分:0.0
校门外的树 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>void sortTwoArray(int* pArrayA,int*pArrayB,int tot…… 题解列表 2023年12月17日 0 点赞 0 评论 300 浏览 评分:0.0
题解 2945: 素数对 摘要:```c #include #include // 函数用于检查一个数是否是素数 int is_prime(int num) { if (num …… 题解列表 2023年12月17日 0 点赞 0 评论 594 浏览 评分:0.0
编写题解 3007: 收费 摘要:解题思路:注意事项:不要用int,用double参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double a; …… 题解列表 2023年12月17日 0 点赞 0 评论 480 浏览 评分:0.0
题解 1050: [编程入门]结构体之成绩记录(超超超级简单) 摘要:```c #include #include struct student { char shuju[20]; char name[20]; int chinese; int …… 题解列表 2023年12月17日 0 点赞 0 评论 315 浏览 评分:0.0
直接插入排序,折半插入排序、希尔排序 摘要:直接插入排序#include <stdio.h> int main() { int a[10], key; // 输入已排序的数组 for (int i = 0…… 题解列表 2023年12月17日 0 点赞 0 评论 384 浏览 评分:0.0
题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:用&&参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; …… 题解列表 2023年12月17日 0 点赞 0 评论 305 浏览 评分:0.0
2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a; cin >> a; if(a%2==…… 题解列表 2023年12月17日 0 点赞 0 评论 309 浏览 评分:0.0
2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a; cin >> a; if(a%2==…… 题解列表 2023年12月17日 0 点赞 0 评论 460 浏览 评分:0.0