奶奶个蛋,比赛的时候写的一样,但是肯定不对 摘要:#include using namespace std; #define int long long int n; const int N=1e5+1; struct fly { i…… 题解列表 2023年04月10日 1 点赞 1 评论 1705 浏览 评分:2.6
map存储使用 摘要:解题思路:从前往后,提取每一个数的因子存入map中,时间复杂度O(n*sqrt(Ai)),每一次存储之前判断map里面是否为空,不为空表示前面有至少一个数可以与它组队,那么我们map里面存储的就是第一…… 题解列表 2023年04月10日 0 点赞 1 评论 1101 浏览 评分:6.0
弟弟的作业 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Dome04 { public static void main(Stri…… 题解列表 2023年04月10日 0 点赞 0 评论 697 浏览 评分:9.9
题目 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:看了很多人的代码,发现用函数和指针来解决问题的不多,写了一下代码,抛砖引玉吧#include <iostream>using namespace std;double arrayAvg(in…… 题解列表 2023年04月10日 0 点赞 0 评论 353 浏览 评分:0.0
数字整除按照题目步骤做 摘要:import java.math.BigInteger; import java.util.Scanner; public class Dome05 { public static v…… 题解列表 2023年04月10日 0 点赞 0 评论 596 浏览 评分:9.9
线性dp(感觉就是个桶) 摘要:#include using namespace std; #define int long long const int N=1e5+1; int a[N],b[N]; int f[N];…… 题解列表 2023年04月10日 0 点赞 0 评论 1051 浏览 评分:2.2
前驱 后驱数组 + 优先队列 摘要:# 思路 ## 如何动态维护这个序列 对于这题我们需要维护一个前驱数组和后驱数组,当选中下标i作为被删除点时候进行如下操作 ; while (scanner.hasNext()) { int n = scanner.nextInt()…… 题解列表 2023年04月10日 0 点赞 0 评论 546 浏览 评分:9.9
数字的处理与判断c语言易懂版 摘要:解题思路:用数学方法和c语言整数除法会略掉小数的特点注意事项:不能只想着输入五位数,要想如果只有三位,四位的情况(说给自己听的嘻嘻)参考代码:#include<stdio.h>#include<mat…… 题解列表 2023年04月10日 0 点赞 0 评论 410 浏览 评分:0.0