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

Ended

Participants:154

Verdict:Time Limit Exceeded
Score:70 / 100
Submitted:2018-04-08 12:25:49

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 <array>
#include <cmath>
#include <cstring>
#include <algorithm>
#include <string>
#include <cstdio>
#include <set>
#include <vector>
#include <queue>
#include <stack>
using std::cin; using std::cout;
using std::array;
using std::min; using std::max;
using std::string;
using std::set; using std::vector;
using std::queue; using std::stack;
typedef long long LL;
bool isOk(string str) {
    int len = str.length();
    int mid = len>>1;
    for (int i=0; i<mid; ++i) {
        if (str[i] != str[len-i-1]) return false;
    }
    return true;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX