日期排序 冒泡排序加结构体 摘要:解题思路:注意事项:输出时%02d补齐0,否则左侧只会输出2不会输出02参考代码:#include<stdio.h>struct date{ int y; int m; int d;…… 题解列表 2023年02月15日 1 点赞 0 评论 242 浏览 评分:0.0
排序日期(重写Comparator的compare方法) 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { Scanner sc = new Scanner(System…… 题解列表 2025年03月04日 0 点赞 0 评论 172 浏览 评分:0.0
日期排序:结构体排序 摘要:解题思路:结构体注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constint …… 题解列表 2025年04月01日 0 点赞 0 评论 90 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python def sort_time(t_list): n = len(t_list) # 传入一个时间列表 for i in range(n): …… 题解列表 2024年03月25日 0 点赞 0 评论 375 浏览 评分:0.0
1227: 日期排序 摘要:解题思路:注意事项:参考代码:arr = [] while True: try: arr.append(list(map(str, input().split('…… 题解列表 2024年04月08日 0 点赞 0 评论 239 浏览 评分:0.0
1227: 日期排序 摘要:解题思路:输入很简单,不用多说,我们把年月日做成一个小列表,塞进大列表里,然后再排序输出就可以了,很简单的一道题。注意事项:参考代码:n=[]while True: try: s=…… 题解列表 2023年02月03日 0 点赞 0 评论 385 浏览 评分:0.0
编写题解 1227: 日期排序 摘要:解题思路:注意事项:参考代码:lis=[] while True: try: dat=list(map(str,input().split('/'))) …… 题解列表 2022年02月24日 0 点赞 0 评论 194 浏览 评分:0.0
日期排序(代码有点长,但很好理解) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Day{ int year; int month; int day;};int main(){ struct Day s[…… 题解列表 2022年02月13日 0 点赞 0 评论 235 浏览 评分:0.0
日期排序(C++) multiset 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<set> #include<string> using namespac…… 题解列表 2021年12月11日 0 点赞 0 评论 242 浏览 评分:0.0
曲线救国:用字符串代替输入达到整体排序的目的(萌新的笨办法) 摘要:解题思路:首先定义二维数组,每一行存入一个日期。关键思路就是对数组内部重组,以yyyy/mm/dd的顺序重新排列,从而可以从头到尾地进行“字典序”排列。注意事项: 首先注意要准备一个备用数组存入我们要…… 题解列表 2021年12月11日 0 点赞 0 评论 280 浏览 评分:0.0