1099: 校门外的树(C++) 摘要:解题思路:先对区间的起始点进行顺序排序,方便直接讨论区间终点的大小情况,根据情况对重复的区间进行去除,对衔接的区间进行拼接另外有先对整段区间赋值,再根据区间改变赋值,简化区间情况讨论的作法。参考代码:…… 题解列表 2023年10月17日 0 点赞 0 评论 416 浏览 评分:9.9
图像相似度(建两个数组) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int m,n; scanf("%d%d",&m,&n); int a[m][n],sum=…… 题解列表 2023年10月17日 1 点赞 0 评论 334 浏览 评分:0.0
天才的两种解法 摘要:while True: try: # 从输入中读取一个6位的正整数,表示金币的总重量 k = int(input()) - 265716 # 减去初始值…… 题解列表 2023年10月17日 0 点赞 0 评论 493 浏览 评分:9.9
贪心盾神与积木游戏(超时有点烦) 摘要:解题思路: 贪心点:先帮差值最小的完成积木作品注意事项:参考代码:# 时间超限: 64 分 运行时间: 6803ms m = int(input()) for _ in …… 题解列表 2023年10月16日 0 点赞 0 评论 324 浏览 评分:9.9
找到插入的位置,使用if在正确位置插入 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int arr[9] = {0}; int i; for (i = 0; i < 9; i+…… 题解列表 2023年10月16日 0 点赞 0 评论 355 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 思路奇妙哦!!! (OoO) 摘要:解题思路: 找到子字符串,用字符串来比较删除即可!!!注意事项:参考代码:#include <stdio.h>#include <string.h>char *change(char *t){ …… 题解列表 2023年10月16日 0 点赞 0 评论 476 浏览 评分:9.9
2672 字符统计 摘要:解题思路:注意事项:参考代码:import java.util.*;public class qqqq { public static void main(String[] args) { …… 题解列表 2023年10月16日 0 点赞 0 评论 477 浏览 评分:0.0
欣赏天才之作 摘要:import math def find_defective_ball(N): k = math.ceil(math.log(N, 3)) return k while Tru…… 题解列表 2023年10月16日 1 点赞 0 评论 682 浏览 评分:9.9
暴力寂寞的数 摘要:解题思路:想太多思维容易一坨,还是暴力吧。。注意事项:参考代码:def d(num): temp = [int(i) for i in str(num)] return num +…… 题解列表 2023年10月16日 0 点赞 0 评论 368 浏览 评分:9.9
偶数求和的直观思路 摘要:解题思路:1.先假设n正好是m的整数倍,即正好可以求出(n/m)个平均值;2. 如果有剩下的数,最后再将剩下的数相加然后求平均数;注意事项:注意格式,注意设置一个变量来存放平均数加到哪了;参考代码:#…… 题解列表 2023年10月16日 0 点赞 0 评论 388 浏览 评分:9.9