题解 1163: 排队买票 摘要:参考代码:#include<stdio.h>#include<string.h>int jiecheng(int n){ int sum=1; for(int i=1;i<=n;i++) …… 题解列表 2021年07月24日 0 点赞 0 评论 322 浏览 评分:0.0
普普通通解法菜 鸡 儿 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main() { int F=0, E,NEW=0; while (1) { scanf("%d", &E); if (…… 题解列表 2021年07月23日 0 点赞 0 评论 213 浏览 评分:0.0
DFS算法解析 摘要:解题思路: 对于全排列问题,我们选择深度优先搜索算法(即DFS)实际上是一个递归的思想下面来讲讲DFS的算法: 一、首先对于 题解列表 2021年07月23日 0 点赞 1 评论 440 浏览 评分:9.9
“桶排序”解决问题 摘要:解题思路:1、先将数输到数组a[n]中去2、桶排序的思想——设置一个足够大的数组b[1001],并使得b[a[i]]=a[i],其余的b[i]均赋值为03、这样操作之后产生了一个这样的数组,一个数组小…… 题解列表 2021年07月23日 0 点赞 0 评论 433 浏览 评分:9.9
题解 1094: 字符串的输入输出处理 摘要:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[1001]; int n; scanf("%d",&n); …… 题解列表 2021年07月23日 0 点赞 0 评论 257 浏览 评分:0.0
谁可以凭借爱意将月亮私有。。 摘要:解题思路:这道题的坑点就是 大的根的数要在前 ,小根数要在后面注意事项:参考代码:#include<cstdio>int main(){ double a,b,c,t; scanf("%lf…… 题解列表 2021年07月22日 0 点赞 0 评论 297 浏览 评分:0.0
蓝桥杯算法训练VIP-接水问题(Python) 摘要:解题思路:题目说明是由先来的人打水,后来的人排队,所以可以使用先进先出的队列这种数据结构,用列表记录正在打水的人需要的打水量,先将打水的人全部入队,再根据水龙头空闲的数量出队进入打水的列表,如果存在水…… 题解列表 2021年07月22日 0 点赞 0 评论 966 浏览 评分:9.9
容易看懂--------------------- 摘要:解题思路:注意事项:参考代码:#include "stdio.h"void X(int A[], int k, int n){ int B[100],j=0; j = n - k; for (int …… 题解列表 2021年07月22日 0 点赞 0 评论 202 浏览 评分:0.0
用条件运算符简单写出结果 摘要:解题思路:注意事项:参考代码#include<stdio.h>int main(){ int score; char grade; scanf("%d",&score); grade = score>…… 题解列表 2021年07月22日 0 点赞 0 评论 258 浏览 评分:0.0
特殊的质数肋骨 摘要: #include #include #include using namespace std; int isPrime(int n) …… 题解列表 2021年07月22日 0 点赞 0 评论 265 浏览 评分:0.0