高精度乘法 摘要:解题思路:思路很简单和加法差不多,只不过可能每个位数相乘后怎么加才是重点,重点理解这串代码:```cpp while(ls1>>s2; if(s1.size()…… 题解列表 2025年01月13日 1 点赞 0 评论 837 浏览 评分:0.0
出圈直接解法 解题思路:注意事项:同样适用于m大于n的情况。参考代码:#include#include#includeintmain(){intn,m,*flag;while(scanf("%d%d", 题解列表 2025年01月13日 0 点赞 0 评论 535 浏览 评分:0.0
2838: 有趣的跳跃解题 解题思路:不进行排序,1~n-1作为数组下标,命中的该元素直接设置为1(默认值为0),如果已经为1了,重新设置直接可以打印Notjolly,退出程序。最后对1-~n-1的数组元素直接判断,看值是否都为1,则打印Jolly,如果其中有一个为0,打印Notjolly,退出。 题解列表 2025年01月13日 0 点赞 0 评论 562 浏览 评分:0.0
python|并查集 摘要:```pythonclass UnionFind: def __init__(self, n): self.parents = list(range(n))…… 题解列表 2025年01月14日 0 点赞 0 评论 364 浏览 评分:0.0
python|sys.stdin 摘要:```pythonimport sysfrom collections import Counter# python可能超时过不了全部,使用sys.stdin一次all in输入数据,…… 题解列表 2025年01月14日 1 点赞 0 评论 414 浏览 评分:10.0
最普通的数组解法 解题思路:#include#includeintmain(){chararr[100];inti=0;scanf("%s",arr);for(i=0;i 题解列表 2025年01月14日 0 点赞 0 评论 751 浏览 评分:0.0 编写题解 2571: 蓝桥杯2020年第十一届省赛真题-回文日期(代码较长但易理解,注释清晰) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int A(int x);int B(int p);int main(){i…… 题解列表 2025年01月13日 2 点赞 1 评论 799 浏览 评分:10.0 Python | 生成器 摘要:### yieldfrom运用在dfs问题 2038: [简化型背包]([简化型背包](https://www.dotcpp.com/vipstudy_suanfa/problem/?id=203…… 题解列表 2025年01月14日 1 点赞 0 评论 432 浏览 评分:10.0 简单易于理解的整数处理问题——Python 摘要:a=list(map(int,input().split()))m1=max(a)m2=min(a)b=a.index(m1)c=a.index(m2)a[b]=a[-1]a[…… 题解列表 2025年01月14日 0 点赞 0 评论 669 浏览 评分:0.0 幸运儿问题模拟求解 解题思路:注意事项:参考代码:#include#include#includeintmain(){intn,*people;while(scanf("%d",&n)!=EOF){people=(int*)malloc(sizeof(int)*n 题解列表 2025年01月14日 0 点赞 0 评论 515 浏览 评分:0.0 « 12...5676567756785679568056815682...59235924 »
编写题解 2571: 蓝桥杯2020年第十一届省赛真题-回文日期(代码较长但易理解,注释清晰) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int A(int x);int B(int p);int main(){i…… 题解列表 2025年01月13日 2 点赞 1 评论 799 浏览 评分:10.0
Python | 生成器 摘要:### yieldfrom运用在dfs问题 2038: [简化型背包]([简化型背包](https://www.dotcpp.com/vipstudy_suanfa/problem/?id=203…… 题解列表 2025年01月14日 1 点赞 0 评论 432 浏览 评分:10.0
简单易于理解的整数处理问题——Python 摘要:a=list(map(int,input().split()))m1=max(a)m2=min(a)b=a.index(m1)c=a.index(m2)a[b]=a[-1]a[…… 题解列表 2025年01月14日 0 点赞 0 评论 669 浏览 评分:0.0
幸运儿问题模拟求解 解题思路:注意事项:参考代码:#include#include#includeintmain(){intn,*people;while(scanf("%d",&n)!=EOF){people=(int*)malloc(sizeof(int)*n 题解列表 2025年01月14日 0 点赞 0 评论 515 浏览 评分:0.0