[Offer收割]编程练习赛28 register

Ended

Participants:277

Verdict:Accepted
Score:100 / 100
Submitted:2017-09-24 12:33:43

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <iostream>
#include <string>
#include <string.h>
#include <limits.h>
#include <unordered_set>
using namespace std;
struct node {
    int hour, minute, second;
    node() {
        hour = 0; minute = 0; second = 0;
    }
    node(int _hour, int _minute, int _second) {
        hour = _hour;
        minute = _minute;
        second = _second;
    }
};
bool smaller(const node& a, const node& b) {
    if(a.hour < b.hour)
        return true;
    if(a.hour > b.hour)
        return false;
    if(a.minute < b.minute)
        return true;
    if(a.minute > b.minute)
        return false;
    return a.second < b.second;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX