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

Ended

Participants:277

Verdict:Accepted
Score:100 / 100
Submitted:2017-09-24 12:46:06

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 <cmath>
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <set>
#include <vector>
#include <map>
#include <string>
using namespace std;
typedef long long ll;
int interval = 24 * 3600;
ll get_sec(vector<int> vec) {
    int h = 10 * vec[0] + vec[1];
    int m = 10 * vec[2] + vec[3];
    int s = 10 * vec[4] + vec[5];
    return h * 3600 + m * 60 + s;
}
vector<int> get_vec(int t) {
    if (t >= interval) {
        t -= interval;
    }
    vector<int> re(6, 0);
    int h = t / 3600;
    t %= 3600;
    int m = t / 60;
    int s = t % 60;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX