利用完全二叉树性质,非广搜得到答案 摘要:```C++ #include #include int n, cnt, x, ans; long long w[1000], maxn = -1e9; /* 思路:从1遍历到n…… 题解列表 2022年04月06日 0 点赞 0 评论 459 浏览 评分:0.0
二级C语言-求偶数和 摘要:参考代码:#include<stdio.h>int main(){ int n,sum=0; scanf("%d",&n); int *p; p=(int *)malloc(n…… 题解列表 2022年04月06日 0 点赞 0 评论 367 浏览 评分:0.0
C++ 究极三目运算符 摘要:解题思路:读入字符串并判断是否符合题意。注意事项:没什么,就是想尝试一下最短代码。参考代码:#include<cstring>#include<stdio.h>int main(){ int …… 题解列表 2022年04月06日 0 点赞 0 评论 426 浏览 评分:0.0
蓝桥杯2019年第十届省赛真题-人物相关性分析(滑动窗口) 摘要:```C++ #include #include #include /* 注意!如果你只拿了91分,那么很可能是你没开longlong!!! 思路:预处理得到a[i]、b[i…… 题解列表 2022年04月06日 0 点赞 0 评论 689 浏览 评分:0.0
[编程入门]数组插入处理——Python 摘要:解题思路:python自带的sort注意事项:参考代码:l = list(map(int,input().split()))n = int(input())l.append(n)l.sort()for…… 题解列表 2022年04月06日 0 点赞 0 评论 456 浏览 评分:0.0
1026: [编程入门]数字逆序输出——Python 摘要:解题思路:利用python中的切片注意事项:参考代码:l = list(map(int,input().split()))for i in l[::-1]: print(i,end = '…… 题解列表 2022年04月06日 0 点赞 0 评论 656 浏览 评分:0.0
编写题解 1003: [编程入门]密码破译 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c1,c2,c3,c4,c5; scanf("%c%c%c%c%c",&c1,&c2,&c…… 题解列表 2022年04月06日 0 点赞 0 评论 386 浏览 评分:0.0
编写题解 1005: [编程入门]温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double f,c; scanf("%lf",&f); c=5*(f-32)/9; print…… 题解列表 2022年04月06日 0 点赞 0 评论 456 浏览 评分:0.0
利用列表的比较器直接进行排序 摘要:import java.util.*;public class Main { static Scanner in=new Scanner(System.in); public static…… 题解列表 2022年04月06日 0 点赞 0 评论 372 浏览 评分:0.0
List直接比较器 摘要:import java.util.*;public class Main { static Scanner in=new Scanner(System.in); public static…… 题解列表 2022年04月06日 0 点赞 0 评论 381 浏览 评分:0.0