Repositories (1)
atcoder_charter
16 snippets stored for this repo
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;
}
int cunt = 0; // 大きい数字の種類
while (A_set.size()) {
if (!A_map[a]) {
A_map[a] = cunt;
cunt++;
}
}
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]) {
int cunt = 0; // n が p_i の何乗か
ll _n = n;
_n /= p_i;
cunt++;
}
REP(i, h) { cin >> C[i]; }
int cunt = 0;
vector<vector<int>> D(h, vector<int>(w, inf));
D[ny][nx] = D[p.first][p.second] + 1;
chmax(cunt, D[ny][nx]);
}
}
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で裏のとき
string n;
cin >> n;
int cunt;
cunt = 4 - n.size();
string s = "";
cin >> n;
int cunt = 0;
for (int i = 0; i < n; i++) {
if (a % 2) {
cunt++;
}
#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,
// 葉のとき
cunt++;
Ans[node] = std::pair<int, int>(cunt, cunt);
ll x_j = XY[j].first, y_j = XY[j].second;
int cunt = 2; // 点iと点jの直線上にある点の数
List.clear();
if ((y_i - y_j) * (x_k - x_j) == (y_k - y_j) * (x_i - x_j)) {
cunt++;
List.emplace_back(k);