题解 1227: 日期排序

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

日期排序 (C语言代码)

摘要:解题思路:先自定义两个函数,一个比较优先级,一个进行交换。假设输入K组,接着遍历K组数据,两两进行比较,最后打印输出,类似于快速排序。注意事项:参考代码:#include<stdio.h>int x[……

1227: 日期排序

摘要:解题思路:注意事项:参考代码:arr = [] while True:     try:         arr.append(list(map(str, input().split(&#39;……

日期排序(c++代码使用stl库)

摘要:解题思路:用sstream类分割字符串,再用vector容器存储起来,依次比较。注意事项:参考代码:#include<iostream> #include<string> #include<vec……

日期排序 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct p{ int a,b,c;}s[1000],t;int main(){ char ss[20]; int i,j,k,……