文章

13

粉丝

168

获赞

12

访问

12.2k

头像
大模拟——三部走(1.数据输入、2.数据处理、3.数据输出)
P1227 北京大学机考题
发布于2023年3月27日 00:19
阅读数 2.8k

 

 

#include <bits/stdc++.h>
using namespace std;

struct run_log{
    string name,cost_time_str;
    int y,m,d,h,min,s,ms;
    double cost_time;
    string block1,block2,block3;
};

bool cmp(run_log l1,run_log l2){
    if(l1.cost_time<l2.cost_time) return true;
    else if(l1.cost_time>l2.cost_time) return false;
    else{
        if(l1.y<l2.y) return true;
        else if(l1.y>l2.y) return false;
        else{
            if(l1.m<l2.m) return true;
            else if(l1.m>l2.m) return false;
            else{
                if(l1.d<l2.d) return true;
                else if(l1.d>l2.d) return false;
                else{
                    if(l1.h<l2.h) return true;
                    else if(l1.h>l2.h) return false;
                    else{
                        if(l1.min<l2.min) return true;
                        else if(l1.min>l2.min) return false;
                        else{
    ...
登录查看完整内容


登录后发布评论

暂无评论,来抢沙发