题解列表

筛选

前驱 后驱数组 + 优先队列

摘要:# 思路 ## 如何动态维护这个序列 对于这题我们需要维护一个前驱数组和后驱数组,当选中下标i作为被删除点时候进行如下操作 ![](/image_editor_upload/20230410/2……

汽水瓶递归解法

摘要:import java.util.Scanner; public class Dome03 {    private static int number;    public sta……

使用HashMap解题

摘要:Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) {    int n = scanner.nextInt()……

数字的处理与判断c语言易懂版

摘要:解题思路:用数学方法和c语言整数除法会略掉小数的特点注意事项:不能只想着输入五位数,要想如果只有三位,四位的情况(说给自己听的嘻嘻)参考代码:#include<stdio.h>#include<mat……

题目 2879: 错误探测

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() {     int n,num0,num1,sum,x,y;     scanf("%d",&n); ……

一个笨方法

摘要:一个笨方法cpp ```cpp #include #include using namespace std; int main() { int n,x3[20][20],num[20];……