简单的事情(模拟) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;longlongfa…… 题解列表 2025年04月08日 0 点赞 0 评论 110 浏览 评分:0.0
简单编码(字典) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ …… 题解列表 2025年04月08日 0 点赞 0 评论 108 浏览 评分:0.0
冒泡法排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3]; int i,j;…… 题解列表 2025年04月08日 2 点赞 0 评论 466 浏览 评分:0.0
素数回文(欧拉筛) 摘要:解题思路:欧拉筛注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constint …… 题解列表 2025年04月08日 0 点赞 0 评论 145 浏览 评分:0.0
for轮询输入输出 摘要:解题思路:先使用for循环输入数据,再反向输出注意事项:注意数组元素下标和循环控制条件参考代码:#include<bits/stdc++.h>using namespace std;int…… 题解列表 2025年04月08日 2 点赞 0 评论 389 浏览 评分:10.0
统计字母个数(离散) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constintN&…… 题解列表 2025年04月08日 0 点赞 0 评论 192 浏览 评分:10.0
统计立方数(枚举) 摘要:解题思路:枚举注意事项:#include<bits/stdc++.h>usingnamespacestd;boolis(intx){…… 题解列表 2025年04月08日 0 点赞 0 评论 163 浏览 评分:10.0
分解质因数与容斥原理 摘要:思路:设n个数,它们的最大公因子为G,最小公倍数为L,问有多少种不同的方法还原这个数列。质因数分解:每个数ai都可以分解为质因数的乘积,即:ai=p1ei1⋅p2ei2⋅…⋅pkeik,其中p1,p2…… 题解列表 2025年04月08日 3 点赞 0 评论 344 浏览 评分:10.0
辗转相除法 摘要:解题思路:使用辗转相除法求最大公约数,编写一个函数计算,然后根据定义求最小公倍数,再编写一个函数计算注意事项:函数名不能与变量名相同参考代码:#include<bits/stdc++.h>…… 题解列表 2025年04月08日 2 点赞 0 评论 482 浏览 评分:10.0
老王赛马(贪心) 摘要:解题思路:排序 贪心注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constint&nb…… 题解列表 2025年04月08日 0 点赞 0 评论 116 浏览 评分:10.0