2256: 蓝桥杯算法提高-成绩排名 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>typedef struct score{ char name[100]; int sc; }sco…… 题解列表 2022年07月30日 0 点赞 0 评论 750 浏览 评分:0.0
编写题解 1060: 二级C语言-同因查找 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i = 0; for(i = 10; i <= 1000; i++) { …… 题解列表 2022年07月30日 0 点赞 0 评论 220 浏览 评分:0.0
编写题解 1061: 二级C语言-计负均正 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int num[20]; int i = 0, j = 0, z = 0; double…… 题解列表 2022年07月30日 0 点赞 0 评论 279 浏览 评分:0.0
编写题解 1062: 二级C语言-公约公倍 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int m = 0, n = 0, i = 1; int x = 0, y = 0; i…… 题解列表 2022年07月30日 0 点赞 0 评论 305 浏览 评分:0.0
用set去重并排序 摘要:解题思路:通过set关联容器,set中每个元素都唯一,且能根据元素的值自动排序。注意事项:参考代码:#include <bits/stdc++.h> //万能头文件 using namespace …… 题解列表 2022年07月30日 0 点赞 0 评论 385 浏览 评分:0.0
2240: 蓝桥杯算法训练-删除数组零元素(注意原数组元素全为0怎么办) 摘要:解题思路:注意事项:关键在于数组里面元素全为0的时候怎么处理参#include<stdio.h>int num[1000]={};int CompactIntegers(int n,int a[100…… 题解列表 2022年07月30日 0 点赞 0 评论 440 浏览 评分:0.0
单元素插入数组问题 摘要:解题思路: 由于本题元素个数较少,我们不妨对插入后的数组调用sort()函数进行排序操作,从而直接输出该数组(最简单的一种方法,易于操作)注意事项: sort函数的头文件为#include<algor…… 题解列表 2022年07月30日 0 点赞 0 评论 250 浏览 评分:0.0
信息学奥赛一本通T1267-01背包问题(动态规划) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int w[31];int c[31];int dp[201] = {0};int main(…… 题解列表 2022年07月31日 0 点赞 0 评论 393 浏览 评分:0.0
不知道为什么用python有一组数据n=12不通过,求大佬教教 摘要:解题思路:注意事项:参考代码:n = int(input())t = 0for i in range(1, n + 1): t += 1 / iprint("%.6f"%t)…… 题解列表 2022年07月31日 0 点赞 2 评论 517 浏览 评分:0.0
十进制转八进制(递归解法) 摘要:解题思路:递归注意事项:参考代码:#include <stdio.h>void f(int n){ int r; r = n % 8; if(n >= 8) …… 题解列表 2022年07月31日 0 点赞 0 评论 407 浏览 评分:0.0