c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct date{ int year; int month; int day;};int main(){ struct date …… 题解列表 2023年05月23日 0 点赞 0 评论 707 浏览 评分:0.0
排序日期(重写Comparator的compare方法) 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { Scanner sc = new Scanner(System…… 题解列表 2025年03月04日 0 点赞 0 评论 782 浏览 评分:0.0
日期排序:结构体排序 摘要:解题思路:结构体注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constint …… 题解列表 2025年04月01日 0 点赞 0 评论 588 浏览 评分:0.0
编写题解 1227: 日期排序 摘要:解题思路:注意事项:参考代码:dates = []while True: try: line = input().str…… 题解列表 2025年12月07日 0 点赞 0 评论 302 浏览 评分: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 评论 821 浏览 评分:0.0
日期排序 冒泡排序加结构体 摘要:解题思路:注意事项:输出时%02d补齐0,否则左侧只会输出2不会输出02参考代码:#include<stdio.h>struct date{ int y; int m; int d;…… 题解列表 2023年02月15日 1 点赞 0 评论 637 浏览 评分:0.0
1227: 日期排序 摘要:解题思路:输入很简单,不用多说,我们把年月日做成一个小列表,塞进大列表里,然后再排序输出就可以了,很简单的一道题。注意事项:参考代码:n=[]while True: try: s=…… 题解列表 2023年02月03日 0 点赞 0 评论 864 浏览 评分:0.0
编写题解 1227: 日期排序 摘要:解题思路:注意事项:参考代码:lis=[] while True: try: dat=list(map(str,input().split('/'))) …… 题解列表 2022年02月24日 0 点赞 0 评论 672 浏览 评分:0.0
日期排序(代码有点长,但很好理解) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Day{ int year; int month; int day;};int main(){ struct Day s[…… 题解列表 2022年02月13日 0 点赞 0 评论 593 浏览 评分:0.0
日期排序(C++) multiset 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<set> #include<string> using namespac…… 题解列表 2021年12月11日 0 点赞 0 评论 628 浏览 评分:0.0