AtCoder Beginner Contest 398 被 D 创飞 比赛实录 ABCE 63播放 Codeforces Round #1009 (Div. 3) 赛后十五分钟过了 F,赛时过就能提高几百名 T_T 306播放 AtCoder Beginner Contest 396 E 在赛时最后五分钟才发现题读错了 109播放 AtCoder Beginner Con
AtCoder Beginner Contest 045 题解 比赛链接:https://atcoder.jp/contests/abc045A - Trapezoids题目大意: 告诉你题型的上底、下底、高,求面积。解题思路: S=(a+b)⋅h2S=(a+b)⋅h2示例程序:#include <bits/stdc++.h> using namespace std; int a, b, h; int main() { cin >> a >> b ...
intdu[N];intf[N];intfind(intx){if(f[x]==x)returnx;returnf[x]=find(f[x]);}/*1. 判断给定图,是否联通 dfs并查集2. 判断每个点的度数是不是2*/intmain(){intn,m;cin>>n>>m;for(inti=1;i<=n;i++)f[i]=i;for(inti=1;i<=m;i++){intu,v;cin>>u>>v;intfu=find(u),fv...
AtCoder Beginner Contest 045 题解 https://atcoder.jp/contests/abc045 A - Trapezoids 题目大意: 告诉你题型的上底、下底、高,求面积。 解题思路: \(S = \frac{(a+b) \cdot h}{2}\) 示例程序: #include <bits/stdc++.h> using namespace std; int a, b, h; int main() { ...
发表于AtCod... AtCoder Beginner Contest 405 A-F 简易题解,如果题解中有什么问题可以找我反馈,谢谢! A.Is it rated?直接按照题目条件判断即可 int main(){ int x, y; cin >> x >> y; if(y == 1 && 1600 <= x … 枫落发表于Atcod......
AtCoder Beginner Contest 045(ABCD)题解 A - Trapezoids 思路:求梯形面积,显然 s = ( a + b ) h 2 s=\dfrac{(a+b)h}{2} s=2(a+b)h #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 401(ABC401) A~F A - Status Code如果S∈[200,299]S∈[200,299]则输出Success,否则输出Failure。时间复杂度O(1)O(1)。点击查看代码 #include<bits/stdc++.h> using namespace std; int n; signed main(){ cin>>n; if(n>=200&&n<=299) cout<<"Success"; ...
·AtCoder Beginner Contest (ABC) 这是最频繁且最简单的入门赛,通常情况下每月至少举行2次。2019年4月27日(含)之前,每场比赛共4题,时长100分钟,满分1000分且Rating超过1199的选手不计Rating值。自2019年5月19日起改版升级为6道题目,时长不变,满分2100分且Rating值超过1999的选手不计Rating值。改版之后比赛质量...
本文最后更新于 213 天前,其中的信息可能已经有所发展或是发生改变。 A - Sequence of Strings Original Link 题目大意: 输入N个字符串,倒序输出。 思想: 签到题。 代码: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 #include<iostream>#include<cstring>#include<cstdio>#include<algorithm>#include<c...
AtCoder Beginner Contest 343 E - 7x7x7 总结 https://www.bilibili.com/opus/904707149791232007 AtCoder Beginner Contest 343 E(暴力枚举 体积计算) https://zhuanlan.zhihu.com/p/685021539 atcoder beginner contest 343 F https://zhuanlan.zhihu.com/p/684999508 ...