2761: Hello, World!的大小 摘要:解题思路:stringLength(str)= 13注意事项:字符串最后有个\0,所以加起来是14参考代码:2761: Hello, World!的大小#include<stdio.…… 题解列表 2025年03月13日 0 点赞 0 评论 134 浏览 评分:0.0
c++小球(drop) 摘要:解题思路:**构建满二叉树:**满二叉树的节点编号可以通过层序遍历的方式预先计算。使用队列存储每一层的节点编号,方便在构建树时按顺序分配编号。**树的构建:**使用递归方式构建满二叉树…… 题解列表 2025年03月14日 0 点赞 0 评论 89 浏览 评分:0.0
菲暃要加油——数字诗意 摘要:n=int(input())l=list(map(int,input().split()))s=0from math import *for i in l: if log2(…… 题解列表 2025年03月14日 1 点赞 1 评论 633 浏览 评分:0.0
题解 3298: 蓝桥杯2024年第十五届决赛真题-兔子集结 摘要:解题思路:兔子可以分为双向奔赴的兔子和单相思兔子,双向奔赴的兔子最终位置为两个兔子初始位置之和除以2并向下取整 ,单相思兔子最终位置就等于移动方向的第一只双向奔赴的兔子的位置注意事项:参考…… 题解列表 2025年03月14日 5 点赞 0 评论 570 浏览 评分:0.0
c语言栈八进制转换(记录代码) 摘要:#include#include#define maxsize 100//定义线性栈 typedef struct{ int data[maxsize]; int top;…… 题解列表 2025年03月14日 1 点赞 0 评论 91 浏览 评分:0.0
python,先打表,找规律 摘要:解题思路:注意事项:参考代码:L,R=map(int,input().split(" "))allnumb=R-L+1no_need=0if L==1 or L==2:…… 题解列表 2025年03月14日 0 点赞 0 评论 151 浏览 评分:0.0
菜鸟代码,仅供参考 摘要:解题思路:对于两个整数aa和bb,它们的最大公约数(GCD)和最小公倍数(LCM)满足以下关系:GCD(a,b)×LCM(a,b)=a×bGCD(a,b)×LCM(…… 题解列表 2025年03月15日 0 点赞 0 评论 201 浏览 评分:0.0
二分+贪心+前缀和 摘要:```pythonn,x = map(int,input().split())x = 2*xh = list(map(int,input().split()))s = [0]*nf…… 题解列表 2025年03月15日 0 点赞 0 评论 160 浏览 评分:0.0
链表的基本操作(代码记录) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;//数字链表结点定义typedef struct Num{  …… 题解列表 2025年03月15日 0 点赞 0 评论 88 浏览 评分:0.0
1997: 日期换算题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e7…… 题解列表 2025年03月16日 0 点赞 0 评论 79 浏览 评分:0.0