高精度阶乘和(简写) 摘要:解题思路:1、定义数组a用来存储阶乘,s存储阶乘和,逆序存储值(初始值为1,a[1]=1,长度len为1),循环时只需将乘数i乘以a的每个位数即可。2、将a的每一位进位计算,当a[len]产生…… 题解列表 2025年02月18日 4 点赞 0 评论 505 浏览 评分:7.3
我直接ifififif 摘要:```cpp#include #include using namespace std;int main(){ string s; int a[50]={0},…… 题解列表 2025年02月18日 0 点赞 0 评论 276 浏览 评分:0.0
优先队列解法 摘要:解题思路:1. 使用优先队列来优化选择窗口的操作,优先队列(小顶堆)的特性可以保证每次堆顶元素就是当前空闲时间最早(即空闲时间最短)的窗口&…… 题解列表 2025年02月18日 2 点赞 0 评论 310 浏览 评分:10.0
最容易想到的解法了 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<stdio.h>using namespace std;i…… 题解列表 2025年02月18日 0 点赞 0 评论 256 浏览 评分:0.0
stricmp用不了,换普通解法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<stdio.h>using namespace std;i…… 题解列表 2025年02月18日 0 点赞 0 评论 238 浏览 评分:0.0
分解质因数 一种用素数判断 一种无需判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;//判断是否是素数bool check(int …… 题解列表 2025年02月17日 0 点赞 0 评论 320 浏览 评分:0.0
[信息学奥赛一本通T1500-新年好] - SPFA+DFS 摘要:### **最短路径 + 状态压缩 DFS**本题涉及 **最短路径** 和 **状态压缩搜索**,整体分为两个部分:1. **使用 SPFA 计算所有关键点的最短路径**2. **使用 …… 题解列表 2025年02月16日 0 点赞 0 评论 276 浏览 评分:0.0
[信息学奥赛一本通T1498-Roadblocks] - Dijkstra求次短路 摘要:```cpp#include // #define int long long // 自觉去掉,当需要 memset 数组为 0x3f 时使用#define INF 0x3f3f3f3f…… 题解列表 2025年02月16日 0 点赞 0 评论 188 浏览 评分:0.0
好烦,这个小数点的下标烦死 摘要:解题思路:为了写这道题,去看了高精度加减法,一直看到高精度乘法,还去博客看reserve函数和find函数的使用,最后在B站上看老师讲解才大概明白注意事项:参考代码:#include<bits/…… 题解列表 2025年02月15日 2 点赞 0 评论 1129 浏览 评分:8.0
打印平行四边形 摘要:```cpp#includeusing namespace std;int main(){ int a,b,c,d; scanf("%d",&a); for(b=a…… 题解列表 2025年02月15日 0 点赞 0 评论 168 浏览 评分:0.0