练练用vector容器解题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<vector>using namespace std;const int N=10010;int n,su…… 题解列表 2023年12月02日 0 点赞 0 评论 206 浏览 评分:0.0
编写题解 1066: 二级C语言-自定义函数 摘要:解题思路:注意事项: 题目中并未明确表示两个参数是一行输入还是两行输出,看输入例子是一行输入,但实际是随机的,所以不管你是分一行输入还是两行输入都会错一半,解决方法是判断一下第一行所输入参数的长度。参…… 题解列表 2023年12月03日 0 点赞 0 评论 266 浏览 评分:0.0
编写题解 1067: 二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:import math def f(x): if x < 0: return abs(x) elif 0 <= x < 2…… 题解列表 2023年12月03日 0 点赞 0 评论 248 浏览 评分:0.0
C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int N; cin>>N; int a[N][N]…… 题解列表 2023年12月03日 0 点赞 0 评论 258 浏览 评分:0.0
printf基础练习--java语言 摘要:解题思路:注意事项:八进制、十六进制输出表示的符号参考代码:import java.util.Scanner; public class Main { public static void …… 题解列表 2023年12月03日 0 点赞 0 评论 636 浏览 评分:0.0
鸡兔同笼--java语言 摘要:解题思路: 通过数学思维 将公式列出 假设鸡a,兔b 在已知头x,脚y时,可得: a+b = x; 2a + (x-b)4 = y;   题解列表 2023年12月03日 0 点赞 0 评论 358 浏览 评分:0.0
编写题解 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double s,a,b,c; cin>>a>…… 题解列表 2023年12月03日 0 点赞 0 评论 205 浏览 评分:0.0
A+B for Input-Output Practice (II) python代码 摘要:这几个题真的有点没活了,实在不行去咬打火机,pass意思就是跳过,数组的长度小于等于1passwhile True: try: a = list(map(int, input().…… 题解列表 2023年12月03日 0 点赞 0 评论 233 浏览 评分:0.0
单词反转(遍历) 摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Scanner;public class Main { public static…… 题解列表 2023年12月03日 0 点赞 0 评论 188 浏览 评分:0.0
利用C++完成选择排序 摘要:解题思路:注意事项:参考代码:#include<iostream>#define totalnum 10using namespace std;int array[totalnum];void jud…… 题解列表 2023年12月03日 0 点赞 0 评论 172 浏览 评分:0.0