2878计算机矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int a[300][300]; int i,j,sum=0; …… 题解列表 2024年12月26日 1 点赞 0 评论 306 浏览 评分:10.0
字符串的修改C++ 摘要:```cpp #include using namespace std; int main(){ cout…… 题解列表 2024年12月26日 1 点赞 0 评论 356 浏览 评分:4.7
Python方法求根 摘要:参考代码:from math import * a,b,c=map(int,input().split()) m=b**2-4*a*c if m>=0: n=sqrt(m) …… 题解列表 2024年12月26日 1 点赞 0 评论 574 浏览 评分:0.0
2865: 紧急措施(Java版本) 摘要:```java import java.util.Scanner; public class Main{ public static void main(String[] args)…… 题解列表 2024年12月26日 2 点赞 0 评论 262 浏览 评分:10.0
哈哈哈哈哈哈哈呃 摘要:解题思路: 背包模板题罢了,很简单注意事项:参考代码:#include"bits/stdc++.h" using namespace std;…… 题解列表 2024年12月26日 0 点赞 0 评论 323 浏览 评分:0.0
正经分解,非暴力解题 摘要:解题思路:注意事项:参考代码://解决方式还有其他更加好想的,这里只是讲一讲我的逻辑分析过程/*为了好看我把空格当成0 00*0********0***00* 需要两个for循环,因为如果是一个for…… 题解列表 2024年12月25日 0 点赞 0 评论 405 浏览 评分:0.0
矩阵对角线求和 摘要:解题思路:首先定义了一个 3×3 的二维整数数组 arr 。然后通过两个嵌套的 for 循环,从用户处获取 9 个整数并存储到数组中。接下来,又通过两个 for 循环计算两条对角线上元素的…… 题解列表 2024年12月25日 0 点赞 0 评论 750 浏览 评分:0.0
字符串反转C语言题解 摘要:解题思路:使用字符串函数strlen获得字符串长度注意事项:记得加上预处理命令#include<string.h>参考代码:#include<stdio.h>#include <string.h>in…… 题解列表 2024年12月25日 0 点赞 0 评论 852 浏览 评分:0.0
测试数据是不是有问题?明明是非空集合,却要判断空集为0的情况。 摘要:``` #include #include #include #define int long long using namespace std; const int N …… 题解列表 2024年12月25日 0 点赞 0 评论 317 浏览 评分:0.0
蓝桥杯2014年第五届真题-地宫取宝 记忆化搜索 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; #define ll long long // 定义全局变量n, m, k…… 题解列表 2024年12月24日 0 点赞 0 评论 354 浏览 评分:0.0