数位dp#2491: 信息学奥赛一本通T1587-Windy 数(C++) 摘要:``` #include using namespace std; const int N =11; ///一共有I位,最高位是J的windy数的个数 int f[N][10];…… 题解列表 2024年12月30日 1 点赞 0 评论 1171 浏览 评分:0.0
数位dp #2490: 信息学奥赛一本通T1586-数字游戏(C++) 看注释 摘要:``` #include using namespace std; const int N =15; //I位数字且最高位是J的不降数的个数 int f[N][N]; vo…… 题解列表 2024年12月30日 2 点赞 0 评论 601 浏览 评分:10.0
本蒟蒻来写题解 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<unordered_map>#include<string>#include<climits> // 用于 CHAR…… 题解列表 2024年12月29日 0 点赞 0 评论 198 浏览 评分:0.0
有点懵,搞不清楚二维和一维使用 摘要:解题思路:注意事项:参考代码#include<iostream>using namespace std;int n, m;int a[5010], b[5010], dp[5010];int main…… 题解列表 2024年12月29日 1 点赞 0 评论 181 浏览 评分:10.0
编写题解 2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:注意分离数位的代码(见下面的代码第11行)参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long…… 题解列表 2024年12月29日 0 点赞 0 评论 184 浏览 评分:0.0
2801: 奇数求和题解 摘要:解题思路:注意事项:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ int n,m;cin…… 题解列表 2024年12月29日 0 点赞 0 评论 253 浏览 评分:0.0
烈焰 燃毁!!! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; #define mo 1000007 // 定义模数,用于结果取模 int…… 题解列表 2024年12月28日 0 点赞 0 评论 124 浏览 评分:0.0
谁考了第k名 C++ 摘要:```cpp #include using namespace std; // 定义学生结构体 struct Student { int id; // 学号 …… 题解列表 2024年12月28日 0 点赞 0 评论 200 浏览 评分:0.0
编写题解 2997: 梯形面积 摘要:```cpp #include using namespace std; int main() { double e; e=150*2/15*(15+25)/2; …… 题解列表 2024年12月28日 1 点赞 0 评论 606 浏览 评分:0.0
坐标排序(构建对象去处理坐标数据) 摘要:解题思路: - 既然用的C++,那就不用结构体去处理了,构建一个对象去处理,顺便使用构造函数去处理输入 - 将对象存入vector容器,再去排序,排序用的就是sort,想看手写快排的话,那放在这下…… 题解列表 2024年12月28日 0 点赞 0 评论 277 浏览 评分:0.0