编写题解 1054: 二级C语言-计算素数和 摘要:```c !!!注意注意 1不是素数 #include #include #include #include #include int isprime(int x) { in…… 题解列表 2023年03月19日 0 点赞 0 评论 344 浏览 评分:0.0
c语言。。。 摘要:参考代码:#include <stdio.h>#include <string.h>#define NO_OF_CHARS 256char getFirstNonRepeatingChar(char*…… 题解列表 2023年03月19日 0 点赞 0 评论 400 浏览 评分:0.0
同样的道理维护最大上升子序列 摘要:既让要求最长子序列的和,我们就在求最长子序列的过程中将数据存好: import java.util.ArrayList; import java.util.Arrays; import…… 题解列表 2023年03月19日 0 点赞 0 评论 476 浏览 评分:0.0
2921: 整数奇偶排序 摘要:```cpp #include using namespace std; int a[1001],b[1001]; int x,l,l1; int main() { for(in…… 题解列表 2023年03月19日 0 点赞 0 评论 382 浏览 评分:9.9
快速排序法之分治法,挖坑填数法 摘要:解题思路:注意事项: 法一 分治法注意事项 内循环的while(i<j&&nums[j]>=key)和while(i<j&&nums[i]<=key) 必须加等号法二 挖坑填数法注意事项 …… 题解列表 2023年03月19日 0 点赞 0 评论 399 浏览 评分:0.0
蓝桥杯专题系列-1821(Python) 摘要:解题思路:模拟题注意事项:注意数据类型间的转化参考代码:n, m = map(int, input().split())low, high = int(pow(n, 0.5)), int(pow(m,…… 题解列表 2023年03月19日 0 点赞 0 评论 303 浏览 评分:9.9
[编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>#define Area(S,a,b,c) sqrt(S*(S-a)…… 题解列表 2023年03月19日 0 点赞 0 评论 294 浏览 评分:0.0
#C++1841——蓝桥杯2017年第八届真题-发现环 摘要:解题思路:因为是从1开始构造,就无需排序啦*******************************参考代码:#include <iostream> using namespace std; …… 题解列表 2023年03月19日 0 点赞 0 评论 412 浏览 评分:0.0
最小三个数 摘要:解题思路:先从小到大排序 ,在输出使用冒泡排序参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n]; int i,j,t;…… 题解列表 2023年03月19日 0 点赞 0 评论 338 浏览 评分:0.0
编写题解 1052: [编程入门]链表合并(c语言) 摘要: #include typedef struct student{ int id; int greed; struct student *next; }node; …… 题解列表 2023年03月18日 0 点赞 0 评论 337 浏览 评分:0.0