ddd看这里,三位数反转,一眼就懂,不懂包教会 摘要:解题思路:分离百位,十位,个位数字注意事项:输出一定得加“\n”,要不然第二轮测试点过不了参考代码:#includeint main(){ // int a,b; // while(~sc…… 题解列表 2023年10月17日 1 点赞 4 评论 791 浏览 评分:7.3
1099: 校门外的树(C++) 摘要:解题思路:先对区间的起始点进行顺序排序,方便直接讨论区间终点的大小情况,根据情况对重复的区间进行去除,对衔接的区间进行拼接另外有先对整段区间赋值,再根据区间改变赋值,简化区间情况讨论的作法。参考代码:…… 题解列表 2023年10月17日 0 点赞 0 评论 352 浏览 评分: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 评论 244 浏览 评分:0.0
天才的两种解法 摘要:while True: try: # 从输入中读取一个6位的正整数,表示金币的总重量 k = int(input()) - 265716 # 减去初始值…… 题解列表 2023年10月17日 0 点赞 0 评论 417 浏览 评分:9.9
贪心盾神与积木游戏(超时有点烦) 摘要:解题思路: 贪心点:先帮差值最小的完成积木作品注意事项:参考代码:# 时间超限: 64 分 运行时间: 6803ms m = int(input()) for _ in …… 题解列表 2023年10月16日 0 点赞 0 评论 263 浏览 评分: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 评论 275 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 思路奇妙哦!!! (OoO) 摘要:解题思路: 找到子字符串,用字符串来比较删除即可!!!注意事项:参考代码:#include <stdio.h>#include <string.h>char *change(char *t){ …… 题解列表 2023年10月16日 0 点赞 0 评论 405 浏览 评分:9.9
2672 字符统计 摘要:解题思路:注意事项:参考代码:import java.util.*;public class qqqq { public static void main(String[] args) { …… 题解列表 2023年10月16日 0 点赞 0 评论 412 浏览 评分: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 评论 638 浏览 评分:9.9
暴力寂寞的数 摘要:解题思路:想太多思维容易一坨,还是暴力吧。。注意事项:参考代码:def d(num): temp = [int(i) for i in str(num)] return num +…… 题解列表 2023年10月16日 0 点赞 0 评论 291 浏览 评分:9.9