Repositories (1)

atcoder_charter
16 snippets stored for this repo
C++ IconC++
pq_AB.emplace(make_pair(-(a + b), -1));
  }
  vector<int> K(n);
  int cunt = 0;
  int cunt_pre = 0;
  int ans = 0;
  int cur_idx;
C++ IconC++
}
  int cunt = 0;  // 大きい数字の種類
  while (A_set.size()) {
C++ IconC++
if (!A_map[a]) {
      A_map[a] = cunt;
      cunt++;
C++ IconC++
}
  }
  int cunt = idx_right - idx_left;
  REP(i, cunt / 2) {
    int left_i = idx_left + i;
    int right_i = idx_right - 1 - i;
    if (s[left_i] != s[right_i]) {
C++ IconC++
int cunt = 0;  // n が p_i の何乗か
      ll _n = n;
C++ IconC++
_n /= p_i;
        cunt++;
      }
C++ IconC++
REP(i, h) { cin >> C[i]; }
  int cunt = 0;
  vector<vector<int>> D(h, vector<int>(w, inf));
C++ IconC++
D[ny][nx] = D[p.first][p.second] + 1;
        chmax(cunt, D[ny][nx]);
      }
C++ IconC++
}

  for (int i = 0; i < n; i++) {
    for (int cunt = 0; cunt <= i; cunt++) {
      // i + 1で表のとき
      chmax(dp[i + 1][cunt + 1], dp[i][cunt] + (ll)X[i] + (ll)CYmap[cunt + 1]);
      // i + 1で裏のとき
C++ IconC++
string n;
  cin >> n;
  int cunt;
  cunt = 4 - n.size();

  string s = "";
C++ IconC++
cin >> n;
    int cunt = 0;
    for (int i = 0; i < n; i++) {
C++ IconC++
if (a % 2) {
        cunt++;
      }
C++ IconC++
#define debug(x) std::cerr << #x << ": " << x << '\n'
void dfs(int node, int cunt, std::vector<bool> &visited,
         std::vector<std::pair<int, int>> &Ans,
C++ IconC++
// 葉のとき
    cunt++;
    Ans[node] = std::pair<int, int>(cunt, cunt);
C++ IconC++
ll x_j = XY[j].first, y_j = XY[j].second;
      int cunt = 2;  // 点iと点jの直線上にある点の数
      List.clear();
C++ IconC++
if ((y_i - y_j) * (x_k - x_j) == (y_k - y_j) * (x_i - x_j)) {
          cunt++;
          List.emplace_back(k);