编写题解 1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i = 2; int n = 0; int sum = 1; scan…… 题解列表 2022年07月30日 0 点赞 0 评论 265 浏览 评分:0.0
编写题解 1670: 拆分位数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a = 0, b = 0, c = 0; int num = 0; sca…… 题解列表 2022年07月30日 0 点赞 0 评论 374 浏览 评分:0.0
编写题解 1671: 小九九 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i = 0, j = 0; for(i = 1; i <= 9; i++) …… 题解列表 2022年07月30日 0 点赞 0 评论 305 浏览 评分:0.0
2256: 蓝桥杯算法提高-成绩排名 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>typedef struct score{ char name[100]; int sc; }sco…… 题解列表 2022年07月30日 0 点赞 0 评论 744 浏览 评分:0.0
编写题解 1060: 二级C语言-同因查找 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i = 0; for(i = 10; i <= 1000; i++) { …… 题解列表 2022年07月30日 0 点赞 0 评论 217 浏览 评分: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 评论 276 浏览 评分: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 评论 298 浏览 评分:0.0
用set去重并排序 摘要:解题思路:通过set关联容器,set中每个元素都唯一,且能根据元素的值自动排序。注意事项:参考代码:#include <bits/stdc++.h> //万能头文件 using namespace …… 题解列表 2022年07月30日 0 点赞 0 评论 382 浏览 评分:0.0
2240: 蓝桥杯算法训练-删除数组零元素(注意原数组元素全为0怎么办) 摘要:解题思路:注意事项:关键在于数组里面元素全为0的时候怎么处理参#include<stdio.h>int num[1000]={};int CompactIntegers(int n,int a[100…… 题解列表 2022年07月30日 0 点赞 0 评论 435 浏览 评分:0.0
单元素插入数组问题 摘要:解题思路: 由于本题元素个数较少,我们不妨对插入后的数组调用sort()函数进行排序操作,从而直接输出该数组(最简单的一种方法,易于操作)注意事项: sort函数的头文件为#include<algor…… 题解列表 2022年07月30日 0 点赞 0 评论 246 浏览 评分:0.0