hiho week 176 register

Ended

Participants:281

Verdict:Accepted
Score:100 / 100
Submitted:2017-11-11 23:07:47

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 <bits/stdc++.h>
using namespace std;
const int N = 26;
struct Node {
  int val, mark;
};
int a[N];
char s[1000000];
vector<Node> op[N];
int main() {
  int n;
  set<char> mySet;
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    scanf("%s", s);
    int len = strlen(s);
    for (int ii = 0; ii < len; ++ii) {
      if (s[ii] >= '0' && s[ii] <= '9') {
        int sum = 0, j = ii;
        while (j < len && s[j] >= '0' && s[j] <= '9') {
          sum = sum * 10 + s[j] - '0';
          ++j;
        }
        ii = j - 1;
        op[i].push_back({sum, -1});
      }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX