小南解题--递归倒置字符数组-61ms 摘要:'''15:30 2022/5/27zgn946'''b,a=map(str,input().split())c=int(b)//2a=list(a)f…… 题解列表 2022年06月27日 0 点赞 0 评论 356 浏览 评分:0.0
[编程入门]自定义函数之字符串反转(指针详解) 摘要:参考代码:#include<stdio.h> #include<string.h> void reverse(char* str) //(类型*) 是指针类型,str为指…… 题解列表 2022年06月27日 0 点赞 0 评论 297 浏览 评分:9.9
裸LCA,tarjan离线求即可 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <vector> using namespace std; const int N = 200010;…… 题解列表 2022年06月27日 0 点赞 0 评论 760 浏览 评分:8.0
信息学奥赛一本通T1258- 数字金字塔-题解(各语言代码) 摘要:**python** ```python from functools import reduce print(max(reduce(lambda x,_:tuple(map(int.__add…… 题解列表 2022年06月26日 0 点赞 0 评论 508 浏览 评分:6.0
暴力直接版解析!!! 摘要:解题思路:找到n的元素定位直接输出就行注意事项:参考代码:#include<stdio.h>int main( ){ int a[9],cnt; for(int i=0;i<9;i++) scanf(…… 题解列表 2022年06月26日 0 点赞 0 评论 326 浏览 评分:0.0
杨辉三角-题解(Python极简) 摘要:**常规** 最普通的解法:根据杨辉三角定义,下一行等于上一行相邻的两数相加。 因此只要将列表重复错位相加n-1次就可以得到第n行杨辉三角了。 ```python n,m=map(int,in…… 题解列表 2022年06月26日 0 点赞 0 评论 520 浏览 评分:0.0
使用函数、数组、指针对乱序数组进行排序 摘要:解题思路:第一位数与后面的数比较,遇到更小的数就交换他们的值,保证第一位数的值最小;第二位数与后面的数比较,遇到更小的数就交换他们的值,保证第二位数的值最二小;以此类推完成排序。注意事项:将我代码中的…… 题解列表 2022年06月26日 0 点赞 0 评论 504 浏览 评分:0.0
数组累加法!!!!! 摘要:解题思路:注意事项:用2求模判断奇偶数参考代码:#include<stdio.h>int main(){ int n,sum=0; scanf("%d",&n); int a[n];…… 题解列表 2022年06月26日 0 点赞 0 评论 355 浏览 评分:0.0
短小精悍版 摘要:解题思路:注意事项:注意5*9的精度转换 不要让它取舍成0了!!!参考代码:#include<stdio.h>int main(){ float f; scanf("%f",&f); …… 题解列表 2022年06月26日 0 点赞 0 评论 343 浏览 评分:0.0
叙利亚战损版,凑合着看吧 摘要:解题思路:注意事项:分解百位数每个数字参考代码:#include<stdio.h>int main(){ int n,x,y,z,t; scanf("%d",&n); x=n/100…… 题解列表 2022年06月26日 0 点赞 0 评论 556 浏览 评分:0.0