「AtCoder Beginner Contest 170」题解 Description Link D Link 题意:现有一个长度为 nn 的序列 AA,请你输出满足以下条件的所有整数 AiAi 的数量: 对于每一个整数 jj,(1≤j≤n1≤j≤n且i≠ji≠j) , Ai≠0(modAj)Ai≠0(modAj)。 其中1≤n≤2×1051≤n≤2×105。 Solution:题目即求数列中与其他...
【比赛】 AtCoder Beginner Contest 170 题意/题解 A Five Variables 题意:给你五个数,判断哪个是 00 题解:边输入边判断 B Crane and Turtle 题意:有两种动物,一种是鹤,有两条腿,另一种是乌龟,有四条腿,现在告诉你有 xx 个动物 yy 条腿,问你可不可能。 题解:暴力枚举。 C Forbidden List 题意:给...
对于每个 kindergarden 我们需要一个可以高速插入、高速删除、高速查询最大值的容器。 C++ 的 multiset 符合所需。 使用 c++ 的 multiset 要注意的一点是 set.erase(val) 会删除容器中所有值为 val 的 entries,若只想删除一个值为val 的 e...
【比赛】 AtCoder Beginner Contest 171题意/题解 Aαlphabet 题意:输入一个字母,如果是大写输出 (A) 小写输出 (a)。 题解:按题目说的做 B Mix Juice 题意:给你 (n) 个数,输出前 (k) 大的数的和 题解:排序。 C One Quadrillion and One Dalmatians 题意:给你一个数,类似转换成 (26) 进制。
AtCoder Beginner Contest 171 题解 A #include<bits/stdc++.h> using namespace std; int main(){ char t; cin>>t; putchar(islower(t)? 'a': 'A'); return 0; } 1. 2. 3. 4. 5. 6. 7. 8. B #include<bits/stdc++.h> using namespace std;...
·AtCoder Beginner Contest (ABC) 这是最频繁且最简单的入门赛,通常情况下每月至少举行2次。2019年4月27日(含)之前,每场比赛共4题,时长100分钟,满分1000分且Rating超过1199的选手不计Rating值。自2019年5月19日起改版升级为6道题目,时长不变,满分2100分且Rating值超过1999的选手不计Rating值。改版之后比赛质量...
C 思路:二进制枚举 for(int i=0;i<(1<<h);i++) for(int j=0;j<(1<<w);j++) 二进制每次+1就可以暴力遍历每种情况出现的可能性
We will hold AtCoder Beginner Contest 199(Sponsored by Panasonic). ,satashunYoshikaMiyafuji Rated range: ~ 1999 The point values will be 100-200-300-400-500-600. We are looking forward to your participation! If any of the vertices of a component have degree 3 or higher so our total answ...
Atcoder beginner contest 317, ABCDE https://www.bilibili.com/video/BV1614y1C7Bx/ AtCoder Beginner Contest 317 https://www.bilibili.com/video/BV1Cu4y1e7VR/ https://www.bilibili.com/video/BV1hu4y1D7pz/ https://www.bilibili.com/video/BV1D14y1C7wq/ https://www.bilibili.com/video/BV...
We will hold AtCoder Beginner Contest 166. Contest URL: https://atcoder.jp/contests/abc166 Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20200503T2100&p1=248 Duration: 100 minutes Number of Tasks: 6 Writer: gazelle, kort0n, kyopro_friends, sheyasutaka, ynym...