题解列表
小明的A+B 小明你为什么看题看一半
摘要: 考虑到的条件比较多所以用了多个if 和 else if
#include
#include
int main()
{
int n;
……
动态规划求最长下降子序列和最长上升子序列
摘要:#include <bits/stdc++.h>
using namespace std;
const int N = 30000 + 10;
int a[N], f1[N], f2[N……
信息学奥赛一本通T1255-迷宫问题
摘要:解题思路:使用宽度优先搜索解题注意事项:题目测试数据不好,一定要使用{ { -1, 0 }, { 0, -1 }, { 1, 0 }, { 0, 1 } };这个顺序不然会报答案错误.参考代码:imp……
动态规划(C++)代码
摘要:#include <iostream>
using namespace std;
const int N = 1000010, INF = 0x3f3f3f3f;
int a[N],……
重组后的两个数字如果相同,即为相关数
摘要:解题思路:注意事项:参考代码:import java.util.*;
public class Main {
public static void main(String[] arg……
二维数组线性dp(C++)
摘要:#include using namespace std;
const int N = 110;
int f[N][N];
int a[N][N];
int main() {
int ……
蓝桥杯2023年第十四届省赛真题-整数删除
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<queue>#include<vector>using namespace std;using ll = long ……