B - Which is ahead? (abc342 B) 题目大意 一排人。 mm个询问,每个询问问两个人,谁在左边。 解题思路 记录一下每个人的下标,然后对于每个询问比较下标大小即可。 神奇的代码 #include<bits/stdc++.h> usingnamespacestd; usingLL =longlong; intmain(void){ ios::sync_with_stdio(false); cin.tie(0)...
· AtCoder Beginner Contest 342 · Atcoder ABC 342 全题解 · ABC342 阅读排行: · 自荐:开源截图工具ScreenCapture:超多控制指令,支持截长图 · 实际工作中 Git Commit 代码提交规范是什么样的? · ASP.NET Core EFCore 属性配置与DbContext 详解 · dotnet-trace 分析.net程序性能 · 基于li...
#include <bits/stdc++.h> using namespace std; const int N = 2e5 + 5; int num[N], ans[N]; string s; int main() { cin >> s; int n = s.size(); for (int i = 0; i < n; i++) { num[s[i] - 'a']++; if (num[s[i] - 'a'] == 1) ans[s[i] - 'a'] ...
AtCoder Beginner Contest 402 A-F 简易题解,如果题解中有什么问题可以找我反馈,谢谢! A.CBC直接枚举整个字符串,只输出大写字母即可。 int main(){ string s; cin >> s; for(int i = 0 ; i < s.size(); i++){… 枫落发表于Atcod... AtCoder Beginner Contest 403 A-G 简易题解...
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, 视频播放量 1895、弹幕量 2、
·AtCoder Beginner Contest (ABC) 这是最频繁且最简单的入门赛,通常情况下每月至少举行2次。2019年4月27日(含)之前,每场比赛共4题,时长100分钟,满分1000分且Rating超过1199的选手不计Rating值。自2019年5月19日起改版升级为6道题目,时长不变,满分2100分且Rating值超过1999的选手不计Rating值。改版之后比赛质量...
AtCoder Beginner Contest 242 补题记录 https://blog.csdn.net/bunny_1024/article/details/123305209 零点工作室暑假集训(AtCoder--ABC242) https://blog.csdn.net/weixin_73807663/article/details/131714591 AtCoder Beginner Contest 242, Rank 1 https://www.bilibili.com/video/BV12q4y1471K/ ...
AtCoder Beginner Contest 042题解(ABCD) 传送门 A - Iroha and Haiku (ABC Edition) 签到题,直接判断是否是两个 5 5 5,一个 7 7 7。 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e5+5,M=1e6+5,inf=0x3f3f3f3f,mod=1e9+7; ...
AtCoder Beginner Contest 042题解(ABCD) 传送门 A - Iroha and Haiku (ABC Edition) 签到题,直接判断是否是两个5 55,一个7 77。 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e5+5,M=1e6+5,inf=0x3f3f3f3f,mod=1e9+7;...
AtCoder Beginner Contest 343(A-D) Harryxxy关注IP属地: 江苏 0.0892024.03.03 00:12:51字数117阅读79 A - Wrong Answer 签到题 数据随便填 #include<iostream> using namespace std; int A, B; int c; int ans; int main() { cin >> A >> B; c = A + B; if (c == 0) { ans = 1;...