整数去重 思路清晰 摘要:解题思路:先输入数字 然后对数字本身遍历如果相同c=1并退出, 如果不同c=0并把不重复的值赋给b数组 最后输出b数组的元素即可注意事项:参考代码:#include<stdi…… 题解列表 2023年02月16日 0 点赞 0 评论 949 浏览 评分:9.9
二维费用01背包(Python) 摘要:# 题目来源ACM训练系统 第3056题# 01背包# 1.获取数据n,m,k=map(int,input().split())list1=[]for i in range(k): list1.…… 题解列表 2023年02月16日 0 点赞 0 评论 559 浏览 评分:9.9
查找特定的值(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, x, i, z; int a[10000]; n = x = z = 0; …… 题解列表 2023年02月16日 0 点赞 0 评论 584 浏览 评分:9.9
蓝桥杯算法训练-2的次幂表示-java解法 摘要:解题思路:注意事项:参考代码:import java.util.ArrayList;import java.util.Scanner;public class 二的次幂表示 { public s…… 题解列表 2023年02月16日 0 点赞 0 评论 472 浏览 评分:9.9
2297: 蓝桥杯2018年第九届真题-版本分支 (时间复杂度O(M+Q)) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<algorithm> #include<cmath> #include…… 题解列表 2023年02月16日 0 点赞 3 评论 338 浏览 评分:9.9
用“字符的二维数组” 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n = 0; char a[105][105…… 题解列表 2023年02月16日 0 点赞 0 评论 542 浏览 评分:9.9
1268: 第K极值 摘要:参考代码:#include<stdio.h> #include<stdlib.h> int cmp(const void *a,const void *b){ return *(int *)a…… 题解列表 2023年02月16日 1 点赞 0 评论 625 浏览 评分:9.9
判断素数和数字翻转结合 摘要:解题思路:用函数翻转一下 再判断 用数组存符合的数字 注意事项:最后一项没逗号 这个用数组和记录符合题目数字的个数解决参考代码:#include<bits/stdc++.h>using namespa…… 题解列表 2023年02月16日 0 点赞 0 评论 545 浏览 评分:9.9
思路清晰版本,在B站学的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,s; scanf("%d",&n); int i,j,len=1,k,a[1…… 题解列表 2023年02月17日 0 点赞 0 评论 755 浏览 评分:9.9
求10000以内n的阶乘(c语言版本) 摘要:解题思路:注意事项:初始化 a[1]=1,len=1参考代码:#includeint main(){ int n,i,j,k,len=1,a[100000]={0};//len长度一开始定为 …… 题解列表 2023年02月17日 0 点赞 0 评论 921 浏览 评分:9.9