{ int a, b, c; std::cin >> a >> b >> c; a--, b--; g[a].push_back({b, c}); g[b].push_back({a, c}); } const ll inf = 1e18; std::vector dp(1 << (k - 1), std::vector<ll>(n + 1, inf)); for (int i = 0; i < k - 1; i++) { dp[1 << ...
Code #include <bits/stdc++.h> #define int long long #define endl '\n' using namespace std; const int N = 1e5 + 10; const int INF = 0x3f3f3f3f3f3f3f3f; int a[N]; int n, q; bool check(int mid, int b, int k) { // 求解[b-mid, b+mid] 包含多少个点 int l = lower...
{ int n, m; cin >> n >> m; int sx, sy; cin >> sx >> sy; vector<vector<char>> g(n + 1, vector<char>(m + 1)); for (int i = 1; i <= n; i++) { for (int j = 1; j <= m; j++) { cin >> g[i][j]; } } string op; cin >> op; for (int i = 0...
AtCoder Beginner Contest 364 A - Glutton Takahashi (abc364 A) 题目大意 给定nn个字符串,问是否有两个相邻的sweet。 解题思路 遍历判断当前字符串与上一个字符串是否都为sweet即可。 神奇的代码 #include<bits/stdc++.h> usingnamespacestd; usingLL =longlong; intmain(void){ ios::sync_with_stdio(fal...
·AtCoder Beginner Contest (ABC) 这是最频繁且最简单的入门赛,通常情况下每月至少举行2次。2019年4月27日(含)之前,每场比赛共4题,时长100分钟,满分1000分且Rating超过1199的选手不计Rating值。自2019年5月19日起改版升级为6道题目,时长不变,满分2100分且Rating值超过1999的选手不计Rating值。改版之后比赛质量...
3. AtCoder Beginner Contest 365 补题记录(A~E,G)(1) 4. Pinely Round 4 (Div. 1 + Div. 2) 补题记录(A~F)(1) 5. AtCoder Beginner Contest 364 补题记录(A~F)(1) 6. AtCoder Beginner Contest 361 补题记录(A~F)(1) 推荐...
[AtCoder Beginner Contest 365](https://atcoder.jp/contests/abc365) 题解 ABC365的比赛题解,我做出G题了,但暂时不发,需要的请私信 私信前请看:https://www.luogu.com.cn/paste/lowgb1lx ### A - Leap Year [翻](https://blog.csdn.net/qianzhima2012/article/details/141070004?spm=1001.2014.3001....
AtCoder Beginner Contest 348 A-G 题目解析TLE_Automat 立即播放 打开App,流畅又高清100+个相关视频 更多326 -- 48:06 App AtCoder Beginner Contest 352 A-G 题目解析 542 3 34:46 App AtCoder Beginner Contest 361 A-G 题目详解 411 -- 1:07:58 App AtCoder Beginner Contest 349 A-F 题目...
AtCoder Beginner Contest 342 A-G 讲解比赛地址:https://atcoder.jp/contests/abc342比赛时间: 2024-02-24(Sat) 20:00 - 2024-02-24(Sat) 21:40 (当地时间) (100 minutes)A Yay!:水题B Which is ahead?:水题C Many Replacement:模拟D S, 视频播放量 1857、弹幕量 2、
Did you enjoy the AtCoder Beginner Contest 128? A Japanese editorial is already out, but unfortunately there is no English editorial, so I translated it into English experimentally. Note that this is an unofficial one; AtCoder has no responsibility for this editorial. Also, I didn't do ...