编写题解 1227: 日期排序 摘要:解题思路:注意事项:参考代码:dates = []while True: try: line = input().str…… 题解列表 2025年12月07日 0 点赞 0 评论 272 浏览 评分:0.0
日期排序:结构体排序 摘要:解题思路:结构体注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constint …… 题解列表 2025年04月01日 0 点赞 0 评论 562 浏览 评分:0.0
排序日期(重写Comparator的compare方法) 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { Scanner sc = new Scanner(System…… 题解列表 2025年03月04日 0 点赞 0 评论 757 浏览 评分:0.0
编写题解 1227: 日期排序 #includestructa{inta;intb;intc;};intmain(){structaa[6];structaqw;for(intq=0;q<6;q++){scanf("%d/%d/%d",&a[q].a,&a[q].b,&a[q].c);//输入}for(intq=0;q<6;q++) 题解列表 2024年11月30日 3 点赞 0 评论 890 浏览 评分:9.9
编写题解 1227: 日期排序 摘要:import java.util.*;public class Main{ public static void main(String[] args){ Scanner in=n…… 题解列表 2024年11月30日 0 点赞 0 评论 580 浏览 评分:0.0
日期排序(c++代码使用stl库) 摘要:解题思路:用sstream类分割字符串,再用vector容器存储起来,依次比较。注意事项:参考代码:#include<iostream> #include<string> #include<vec…… 题解列表 2024年10月15日 0 点赞 0 评论 576 浏览 评分:0.0
Java —— 数组实现日期排序 摘要:解题思路:从用户输入中读取日期字符串,将其解析为自定义的 MyDate 对象,然后将这些日期进行排序并输出注意事项: 使用 while 循环读取输入的日期字符串时: …… 题解列表 2024年10月12日 0 点赞 0 评论 596 浏览 评分:9.9
1227: 日期排序 摘要:解题思路:注意事项:参考代码:arr = [] while True: try: arr.append(list(map(str, input().split('…… 题解列表 2024年04月08日 0 点赞 0 评论 634 浏览 评分:0.0
小白随便写的,记录一下 ```pythondefsort_time(t_list):n=len(t_list)#传入一个时间列表foriinrange(n):t_list[i]=t_list[i].split('/')#桶排思想先排日期再排月份最后年份t_list.sort(key=lambdax:x[1])t_list.s 题解列表 2024年03月25日 0 点赞 0 评论 785 浏览 评分:0.0
java实现日期排序,利用TreeSethhhhhhhh 摘要:解题思路:注意事项:参考代码:import java.math.BigInteger; import java.util.*; public class Main { public …… 题解列表 2024年03月19日 0 点赞 0 评论 556 浏览 评分:0.0