文章
33
粉丝
78
获赞
3
访问
18.9k
//借鉴nicooy
#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
struct record {
string name;
string start;
double time;
};
bool asc(record a,record b){
if (a.time == b.time)
return a.start < b.start;
else
return a.time < b.time;
}
int main() {
int count = 0;
record rec[10000];
string temp;
while (getline(cin, temp)) {
if (temp == "")
break;
rec[count].name = temp;
rec[count].start = temp.substr(13,23);
rec[count].time = stod(...
登录后发布评论
暂无评论,来抢沙发