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

Ended

Participants:61

Verdict:Time Limit Exceeded
Score:50 / 100
Submitted:2019-09-01 14:14:44

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
// ccf.cpp :  "main" 
//
#include <iostream>
#include <map>
#include <numeric>
#include <algorithm>
#include <vector>
#include <map>
#include <unordered_map>
#include <queue>
using namespace std;
bool contains(int beg, int end, vector<pair<int, int>> triples) {
    for (auto& i : triples) {
        if (i.first >= beg && i.second <= end) {
            return true;
        }
    }
    return false;
}
int main() {
    string s;
    cin >> s;
    if (s.size() == 1) {
        cout << 1 << endl;
        return 0;
    }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX