一个非常非常非常容易超时的简单并查集和debug好久的写法(虽然也不知道为啥de了那么久突然过了) 摘要:``` #include using namespace std; const int N=10000000,mod=1e9+7;//给题目的范围再给大点 typedef long long…… 题解列表 2024年01月05日 0 点赞 0 评论 546 浏览 评分:9.9
set的做法,通俗易懂 摘要:``` #include #include #include #include #include using namespace std; const int N =1000; int…… 题解列表 2024年01月05日 0 点赞 0 评论 276 浏览 评分:0.0
冶炼金属二分写法 摘要:``` #include #define int long long using namespace std; const int N=110,mod=1e9+7; typedef lon…… 题解列表 2024年01月05日 0 点赞 0 评论 631 浏览 评分:9.9
遍历素数,然后查找 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main() { int x; cin >> x; ve…… 题解列表 2024年01月05日 0 点赞 0 评论 266 浏览 评分:0.0
求s=a+aa+aaa+aaaa+aa...a的值 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,s=0,k,i,q=0; …… 题解列表 2024年01月04日 0 点赞 0 评论 362 浏览 评分:0.0
1017[编程入门]完数的判断 摘要:注意事项:选择排序不是最优的排序,但是是最简单、易懂的。参考代码:#include<stdio.h>//交换void swap(int &a,int &b){ int count; cou…… 题解列表 2024年01月04日 0 点赞 0 评论 279 浏览 评分:9.9
好写》好写 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int x; char z…… 题解列表 2024年01月03日 0 点赞 0 评论 280 浏览 评分:9.9
好写》好写 摘要:参考代码:#include<iostream>#include<stdio.h> using namespace std; int main() { double sum = 0; …… 题解列表 2024年01月03日 0 点赞 0 评论 463 浏览 评分:9.9
好写》好写 摘要:参考代码:#include<iostream> #include<stdio.h> using namespace std; int main() { int n; cin >>…… 题解列表 2024年01月03日 0 点赞 2 评论 341 浏览 评分:9.9
题解 2857: 加密的病历单 摘要: #include using namespace std; char a[200],b[200]; int n,m; int main(){ …… 题解列表 2024年01月03日 0 点赞 0 评论 395 浏览 评分:2.0