C++判断闰年详细代码以及注释 摘要:解题思路:最基础的if判断来写注意事项:无参考代码:#include<iostream>using namespace std;int main(){ int a; //定义一个数,作为年…… 题解列表 2023年03月04日 0 点赞 2 评论 396 浏览 评分:9.9
1098:陶陶摘苹果(C++代码) 摘要:解题思路:简单题,算法难度较低注意事项:参考代码:#include <iostream>using namespace std;int main(){ int arr[10] = {0}; …… 题解列表 2023年03月04日 0 点赞 0 评论 337 浏览 评分:0.0
小学生水平题解 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int N, m, a; int s = 0; cin >> N …… 题解列表 2023年03月04日 0 点赞 0 评论 418 浏览 评分:9.9
通俗易懂的C++方法 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int m, n; int s1 = 0; int s2 = 0;…… 题解列表 2023年03月04日 0 点赞 0 评论 467 浏览 评分:9.9
3080: 信息学奥赛一本通T1335-连通块 摘要:```cpp #include using namespace std; const int N=1001; int n,m,g[N][N],f[N*N]; int find(int x) …… 题解列表 2023年03月04日 0 点赞 0 评论 589 浏览 评分:9.9
铺地毯(二维差分)(内存超限) 摘要:解题思路: 最优解应该是逆序查找,但是这道题也可以用二维差分来做,每次把铺地毯的区域加1,最后的数字就是最上层的地毯编号,区间修改可以使用二分差分来实现,最后查找目标格的数字既是此格的地毯编号。(但…… 题解列表 2023年03月03日 0 点赞 0 评论 484 浏览 评分:3.1
3125: 局域网(net) 摘要:```cpp #include #include using namespace std; const int N=101,inf=0x3f3f3f3f; int n,m,mapp[N][N…… 题解列表 2023年03月03日 0 点赞 0 评论 452 浏览 评分:9.9
3126: 繁忙的都市(city) 摘要:```cpp #include #include #include using namespace std; #define N 301 struct Edge { int t…… 题解列表 2023年03月03日 0 点赞 0 评论 493 浏览 评分:9.9
3127: 联络员(liaison) 摘要:```cpp #include #include using namespace std; struct node { int from,to,dis; friend b…… 题解列表 2023年03月03日 0 点赞 0 评论 477 浏览 评分:9.9
优质题解 LikeWater - 1677: 数据结构-静态链表(又是一个怎么也找不到错误的题!!!ヾ(≧へ≦)〃) 摘要:***————天空是蓝色的,海也是蓝色的,但其实海是反射了天空的颜色才变的蓝,我的答案是正确的,大佬的答案也是正确的,但其实是我copy的大佬的代码,ctrl+x!*** **———————————…… 题解列表 2023年03月03日 1 点赞 9 评论 814 浏览 评分:9.9