模板题Dijkstra (JAVA) 摘要: ```java import java.util.Scanner; public class Dijkstra最短路 { static final int max = 10000;…… 题解列表 2023年05月25日 0 点赞 0 评论 281 浏览 评分:9.9
注意题干易错点 要求一个无符号数与有符号数进行比较 摘要:解题思路:C会自动进行有符号对无符号的转化,为避免比较大小时负数转化为无符号导致比较结果出错,不妨先对有符号进行正负判断。注意事项:尤其注意题干要求的无符号整数和有符号整数范围,此处有一个易错点,如果…… 题解列表 2023年05月25日 0 点赞 0 评论 723 浏览 评分:9.9
[编程入门]数组插入处理 摘要:一、解题思路:C参考代码:#include <stdio.h> int main() { int a[10]; int i, x, t; for (i = 0; i <…… 题解列表 2023年05月24日 0 点赞 0 评论 170 浏览 评分:9.9
1072基础解法(Python) 摘要:解题思路:简单思路注意事项:了解divmod()函数的基础用法参考代码:import sysfor line in sys.stdin : bot = int(line) if bot =…… 题解列表 2023年05月24日 0 点赞 0 评论 220 浏览 评分:0.0
Big Bang(一般解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>typedef struct Node{ char a[32];…… 题解列表 2023年05月24日 0 点赞 0 评论 208 浏览 评分:0.0
1129:两行代码 摘要:解题思路:注意事项:参考代码:for x in sorted(map(int, input().split()), reverse=True): print(x, end=' …… 题解列表 2023年05月24日 0 点赞 0 评论 441 浏览 评分:0.0
1128:两行代码 摘要:解题思路:注意事项:参考代码:for x in sorted([int(x) for x in input().split()]): print(x, end=' ')…… 题解列表 2023年05月24日 0 点赞 0 评论 504 浏览 评分:0.0
优质题解 线性dp(打家劫舍系列) 摘要:解题思路:代码前的思考:由于每一项的值都大于0,所以我们要尽可能的多选,将问题转换成:给定一个序列,要求不能选取相邻的元素,问能获得的最大价值是多少?1、分别记录每个点取或不取所形成的价值2、取的话就…… 题解列表 2023年05月24日 1 点赞 1 评论 2463 浏览 评分:9.8
2916: 谁考了第k名 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;long long xh[10001],temp1;int m[10001];float sc…… 题解列表 2023年05月24日 0 点赞 0 评论 341 浏览 评分:9.9
2914: 铺地毯 摘要:解题思路:逆序查找注意事项:第一个遇到的就是最上层的参考代码:#include<iostream>using namespace std;int a[10001],b[10001],g[10001],…… 题解列表 2023年05月24日 0 点赞 0 评论 230 浏览 评分:6.0