题解列表

筛选

【魔板】 (C++代码)

摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std; int AimValue; bool Vis[49451 + 1]; type……

可AC (C语言代码)

摘要:解题思路: 注意事项:参考代码:#include<stdio.h> int fun(int n) { int sum = 0; if (n == 1) sum = 0; i……

连通图 (C++代码)(并查集)

摘要:解题思路:                判断连通图,构建并查集即可注意事项:参考代码:#include <iostream> #include <cstring> using namespace……

王牌花色 (C++代码)

摘要:#include "iostream" #include "cstdio" #include "cstring" #include "string" using namespace std; ……
优质题解

此解可AC (C语言代码)

摘要:解题思路:   先判断是否为因数,再判断因数是否为质数注意事项:   1不是质数,质因数不包括本身参考代码:#include<stdio.h> int fun(int n) { int i; ……