2878: 计算矩阵边缘元素之和 摘要:解题思路:先去除四个角的元素,然后再把它们加上。注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int…… 题解列表 2022年11月07日 0 点赞 0 评论 326 浏览 评分:6.0
2919: 奖学金(c++) 摘要:```cpp #include using namespace std; typedef struct Stu { int hao;//学号 int a;//语文成绩 int b;/…… 题解列表 2022年11月07日 0 点赞 0 评论 351 浏览 评分:9.9
题解 2912: 最长平台 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n,count=1,max=1,a[10…… 题解列表 2022年11月07日 0 点赞 0 评论 275 浏览 评分:0.0
C语言字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[5]; gets(a); for(int i=0;i<3;i++) …… 题解列表 2022年11月06日 0 点赞 0 评论 145 浏览 评分:0.0
P2440(仅提供思路) 摘要:解题思路:本题等价于:有一张有 m 条边的有向图,在图中补上若干条边使得存在一条欧拉路径可以覆盖图中每一条边仅一次。求补边后整张图边数的最小值。设一个连通块中,每个点入度减去出度的值之和为 t。若 t…… 题解列表 2022年11月06日 0 点赞 0 评论 188 浏览 评分:9.9
P1371(C++题解) 摘要:解题思路:暴力搜索加最优化剪枝注意事项:不想填(滑稽)参考代码:#include<cstdio> #include<cstring> #include<iostream> using names…… 题解列表 2022年11月06日 0 点赞 1 评论 229 浏览 评分:9.9
有问题的测试点QAQ 摘要:解题思路:按照题目意思做即可注意事项:有个测试点是错误的,加个if就行了参考代码:#include<bits/stdc++.h> using namespace std; double n,m;…… 题解列表 2022年11月06日 0 点赞 1 评论 608 浏览 评分:9.9
1251: 统计字母个数(c++代码) 摘要:```cpp #include using namespace std; int main(){ string s; int a[123]={};//定义一个数组来存储字母个…… 题解列表 2022年11月06日 0 点赞 0 评论 335 浏览 评分:9.9
题解1040:【编程入门】实数的打印 摘要:# **题目解释** 在题目中以为一个实数的打印,在其他的数字并没有问题,问题在于小数点是精确到两位小数,那么我们就必须用到一个一个头文件和语句来实现。 # 代码理解 #includ…… 题解列表 2022年11月06日 0 点赞 0 评论 284 浏览 评分:7.3
合法C标识符(c++代码) 摘要:```cpp #include using namespace std; int main() { string s; string s1={"0123456789abcdefghijk…… 题解列表 2022年11月06日 0 点赞 0 评论 630 浏览 评分:8.3