蓝桥杯2019年第十届省赛真题-人物相关性分析(滑动窗口) 摘要:```C++ #include #include #include /* 注意!如果你只拿了91分,那么很可能是你没开longlong!!! 思路:预处理得到a[i]、b[i…… 题解列表 2022年04月06日 0 点赞 0 评论 660 浏览 评分:0.0
C++ 究极三目运算符 摘要:解题思路:读入字符串并判断是否符合题意。注意事项:没什么,就是想尝试一下最短代码。参考代码:#include<cstring>#include<stdio.h>int main(){ int …… 题解列表 2022年04月06日 0 点赞 0 评论 392 浏览 评分:0.0
15行+图解公式法 完成 Cylinder 摘要:解题思路:图片引用自kevin的文章根据上图得出的公式求解。注意事项:1.需要自定义 PI的值,或使用acos(-1) 来求(会增加 时间和空间 的占用)。PI 可通过 printf("%.15f",…… 题解列表 2022年04月06日 0 点赞 0 评论 390 浏览 评分:9.0
求逆序对个数(java 暴力解法通过) 摘要:### 注意事项 逆序对指这样的数对(xi,xj),且xi>xj,ixj,i arr[j]) { count++; } } } System.out.pri…… 题解列表 2022年04月06日 0 点赞 0 评论 513 浏览 评分:9.9
字符串的修改 最少操作数=长字符串长度-最大公共子串长度 摘要:#include <stdio.h> #include <string.h> int main() { char a[1000]; char b[1000]; int k=0; …… 题解列表 2022年04月06日 0 点赞 1 评论 700 浏览 评分:9.9
数学三角 动态规划 摘要:解题思路:利用结构体变量为二维数组来存储变化的数据与左右移动的次数 |r-l|>=1 r+l=N 所以 r与l 都<=(N+1)/2注意事项:参考代码:#include<stdio.h>…… 题解列表 2022年04月06日 0 点赞 0 评论 487 浏览 评分:6.0
[编程入门]宏定义之闰年判断(超级容易理解) 摘要:解题思路:注意事项:参考代码:第一种方法:def LEAP_YEAR(y): if year % 400==0 and year % 4 ==0: print("L") …… 题解列表 2022年04月06日 0 点赞 0 评论 1010 浏览 评分:6.5
二级C语言-求偶数和 摘要:参考代码:#include<stdio.h>int main(){ int n,sum=0; scanf("%d",&n); int *p; p=(int *)malloc(n…… 题解列表 2022年04月06日 0 点赞 0 评论 341 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积(小白超容易上手) 摘要:解题思路:注意事项:参考代码:注意导入库 mathimport math a,b,c=map(int,input().split())#如果又要实现对整数进行每数字空一格 那么map().split…… 题解列表 2022年04月06日 1 点赞 0 评论 1402 浏览 评分:9.9
简洁的题解 摘要:解题思路:对字符串进行操作注意事项:无参考代码:x = input()def f(string): print(string.replace('',' ').st…… 题解列表 2022年04月06日 0 点赞 0 评论 401 浏览 评分:9.9