1212: 年会(树形dp) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; struct node { int to; int next; }mp[100005…… 题解列表 2024年03月24日 0 点赞 0 评论 359 浏览 评分:0.0
信息学奥赛一本通T1426-智力大冲浪(题型) 摘要:解题思路:首先,从输入中获取任务截止日期m和任务数量n。然后,使用一个循环,依次获取每个任务的截止日期和罚款金额,并将其存储在结构体数组a中。接下来,使用sort函数对结构体数组a进行排序,排序的依据…… 题解列表 2024年03月24日 0 点赞 0 评论 627 浏览 评分:9.9
小白随便写的,记录一下 摘要:```python def solve_sort(li): new_li = list(map(int, li[1:])) new_li.sort(key=abs, revers…… 题解列表 2024年03月24日 0 点赞 0 评论 464 浏览 评分:0.0
1032: [编程入门]自定义函数之字符串连接d题解(肥肠de简单) 摘要:解题思路:giao注意事项:giao参考代码:a=input()b=input()print(f"{a} {b}")…… 题解列表 2024年03月24日 0 点赞 0 评论 341 浏览 评分:0.0
3150-冶炼金属-简单易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); int a,b; scanf("%d %d",&a…… 题解列表 2024年03月24日 0 点赞 0 评论 490 浏览 评分:4.7
[1031]: [编程入门]自定义函数之字符串反转de题解 摘要:解题思路:使用切片把字符串反转注意事项:s=input()不要写成s=s.input()参考代码:s = input()reversed_str = s[::-1]print(reversed_str…… 题解列表 2024年03月24日 0 点赞 0 评论 388 浏览 评分:9.9
小白随便写的,记录一下 摘要:```python # 注意的还是列表的输入 这里需要map和list一起接收一个int型的列表 li = list(map(int, input().split())) li.sort() …… 题解列表 2024年03月24日 0 点赞 0 评论 523 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python a = input() b = input() c = input() word = [a, b, c] word.sort() # sort函数可以对数字排序 也…… 题解列表 2024年03月24日 0 点赞 0 评论 764 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python # 利用map函数和list把输入转为int型列表 li = list(map(int, input().split())) li.sort() # 利用内置函数进行排序…… 题解列表 2024年03月24日 0 点赞 0 评论 352 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python def select_sort(li): n = len(li) for i in range(n): # 多一次循环 for j in …… 题解列表 2024年03月24日 0 点赞 0 评论 416 浏览 评分:0.0