文科生的悲哀(DP) 摘要:解题思路:定义一个二维数组 dp,其中 dp[i][j] 表示第 i 次考试考第 j 科目的方案数初始化:第一次考试已知为政治,因此 f[1][1] = 1最终结果是所有可能的第 n 次考试的方案数之…… 题解列表 2025年04月01日 0 点赞 0 评论 189 浏览 评分:0.0
方砖问题-模拟 摘要:解题思路:注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ int&nb…… 题解列表 2025年04月01日 0 点赞 0 评论 194 浏览 评分:0.0
日期排序:结构体排序 摘要:解题思路:结构体注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constint …… 题解列表 2025年04月01日 0 点赞 0 评论 288 浏览 评分:0.0
编写题解 3078: 信息学奥赛一本通T1333-Blah数集 摘要:```cpp#includeusing namespace std;int main(){ int a,n; while(cin>>a>>n){ qu…… 题解列表 2025年04月01日 0 点赞 0 评论 315 浏览 评分:0.0
最多约数问题-筛法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constintN&…… 题解列表 2025年04月01日 0 点赞 0 评论 161 浏览 评分:0.0
好数的常规思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>inthaoshu(intn);inthaoshu(intn){…… 题解列表 2025年04月02日 4 点赞 0 评论 927 浏览 评分:0.0
编写题解 2058: [STL训练]Who's in the Middle 摘要: #include #include #include #include #include using namespace std…… 题解列表 2025年04月02日 0 点赞 0 评论 247 浏览 评分:0.0
编写题解 2059: [STL训练]sort练习 摘要: #include #include #include #include #include using namespace std…… 题解列表 2025年04月02日 0 点赞 0 评论 218 浏览 评分:0.0
编写题解 2060: [STL训练]美国大选 摘要:```cpp#include#include#include#include#include using namespace std;int n;int main(…… 题解列表 2025年04月02日 0 点赞 0 评论 280 浏览 评分:0.0
最小重量机器设计问题(DFS) 摘要:解题思路:DFS注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constin…… 题解列表 2025年04月02日 0 点赞 0 评论 148 浏览 评分:0.0