2838: 有趣的跳跃解题 摘要:解题思路:不进行排序,1~n-1作为数组下标,命中的该元素直接设置为1(默认值为0),如果已经为1了,重新设置直接可以打印Not jolly,退出程序。最后对1-~n-1的数组元素直接判断,看值是否都…… 题解列表 2025年01月13日 0 点赞 0 评论 133 浏览 评分:0.0
出圈直接解法 摘要:解题思路:注意事项:同样适用于m大于n的情况。参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>i…… 题解列表 2025年01月13日 0 点赞 0 评论 179 浏览 评分:0.0
高精度乘法 摘要:解题思路:思路很简单和加法差不多,只不过可能每个位数相乘后怎么加才是重点,重点理解这串代码:```cpp while(ls1>>s2; if(s1.size()…… 题解列表 2025年01月13日 1 点赞 0 评论 415 浏览 评分:0.0
c++++++++++++++++++++++++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;struct node { ch…… 题解列表 2025年01月13日 0 点赞 0 评论 133 浏览 评分:0.0
简单借位问题 摘要:解题思路:先将字符串s1,s2逆序存储进对应数组a1,a2中,解题思路:先将字符串s1,s2逆序存储进对应数组a1,a2中,如果a1[i]>s1>>s2; for…… 题解列表 2025年01月13日 0 点赞 0 评论 296 浏览 评分:0.0
题解 1234: 检查一个数是否为质数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long …… 题解列表 2025年01月13日 0 点赞 0 评论 172 浏览 评分:0.0
题解 1234: 检查一个数是否为质数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){&nb…… 题解列表 2025年01月13日 0 点赞 0 评论 108 浏览 评分:0.0
编写题解 1234: 检查一个数是否为质数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long int n,i,sum=0,t=1; &n…… 题解列表 2025年01月13日 1 点赞 0 评论 148 浏览 评分:0.0
编写题解 2664: 蓝桥杯2022年第十三届省赛真题-求和(注释清晰,简单易懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int n;&nb…… 题解列表 2025年01月13日 6 点赞 0 评论 538 浏览 评分:10.0
题解 2831: 画矩形 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main() {&n…… 题解列表 2025年01月13日 1 点赞 0 评论 117 浏览 评分:10.0