多边形内角和 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int n; cin>>n; int a[n-1]; int sum1=(n-2)*180…… 题解列表 2024年02月28日 0 点赞 0 评论 533 浏览 评分:9.9
基于表格的dfs #参考代码```cpp#include#includeusingnamespacestd;intf[10][10]={-1};//-1:未走过;0初始点;1已走过intn,m,x,y,t,cnt=0;inta[8]={2,1,-1,-2,2, 题解列表 2024年02月28日 0 点赞 0 评论 523 浏览 评分:9.9
基于面向对象的循环链表 #merge函数的逻辑##(1)L1的尾结点与L2的首元素结点连接##(2)维护L1的表头信息###①维护back修改L1的back变为L2的back修改L1的back的next变为L1的head###②维护len##(3)维护L2的表头信息###①维护headdeletehead所指的堆空间head 题解列表 2024年02月28日 0 点赞 0 评论 758 浏览 评分:9.9
c++间接方法,超级简单 解题思路:一段话中判断英语单词的个数,其实可以间接来做,就是通过英文空格的个数,进而判断单词出现的个数注意事项:能通过所有测试,我不清楚题目说的英文输入包括不包括标点符号,如果仅仅只是看单词的输入的话,可以通过判断空格的个数,然后空格+1便是单词的个数了, 题解列表 2024年02月27日 0 点赞 0 评论 520 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,ans=0; cin>…… 题解列表 2024年02月27日 0 点赞 0 评论 503 浏览 评分:0.0
蓝桥杯2022年第十三届决赛真题-卡牌-两种思路(二分+暴力枚举) 摘要:解题思路:思路1:暴力枚举先把数组从小到大排序,然后先从小的开始凑套。思路2:二分枚举二分枚举可以凑成mid套注意事项:需要开longlong参考代码:暴力枚举:#include <bits/stdc…… 题解列表 2024年02月26日 0 点赞 0 评论 1011 浏览 评分:6.0
编写题解 2819: 数字反转 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,ans=0; cin>…… 题解列表 2024年02月26日 0 点赞 0 评论 484 浏览 评分:0.0
编写题解 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年02月26日 0 点赞 0 评论 528 浏览 评分:0.0
翻转-简单易看懂 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; typedef long long ll; int main() { int…… 题解列表 2024年02月26日 1 点赞 0 评论 881 浏览 评分:9.9
更小的数---暴力尝试,简单易看懂 摘要:解题思路:本题时间要求不那么严格,双重循环也能过注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; typede…… 题解列表 2024年02月26日 0 点赞 0 评论 1034 浏览 评分:10.0