题解列表

筛选

2878: 计算矩阵边缘元素之和

摘要:解题思路:先去除四个角的元素,然后再把它们加上。注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int……

2919: 奖学金(c++)

摘要:```cpp #include using namespace std; typedef struct Stu { int hao;//学号 int a;//语文成绩 int b;/……

题解 2912: 最长平台

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n,count=1,max=1,a[10……

C语言字符串

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char a[5];    gets(a);    for(int i=0;i<3;i++)       ……

P2440(仅提供思路)

摘要:解题思路:本题等价于:有一张有 m 条边的有向图,在图中补上若干条边使得存在一条欧拉路径可以覆盖图中每一条边仅一次。求补边后整张图边数的最小值。设一个连通块中,每个点入度减去出度的值之和为 t。若 t……

P1371(C++题解)

摘要:解题思路:暴力搜索加最优化剪枝注意事项:不想填(滑稽)参考代码:#include<cstdio> #include<cstring> #include<iostream> using names……

有问题的测试点QAQ

摘要:解题思路:按照题目意思做即可注意事项:有个测试点是错误的,加个if就行了参考代码:#include<bits/stdc++.h> using namespace std; double n,m;……

题解1040:【编程入门】实数的打印

摘要:# **题目解释** 在题目中以为一个实数的打印,在其他的数字并没有问题,问题在于小数点是精确到两位小数,那么我们就必须用到一个一个头文件和语句来实现。 # 代码理解 #includ……

合法C标识符(c++代码)

摘要:```cpp #include using namespace std; int main() { string s; string s1={"0123456789abcdefghijk……