题解列表
C++:暴力的双指针,很简单粗暴,另外分享一个正常的双指针
摘要:解题思路:逻辑很简单,但是其实没必要没事找事的这么写【对说的就是我自己】(*——* )注意事项:可以不使用vector容器,使用普通数组参考代码:……
菜鸟记录11111111
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b=0,c[5]; scanf(&q……
T1029 素数处理--7行解决
摘要:解题思路:注意事项:参考代码:n=int(input())def f(n): for i in range(2,int(n ** 0.5) + 1)……
T1028 一元二次--7行解决,简洁明了
摘要:解题思路:注意事项:# 我也是在前几个前辈的代码下,总结简化的,不要恶意对比参考代码:a,b,c=map(int,input().split())t=b**2-4*a*cx1 = -b / (2 * ……
T1026 数字逆序输出--3行直接秒了
摘要:解题思路:注意事项:参考代码:s=list(map(int,input().split()))for i,j in enumerate(s[::-1]): print(j,e……
T1025 数组插入处理
摘要:解题思路:注意事项:参考代码:s=list(map(int,input().split()))x=int(input())s.append(x)s.sort()list(map(print,s))……
Are you ok(使用C语言写的)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,c,n,q,k,max; int a[10000……
C++:豆包来的动态规划
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <vector>using namespace std;int main() { ……