小白随便写的,记录一下 摘要:```python a = input() b = input() c = input() word = [a, b, c] word.sort() # sort函数可以对数字排序 也…… 题解列表 2024年03月24日 0 点赞 0 评论 617 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python # 注意的还是列表的输入 这里需要map和list一起接收一个int型的列表 li = list(map(int, input().split())) li.sort() …… 题解列表 2024年03月24日 0 点赞 0 评论 362 浏览 评分:0.0
1032: [编程入门]自定义函数之字符串连接d题解(肥肠de简单) 摘要:解题思路:giao注意事项:giao参考代码:a=input()b=input()print(f"{a} {b}")…… 题解列表 2024年03月24日 0 点赞 0 评论 168 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python def solve_sort(li): new_li = list(map(int, li[1:])) new_li.sort(key=abs, revers…… 题解列表 2024年03月24日 0 点赞 0 评论 359 浏览 评分:0.0
1212: 年会(树形dp) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; struct node { int to; int next; }mp[100005…… 题解列表 2024年03月24日 0 点赞 0 评论 202 浏览 评分:0.0
检查一个数是否为质数 摘要: #include int main() { int n; scanf("%d",&n); int i,j; …… 题解列表 2024年03月24日 0 点赞 0 评论 161 浏览 评分:0.0
求组合数常规思想 摘要: #include long long func1(int n,int m) { int i; long long sum=1; …… 题解列表 2024年03月24日 0 点赞 0 评论 225 浏览 评分:0.0
2481: 信息学奥赛一本通T1576-选课 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; struct node { int to; int w; in…… 题解列表 2024年03月24日 0 点赞 0 评论 175 浏览 评分:0.0
1045: [编程入门]自定义函数之整数处理 摘要:思路:读取一个包含10个整数的数组,然后将数组中最小的数与第一个元素交换,最大的数与最后一个元素交换,最后输出交换后的数组。代码:#include <stdio.h>void shuru(int* a…… 题解列表 2024年03月24日 0 点赞 0 评论 197 浏览 评分:0.0
使用String的replaceAll()方法把" "替换成"" 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年03月24日 0 点赞 0 评论 134 浏览 评分:0.0