两行简便 编写题解 2776: A*B问题 摘要:解题思路:map,split注意事项:a,b=map(int,input().split())参考代码:a,b=map(int,input().split())print(a*b)…… 题解列表 2024年04月04日 0 点赞 0 评论 326 浏览 评分:0.0
八行简便 编写题解 2774: 计算三角形面积 摘要:解题思路:海伦公式,p=0.5*(a+b+c)注意事项:import math参考代码:import mathx1,y1,x2,y2,x3,y3=map(float,input().split())a…… 题解列表 2024年04月04日 0 点赞 0 评论 337 浏览 评分:0.0
字符串排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,j,a[3][100],t[100]; for(i=0;i<3;…… 题解列表 2024年04月04日 0 点赞 0 评论 215 浏览 评分:0.0
蓝桥杯2016年第七届真题-密码脱落 摘要:解题思路:将字符串与反转后的字符串跑一遍最长公共子序列就可以的出最长回文串的长度,减去字符串的长度就可以的出脱落的个数注意事项:参考代码:#include<bits/stdc++.h> using …… 题解列表 2024年04月04日 0 点赞 0 评论 238 浏览 评分:0.0
题解 2821: 开关灯 (思路:单个灯泡按顺序判断并输出) 摘要:```c #include #include int main() { int i,j,N,M,sign=0; bool a; scanf("%d%d",&N…… 题解列表 2024年04月04日 0 点赞 2 评论 233 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移 摘要:思路: 使前面各数顺序向后移m个位置,最后m个数变成前面m个数。写一函数:实现以上功能,在主函数中输入n个数和输出调整后的n个数。参考代码:#include <stdio.h> void yiw…… 题解列表 2024年04月04日 0 点赞 0 评论 203 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移 摘要:解题思路:使前面各数顺序向后移m个位置,最后m个数变成前面m个数。写一函数:实现以上功能,在主函数中输入n个数和输出调整后的n个数。参考代码:#include <stdio.h> void yi…… 题解列表 2024年04月04日 0 点赞 0 评论 139 浏览 评分:0.0
线段覆盖(线段树) 摘要:解题思路:其实这道题可以不用线段树,可用来对线段树练手注意事项:参考代码:#include<bits/stdc++.h> using namespace std; struct tree { …… 题解列表 2024年04月04日 0 点赞 0 评论 175 浏览 评分:0.0
C++统计子矩阵 前缀和+双指针 摘要:解题思路:如果只使用前缀和以及暴力 是拿不到全部的分数的,可以使用双指针优化内层循环,确定上下边界,如何枚举左右注意事项:参考代码:#include<iostream>#define N 505usi…… 题解列表 2024年04月04日 0 点赞 0 评论 562 浏览 评分:0.0
自定义函数之整数处理 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void chuli(int *a){ int i,flag1,flag2,q,t=a[0]; fo…… 题解列表 2024年04月04日 0 点赞 0 评论 150 浏览 评分:0.0