1676: 数据结构-链表的基本操作 摘要:错了两次才过,这题有一个数据很大的样例,输入输出不能用 cin 和 cout,字符串用 char 数组不要用 string,不然会时间超限。#include<bits/stdc++.h> using…… 题解列表 2021年12月19日 0 点赞 0 评论 422 浏览 评分:0.0
1052: [编程入门]链表合并 摘要:这里的解法是依次将结点插入链表。题目的本意应该是提供 a 和 b 两个现成的链表,然后将 b 链表归并到 a 链表里,最后将链表排序。#include<bits/stdc++.h> using na…… 题解列表 2021年12月19日 0 点赞 0 评论 708 浏览 评分:0.0
1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:令一元二次方程判别式: b2 - 4ac为变量P当P > 0时:x1 = (-b+sqrt(P)) / 2ax1 = (-b-sqrt(P)) / 2a当P = 0时:x1 = x2 = -…… 题解列表 2021年12月19日 0 点赞 0 评论 508 浏览 评分:0.0
求圆的面积(c++) 摘要:解题思路:注意事项:控制浮点数精度参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double r; c…… 题解列表 2021年12月20日 0 点赞 0 评论 480 浏览 评分:0.0
1030: [编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fun(int A[3][3]){ int A_T[3][3]; for(int i=0;i<3;i++){ …… 题解列表 2021年12月20日 0 点赞 0 评论 477 浏览 评分:0.0
C语言训练-排序问题<1> 摘要:解题思路: 冒泡排序法即可解决注意事项:参考代码:#include<stdio.h>int main(){ int i,j,temp=0; int n[4]; for(i…… 题解列表 2021年12月20日 0 点赞 0 评论 761 浏览 评分:0.0
求[X,Y]内被除3余1并且被除5余3的整数的和(python) 摘要:m,n = map(int,input().split())if m > n: m,n = n,msum = 0for i in range(m,n): if i%3 == 1 and …… 题解列表 2021年12月20日 0 点赞 0 评论 514 浏览 评分:0.0
1575: 蓝桥杯算法提高VIP-递归倒置字符数组 摘要:使用 swap 函数交换首尾元素。#include<bits/stdc++.h> using namespace std; int main() { int n; c…… 题解列表 2021年12月20日 0 点赞 0 评论 412 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdio.h>int main(){ int a,b,i; char arr[100]; scan…… 题解列表 2021年12月20日 0 点赞 0 评论 457 浏览 评分:0.0