题解列表

筛选

有意思的轮回

摘要:参考代码:#include<bits/stdc++.h> using namespace std; string s1[10]={"geng","xin","ren","gui","jia","y……

前缀和算法

摘要:参考代码:#include<bits/stdc++.h> using namespace std; #define int long long signed main() { int n;……

[食物链] 并查集 - NOI2001 提高组

摘要:# 并查集 路劲压缩 ###### 根据题目将所有的动物分为 被捕食 天敌 竞争对手 三种类型 分别存放于 并查集的 三个位置 分别求各自所属的“连通块” 思路 : 如果 1)当前的话与前面……

to_string的大作用

摘要:参考代码:#include<bits/stdc++.h> using namespace std; #define int long long bool haoshu(int i) { s……

C++使用Swap函数倒置字符串

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    int num = 0;// 读入字符串长度    cin >……

2825: 计算多项式的值

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){    ll n;……

1014: [编程入门]阶乘求和

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){    ll n,……