跳到正文

剪贴板

剪贴板 unvhyd2r

原文
剪贴板信息

剪贴板信息

收录
更新

原题:P5246 [集训队互测 2016] 消失的源代码。

C++
// i386-elf-gcc-4.7.2 (Debian 4.7.2-5)

#include <math.h>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>

// 804e4f4
bool pre = true;
// 804e5a0
int type;
// 804e5a4
int Case;

namespace A {
  // 8048a6c
  void Do() {
    int a;
    int b;
    // 8048a72
    std::scanf("%d%d", &a, &b);
    // 8048a8c
    std::printf("%d\n", a + b);
  }
}

namespace B {
  // 804c3b0
  const char point[] = "yfrbkgimujvphatdsnelozcxwq";
  // 804e5c0
  char dr[105000];

  // 8048ab0
  void Do() {
    // 8048ab6
    std::scanf("%s", dr + 1);
    // 8048aca
    int n = std::strlen(dr + 1);
    // 8048ad9
    if (pre && (n <= 0 || n > 10)) {
      // 8048af0
      std::puts("invalid input.");
      // 8048afc
      return;
    }
    // 8048afe
    for (int i = 1; i <= n; ++i) {
      // 8048b07
      std::putchar(point[dr[i] - 'a']);
    }
    // 8048b3b
    std::putchar('\n');
  }
}

namespace C {
  // 804c3ac
  const int mo = 233333;

  // 8048b49
  void Do() {
    int x;
    // 8048b50
    std::scanf("%d", &x);
    // 8048b63
    if (pre && (x < 0 || x > 20)) {
      // 8048b7d
      std::puts("invalid input.");
      // 8048b89
      return;
    }
    // 8048b8e
    long long p2 = x;
    // 8048b9c
    p2 *= x;
    // 8048bc7
    p2 %= mo;
    // 8048bef
    p2 *= 2016;
    // 8048c19
    p2 %= mo;
    // 8048c41
    long long p1 = x;
    // 8048c4f
    p1 *= 4;
    // 8048c62
    p1 %= mo;
    // 8048c8a
    long long p0 = 10;
    // 8048c98
    long long ans = p2 + p1 + p0;
    // 8048cb8
    ans %= mo;
    // 8048ce0
    std::cout << ans << std::endl;
  }
}

namespace D {
  // 804c3a0
  const long double pi = 3.14159265358979323846L;

  // 8048d1a
  void Do() {
    int x;
    // 8048d20
    std::scanf("%d", &x);
    // 8048d33
    if (pre && (x <= 0 || x > 50000)) {
      // 8048d4f
      std::puts("invalid input.");
      // 8048d5b
      return;
    }
    // 8048d5d
    long double y = x;
    // 8048d69
    y /= pi;
    // 8048d73
    y = sqrtl(y);
    // 8048d8f
    int ans = floorl(y);
    // 8048dbe
    std::printf("%d\n", ans);
  }
}

namespace E {
  // 804c39c
  const int N = 100500;
  // 8067fe8
  int n;
  // 8067fec
  int m;
  // 8068000
  int fa[N];
  // 80ca260
  int cc[N];

  // 8048ddd
  int getf(int x) {
    // 8048de3
    if (fa[x] != x) {
      // 8048df2
      fa[x] = getf(fa[x]);
    }
    // 8048e10
    return fa[x];
  }

  // 8048e1c
  void Do() {
    int i;
    // 8048e23
    std::scanf("%d%d", &n, &m);
    // 8048e3f
    for (i = 1; i <= n; ++i) {
      // 8048e48
      fa[i] = i;
    }
    // 8048e68
    std::memset(cc, 0, sizeof cc);
    // 8048e84
    while (m--) {
      int a;
      int b;
      // 8048e86
      std::scanf("%d%d", &a, &b);
      // 8048ea0
      a = getf(a);
      // 8048eae
      b = getf(b);
      // 8048ebc
      if (a != b) {
        // 8048ec6
        fa[a] = b;
      }
    }
    // 8048ee9
    if (pre && (n > 10 || m > 10)) {
      // 8048f08
      std::puts("invalid input.");
      // 8048f14
      return;
    }
    // 8048f19
    for (i = 1; i <= n; ++i) {
      // 8048f22
      ++cc[getf(i)];
    }
    // 8048f51
    long long ans = 0;
    // 8048f5f
    for (i = 1; i <= n; ++i) {
      // 8048f68
      long long c = cc[i];
      // 8048f7d
      c *= cc[i];
      // 8048faf
      ans += c;
    }
    // 8048fce
    std::cout << ans << std::endl;
  }
}

namespace F {
  // 804c394
  const int N = 100500;
  // 804c398
  const int M = 270000;
  // 812c4c0
  int point[N];
  // 818e720
  int to[M];
  // 82961e0
  int next[M];
  // 839dca0
  int len[M];
  // 84a5760
  int cc;
  // 84a5780
  int fa[N];
  // 85079e0
  int falen[N];
  // 8569c40
  int tot[N];
  // 85cbea0
  int depth[N];
  // 862e100
  int num[N];
  // 8690360
  int top[N];
  // 86f25c0
  int numx[N];
  // 8754810
  int n;
  // 8754814
  int m;
  // 8754820
  long long qz[N];

  // 8049008
  void AddEdge(int a, int b, int l) {
    // 804900b
    ++cc;
    // 8049018
    next[cc] = point[a];
    // 804902e
    point[a] = cc;
    // 804903e
    to[cc] = b;
    // 804904d
    len[cc] = l;
  }

  // 804905e
  void GetFa(int a) {
    // 8049064
    depth[a] = depth[fa[a]] + 1;
    // 8049082
    tot[a] = 1;
    // 8049090
    for (int i = point[a]; i; i = next[i]) {
      // 804909f
      int b = to[i];
      // 80490ac
      if (fa[a] != b) {
        // 80490bb
        fa[b] = a;
        // 80490c8
        falen[b] = len[i];
        // 80490dc
        GetFa(b);
        // 80490e7
        tot[a] += tot[b];
      }
    }
  }

  // 8049121
  void GetNum(int a, int topa, int numa) {
    int i;
    // 8049127
    num[a] = numa;
    // 8049134
    numx[numa] = a;
    // 8049141
    top[a] = topa;
    // 804914e
    ++numa;
    // 8049152
    i = point[a];
    // 804915f
    int max = 0;
    // 8049166
    while (i) {
      // 8049168
      int b = to[i];
      // 8049175
      if (fa[a] != b && tot[b] > tot[max]) {
        // 804919c
        max = b;
      }
      // 80491a2
      i = next[i];
    }
    // 80491ba
    if (!max)
      return;
    // 80491c4
    GetNum(max, topa, numa);
    // 80491dd
    numa += tot[max];
    // 80491ea
    for (i = point[a]; i; i = next[i]) {
      // 80491f9
      int b = to[i];
      // 8049206
      if (fa[a] != b && b != max) {
        // 804921d
        GetNum(b, b, numa);
        // 8049236
        numa += tot[b];
      }
    }
  }

  // 8049260
  void GetData() {
    int i;
    // 8049267
    std::scanf("%d%d", &n, &m);
    // 8049283
    std::memset(point, 0, sizeof point);
    // 804929f
    cc = 0;
    // 80492a9
    for (i = 1; i < n; ++i) {
      int a;
      int b;
      int l;
      // 80492b2
      std::scanf("%d%d%d", &a, &b, &l);
      // 80492d3
      AddEdge(a, b, l);
      // 80492ec
      AddEdge(b, a, l);
    }
    // 8049318
    GetFa(1);
    // 8049324
    GetNum(1, 1, 1);
    // 8049340
    for (i = 1; i <= n; ++i) {
      // 8049349
      qz[i] = falen[numx[i]];
    }
    // 8049383
    for (i = 1; i <= n; ++i) {
      // 804938c
      qz[i] += qz[i - 1];
    }
  }

  // 80493e9
  long long Find(int a, int b) {
    // 80493f0
    long long ans = 0;
    // 80493fe
    while (top[a] != top[b]) {
      // 8049403
      if (depth[top[a]] > depth[top[b]]) {
        // 8049429
        ans += qz[num[a]] - qz[num[top[a]] - 1];
        // 804946d
        a = fa[top[a]];
      } else {
        // 8049483
        ans += qz[num[b]] - qz[num[top[b]] - 1];
        // 80494c7
        b = fa[top[b]];
      }
    }
    // 80494fc
    if (depth[a] < depth[b]) {
      // 8049514
      ans += qz[num[b]] - qz[num[a]];
    } else {
      // 8049550
      ans += qz[num[a]] - qz[num[b]];
    }
    // 804958a
    return ans;
  }

  // 8049596
  void DoIt() {
    long long ans = 0;
    // 804959c
    while (m--) {
      int a;
      int b;
      // 80495ac
      std::scanf("%d%d", &a, &b);
      // 80495c6
      ans ^= Find(a, b);
    }
    // 80495f4
    if (pre && (n > 10 || m > 10)) {
      // 8049613
      std::puts("invalid input.");
      // 804961f
      return;
    }
    // 8049621
    std::cout << ans << std::endl;
  }

  // 8049657
  void Do() {
    // 804965d
    GetData();
    // 8049662
    DoIt();
  }
}

namespace G {
  // 804c384
  const int N = 100500;
  // 804c388
  const int M = 270000;
  // 804c38c
  const int T = 0x20000;
  // 804c390
  const int inf = 1987654321;
  // 8818cc0
  int point[N];
  // 887af20
  int to[M];
  // 89829e0
  int next[M];
  // 8a8a4a0
  int len[M];
  // 8b91f60
  int cc;
  // 8b91f80
  int fa[N];
  // 8bf41e0
  int falen[N];
  // 8c56440
  int tot[N];
  // 8cb86a0
  int depth[N];
  // 8d1a900
  int num[N];
  // 8d7cb60
  int top[N];
  // 8ddedc0
  int numx[N];
  // 8e41010
  int n;
  // 8e41014
  int m;
  // 8e41020
  int tree[M];

  // 8049669
  void AddEdge(int a, int b, int l) {
    // 804966c
    ++cc;
    // 8049679
    next[cc] = point[a];
    // 804968f
    point[a] = cc;
    // 804969f
    to[cc] = b;
    // 80496ae
    len[cc] = l;
  }

  // 80496bf
  void GetFa(int a) {
    // 80496c5
    depth[a] = depth[fa[a]] + 1;
    // 80496e3
    tot[a] = 1;
    // 80496f1
    for (int i = point[a]; i; i = next[i]) {
      // 8049700
      int b = to[i];
      // 804970d
      if (fa[a] != b) {
        // 804971c
        fa[b] = a;
        // 8049729
        falen[b] = len[i];
        // 804973d
        GetFa(b);
        // 8049748
        tot[a] += tot[b];
      }
    }
  }

  // 8049782
  void GetNum(int a, int topa, int numa) {
    int i;
    // 8049788
    num[a] = numa;
    // 8049795
    numx[numa] = a;
    // 80497a2
    top[a] = topa;
    // 80497af
    ++numa;
    // 80497b3
    i = point[a];
    // 80497c0
    int max = 0;
    // 80497c7
    while (i) {
      // 80497c9
      int b = to[i];
      // 80497d6
      if (fa[a] != b && tot[b] > tot[max]) {
        // 80497fd
        max = b;
      }
      // 8049803
      i = next[i];
    }
    // 804981b
    if (!max)
      return;
    // 8049825
    GetNum(max, topa, numa);
    // 804983e
    numa += tot[max];
    // 804984b
    for (i = point[a]; i; i = next[i]) {
      // 804985a
      int b = to[i];
      // 8049867
      if (fa[a] != b && b != max) {
        // 804987e
        GetNum(b, b, numa);
        // 8049897
        numa += tot[b];
      }
    }
  }

  // 80498c1
  void GetData() {
    int i;
    // 80498c7
    std::scanf("%d%d", &n, &m);
    // 80498e3
    std::memset(point, 0, sizeof point);
    // 80498ff
    cc = 0;
    // 8049909
    for (i = 1; i < n; ++i) {
      int a;
      int b;
      int l;
      // 8049912
      std::scanf("%d%d%d", &a, &b, &l);
      // 8049933
      AddEdge(a, b, l);
      // 804994c
      AddEdge(b, a, l);
    }
    // 8049978
    GetFa(1);
    // 8049984
    GetNum(1, 1, 1);
    // 80499a0
    for (i = 1; i <= n; ++i) {
      // 80499a9
      tree[T + i] = falen[numx[i]];
    }
    // 80499dd
    for (i = T - 1; i > 0; --i) {
      // 80499e6
      tree[i] = std::min(tree[i * 2], tree[i * 2 + 1]);
    }
  }

  // 8049a37
  int MinV(int a, int b) {
    // 8049a3d
    a += T - 1;
    // 8049a44
    b += T + 1;
    // 8049a4b
    int v = inf;
    // 8049a52
    while ((a ^ b) != 1) {
      // 8049a54
      if (a % 2 == 0) {
        // 8049a5e
        v = std::min(v, tree[a ^ 1]);
      }
      // 8049a80
      if (b % 2 == 1) {
        // 8049a97
        v = std::min(v, tree[b ^ 1]);
      }
      // 8049ab9
      a >>= 1;
      // 8049abc
      b >>= 1;
    }
    // 8049ad1
    return v;
  }

  // 8049ad6
  int Find(int a, int b) {
    // 8049adc
    int v = inf;
    // 8049ae3
    while (top[a] != top[b]) {
      // 8049ae8
      if (depth[top[a]] > depth[top[b]]) {
        // 8049b0e
        v = std::min(v, MinV(num[top[a]], num[a]));
        // 8049b4f
        a = fa[top[a]];
      } else {
        // 8049b65
        v = std::min(v, MinV(num[top[b]], num[b]));
        // 8049ba6
        b = fa[top[b]];
      }
    }
    // 8049bdb
    if (depth[a] < depth[b]) {
      // 8049bf3
      v = std::min(v, MinV(num[a] + 1, num[b]));
    } else if (depth[a] > depth[b]) {
      // 8049c4a
      v = std::min(v, MinV(num[b] + 1, num[a]));
    }
    // 8049c87
    return v;
  }

  // 8049c8c
  void DoIt() {
    // 8049c92
    int ans = 0;
    // 8049c99
    while (m--) {
      int a;
      int b;
      // 8049c9b
      std::scanf("%d%d", &a, &b);
      // 8049cb5
      ans ^= Find(a, b);
    }
    // 8049ce0
    if (pre && (n > 10 || m > 10)) {
      // 8049cff
      std::puts("invalid input.");
      // 8049d0b
      return;
    }
    // 8049d0d
    std::cout << ans << std::endl;
  }

  // 8049d3c
  void Do() {
    // 8049d42
    GetData();
    // 8049d47
    DoIt();
  }
}

namespace H {
  // 804c380
  const int N = 1005000;
  // 8f48ae0
  int val[N];

  // 8049d4e
  void Do() {
    int i;
    int j;
    int n;
    int m;
    // 8049d55
    std::scanf("%d%d", &n, &m);
    // 8049d6f
    if (pre && (n > 20 || m > 20)) {
      // 8049d8a
      std::puts("invalid input.");
      // 8049d96
      return;
    }
    // 8049d9b
    for (i = 1; i <= n; ++i) {
      // 8049da4
      val[i] = i;
    }
    // 8049dc2
    for (i = 1; i <= n; ++i) {
      // 8049dcb
      for (j = i * 2; j <= n; j += i) {
        // 8049dd5
        val[j] -= val[i];
      }
    }
    // 8049e19
    long long ans = 0;
    // 8049e27
    for (i = 1; i <= n; ++i) {
      // 8049e33
      long long c = val[i];
      // 8049e48
      c *= n / i;
      // 8049e7b
      c *= m / i;
      // 8049eae
      ans += c;
    }
    // 8049ecf
    std::cout << ans << std::endl;
  }
}

namespace I {
  // 804c378
  const int N = 1000500;
  // 804c37c
  const int M = 2000500;
  // 931e200
  int n;
  // 931e220
  int xu[N];
  // 96ef300
  int sa[N];
  // 9ac03e0
  int rank[M];
  // a261dc0
  int sec[N];
  // a632ea0
  int cc[N];
  // aa03f80
  int h[N];

  // 8049f09
  bool cmp(int a, int b) {
    // 8049f0c
    return xu[a] < xu[b];
  }

  // 8049f27
  void Do() {
    int i;
    // 8049f2d
    std::scanf("%d", &n);
    // 8049f41
    for (i = 1; i <= n; ++i) {
      // 8049f4a
      std::scanf("%d", xu + i);
    }
    // 8049f78
    xu[n + 1] = 0;
    // 8049f8b
    if (pre && (n <= 0 || n > 10)) {
      // 8049fa9
      std::puts("invalid input.");
      // 8049fb5
      return;
    }
    // 8049fba
    for (i = 1; i <= n; ++i) {
      // 8049fc3
      sa[i] = i;
    }
    // 8049fe3
    std::sort(sa + 1, sa + (n + 1), cmp);
    // 804a00b
    int m = 0;
    // 804a012
    for (i = 1; i <= n; ++i) {
      // 804a01b
      ++m;
      // 804a01f
      rank[sa[i]] = m;
      // 804a033
      while (i < n && xu[sa[i]] == xu[sa[i + 1]]) {
        // 804a035
        ++i;
        // 804a039
        rank[sa[i]] = m;
      }
    }
    // 804a0a7
    for (int b = 1; m < n; b <<= 1) {
      // 804a0b3
      for (i = 1; i <= n; ++i) {
        // 804a0bc
        ++cc[rank[i + b]];
      }
      // 804a0ef
      for (i = 1; i <= m; ++i) {
        // 804a0f8
        cc[i] += cc[i - 1];
      }
      // 804a12c
      for (i = 1; i <= n; ++i) {
        // 804a135
        sec[cc[rank[i + b]]--] = i;
      }
      // 804a17a
      for (i = 0; i <= m; ++i) {
        // 804a183
        cc[i] = 0;
      }
      // 804a1a2
      for (i = 1; i <= n; ++i) {
        // 804a1ab
        ++cc[rank[i]];
      }
      // 804a1d9
      for (i = 1; i <= m; ++i) {
        // 804a1e2
        cc[i] += cc[i - 1];
      }
      // 804a216
      for (i = n; i > 0; --i) {
        // 804a220
        sa[cc[rank[sec[i]]]--] = sec[i];
      }
      // 804a26a
      for (i = 0; i <= m; ++i) {
        // 804a273
        cc[i] = 0;
      }
      // 804a292
      m = 0;
      // 804a299
      for (i = 1; i <= n; ++i) {
        // 804a2a5
        ++m;
        // 804a2a9
        sec[sa[i]] = m;
        // 804a2bd
        while (i < n && rank[sa[i]] == rank[sa[i + 1]] && rank[b + sa[i]] == rank[b + sa[i + 1]]) {
          // 804a2bf
          ++i;
          // 804a2c3
          sec[sa[i]] = m;
        }
      }
      // 804a368
      for (i = 1; i <= n; ++i) {
        // 804a371
        rank[i] = sec[i];
      }
    }
    // 804a3ae
    for (i = 1; i <= n; ++i) {
      // 804a3ba
      if (rank[i] == 1)
        continue;
      // 804a3cd
      h[i] = std::max(0, h[i - 1] - 1);
      // 804a405
      while (xu[i + h[i]] == xu[sa[rank[i] - 1] + h[i]]) {
        // 804a407
        ++h[i];
      }
    }
    // 804a47e
    long long ans = 0;
    // 804a48c
    for (i = 1; i <= n; ++i) {
      // 804a495
      ans += i;
    }
    // 804a4b6
    for (i = 1; i <= n; ++i) {
      // 804a4bf
      ans -= h[i];
    }
    // 804a4e7
    std::cout << ans << std::endl;
  }
}

namespace J {
  struct Node {
    double x;
    double y;
  };

  // 804c374
  const int N = 1005000;
  // add5060
  Node xu[N];
  // bd2ace0
  Node zhan[N];
  // cc80960
  Node jie[N];
  // dbd65e0
  int top;
  // dbd65e4
  int n;
  // dbd65e8
  double ans;

  // 804a513
  bool cmpx(Node a, Node b) {
    // 804a516
    return a.x < b.x;
  }

  // 804a526
  bool cmpy(Node a, Node b) {
    // 804a529
    return a.y < b.y;
  }

  // 804a539
  double dis(Node a, Node b) {
    // 804a53f
    double d = (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
    // 804a568
    d = sqrt(d);
    // 804a576
    return d;
  }

  // 804a57b
  void Solve(int l, int r) {
    // 804a581
    if (l == r)
      return;
    // 804a58d
    int m = (l + r) >> 1;
    // 804a59a
    double mx = xu[m].x;
    // 804a5aa
    Solve(l, m);
    // 804a5bc
    Solve(m + 1, r);
    // 804a5d1
    top = 0;
    // 804a5db
    int i = l;
    // 804a5e1
    int j = m + 1;
    // 804a5ea
    int k = l;
    // 804a5f0
    while (i <= m && j <= r) {
      // 804a5f5
      if (xu[i].y < xu[j].y) {
        // 804a61c
        jie[k] = xu[i];
        // 804a649
        ++k;
        // 804a64d
        if (mx - xu[i].x < ans) {
          // 804a66c
          ++top;
          // 804a679
          zhan[top] = xu[i];
        }
        // 804a6a8
        ++i;
      } else {
        // 804a6b1
        jie[k] = xu[j];
        // 804a6de
        ++k;
        // 804a6e2
        if (xu[j].x - mx < ans) {
          // 804a6ff
          ++top;
          // 804a70c
          zhan[top] = xu[j];
        }
        // 804a73b
        ++j;
      }
    }
    // 804a763
    while (i <= m) {
      // 804a768
      jie[k] = xu[i];
      // 804a795
      ++k;
      // 804a799
      if (mx - xu[i].x < ans) {
        // 804a7b8
        ++top;
        // 804a7c5
        zhan[top] = xu[i];
      }
      // 804a7f4
      ++i;
    }
    // 804a809
    while (j <= r) {
      // 804a80e
      jie[k] = xu[j];
      // 804a83b
      ++k;
      // 804a83f
      if (xu[j].x - mx < ans) {
        // 804a85c
        ++top;
        // 804a869
        zhan[top] = xu[j];
      }
      // 804a898
      ++j;
    }
    // 804a8ad
    for (i = l; i <= r; ++i) {
      // 804a8b5
      xu[i] = jie[i];
    }
    // 804a8f3
    for (i = 1; i <= top; ++i) {
      // 804a8ff
      j = i + 1;
      // 804a908
      while (i + 5 >= j && j <= top) {
        // 804a90a
        double c = dis(zhan[i], zhan[j]);
        // 804a95d
        if (c < ans) {
          // 804a96f
          ans = c;
        }
        // 804a978
        ++j;
      }
    }
  }

  // 804a9c1
  void Do() {
    // 804a9c7
    std::scanf("%d", &n);
    // 804a9db
    for (int i = 1; i <= n; ++i) {
      // 804a9e4
      std::scanf("%lf%lf", &xu[i].x, &xu[i].y);
    }
    // 804aa24
    if (pre && (n <= 1 || n > 10)) {
      // 804aa43
      std::puts("invalid input.");
      // 804aa4f
      return;
    }
    // 804aa54
    std::sort(xu + 1, xu + (n + 1), cmpx);
    // 804aa7c
    ans = dis(xu[1], xu[2]);
    // 804aace
    Solve(1, n);
    // 804aae3
    printf("%.3f\n", ans);
  }
}

namespace K {
  // 804aafb
  void Do() {
    // 804ab01
    std::puts("invalid input!");
  }
}

// 804ab0f
void Do(int type) {
  // 804ab15
  if (type == 0) {
    // 804ab1b
    A::Do();
  }
  // 804ab20
  if (type == 1) {
    // 804ab26
    B::Do();
  }
  // 804ab2b
  if (type == 2) {
    // 804ab31
    C::Do();
  }
  // 804ab36
  if (type == 3) {
    // 804ab3c
    D::Do();
  }
  // 804ab41
  if (type == 4) {
    // 804ab47
    E::Do();
  }
  // 804ab4c
  if (type == 5) {
    // 804ab52
    F::Do();
  }
  // 804ab57
  if (type == 6) {
    // 804ab5d
    G::Do();
  }
  // 804ab62
  if (type == 7) {
    // 804ab68
    H::Do();
  }
  // 804ab6d
  if (type == 8) {
    // 804ab73
    I::Do();
  }
  // 804ab78
  if (type == 9) {
    // 804ab7e
    J::Do();
  }
  // 804ab83
  if (type == 10) {
    // 804ab89
    K::Do();
  }
}

// 804ab90
int main() {
  // 804ab99
  std::scanf("%d%d", &type, &Case);
  // 804abb5
  while (Case--) {
    // 804abb7
    Do(type);
  }
  // 804abda
  return 0;
}