题目 2879: 错误探测 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n,num0,num1,sum,x,y; scanf("%d",&n); …… 题解列表 2023年04月09日 0 点赞 1 评论 283 浏览 评分:9.3
数字的处理与判断c语言易懂版 摘要:解题思路:用数学方法和c语言整数除法会略掉小数的特点注意事项:不能只想着输入五位数,要想如果只有三位,四位的情况(说给自己听的嘻嘻)参考代码:#include<stdio.h>#include<mat…… 题解列表 2023年04月10日 0 点赞 0 评论 407 浏览 评分:0.0
使用HashMap解题 摘要:Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { int n = scanner.nextInt()…… 题解列表 2023年04月10日 0 点赞 0 评论 544 浏览 评分:9.9
汽水瓶递归解法 摘要:import java.util.Scanner; public class Dome03 { private static int number; public sta…… 题解列表 2023年04月10日 0 点赞 0 评论 398 浏览 评分:9.9
前驱 后驱数组 + 优先队列 摘要:# 思路 ## 如何动态维护这个序列 对于这题我们需要维护一个前驱数组和后驱数组,当选中下标i作为被删除点时候进行如下操作  摘要:#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 评论 1049 浏览 评分:2.2
数字整除按照题目步骤做 摘要:import java.math.BigInteger; import java.util.Scanner; public class Dome05 { public static v…… 题解列表 2023年04月10日 0 点赞 0 评论 595 浏览 评分:9.9
题目 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:看了很多人的代码,发现用函数和指针来解决问题的不多,写了一下代码,抛砖引玉吧#include <iostream>using namespace std;double arrayAvg(in…… 题解列表 2023年04月10日 0 点赞 0 评论 351 浏览 评分:0.0
弟弟的作业 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Dome04 { public static void main(Stri…… 题解列表 2023年04月10日 0 点赞 0 评论 696 浏览 评分:9.9
map存储使用 摘要:解题思路:从前往后,提取每一个数的因子存入map中,时间复杂度O(n*sqrt(Ai)),每一次存储之前判断map里面是否为空,不为空表示前面有至少一个数可以与它组队,那么我们map里面存储的就是第一…… 题解列表 2023年04月10日 0 点赞 1 评论 1101 浏览 评分:6.0