排序日期(重写Comparator的compare方法)
摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { Scanner sc = new Scanner(System……
日期排序:结构体排序
摘要:解题思路:结构体注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constint ……
编写题解 1227: 日期排序
摘要:解题思路:注意事项:参考代码:dates = []while True: try: line = input().str……
小白随便写的,记录一下
摘要:```python
def sort_time(t_list):
n = len(t_list)
# 传入一个时间列表
for i in range(n):
……
日期排序 冒泡排序加结构体
摘要:解题思路:注意事项:输出时%02d补齐0,否则左侧只会输出2不会输出02参考代码:#include<stdio.h>struct date{ int y; int m; int d;……
1227: 日期排序
摘要:解题思路:输入很简单,不用多说,我们把年月日做成一个小列表,塞进大列表里,然后再排序输出就可以了,很简单的一道题。注意事项:参考代码:n=[]while True: try: s=……
编写题解 1227: 日期排序
摘要:解题思路:注意事项:参考代码:lis=[]
while True:
try:
dat=list(map(str,input().split('/')))
……
日期排序(代码有点长,但很好理解)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Day{ int year; int month; int day;};int main(){ struct Day s[……
日期排序(C++) multiset
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<cstdio>
#include<set>
#include<string>
using namespac……