AtCoder Beginner Contest 155 比赛链接:https://atcoder.jp/contests/abc155/tasks A - Poor 题意 判断三个数中是否有两者相等且不等于第三者。 代码 #include <bits/stdc++.h> using namespace std; int main() { map<int, int> mp; for (int i = 0; i < 3; i++) { int x; cin >> x...
To make the payment, you will choose some amount of money which is at least N and give it to the clerk. Then, the clerk gives you back the change, which is the amount of money you give minus N. What will be the minimum possible number of total banknotes used by you and the clerk...
1、今晚(5月17日)20点在B站开始 AtCoder 初学者竞赛 353 比赛题解直播讲解 2、本周日(5月19日)晚上19点在B站开始 AtCoder Beginner Contest 354的题解直播讲解 3、观看方式: 复制下方链接或直接扫描二维码,PC端建议使用chrome浏览器 https://live.bilibili.com/21371611?live_from=84002 或识别下方二维码查看:...
There are N(N−1)2N(N−1)2 ways to choose two of them and form a pair. If we compute the product of each of those pairs and sort the results in ascending order, what will be the KK-th number in that list? 题意: 给定一个含有n个整数的数组a,将其所有点对\((i,j),i \neq...
Atcoder beginner contest 124D Handstand https://atcoder.jp/contests/abc124/tasks/abc124_d 每次可以将连续一部分变相反。先统计出共有几部分,每一部分有相同数字组成,相邻两部分的数字不相同。可以发现每次最多取2k+1个组。然后枚举算一下最大的和是多少。细节处理一下就好。......
AtCoder Beginner Contest 155 - D - Pairs ,-E - Payment 题解 D - Pairs We have NN integers A1,A2,...,ANA1,A2,...,AN. There are N_牛客网_牛客在手,offer不愁
数学--数论-- AtCoder Beginner Contest 151(组合数+数学推导)好题(๑•̀ㅂ•́)و✧,思路统计最大值出现的次数,和最小值出现的次数...
atcoder Beginner Contest 156 Roaming(组合数学 插板法) 题目大意: 有n个数,每个都是1,我们每次可以选择1个数减1,然后让另外一个数加1。但是我们不能生成负数。问我们假如进行k次操作,问我们这n个数能产生多少种不同的组合。注意[1,0,2]和[2,0,1]当作不同的组合。
AtCoder Beginner Contest 353A-E+G https://www.bilibili.com/video/BV1wt421M7Z5/ https://www.bilibili.com/video/BV1TZ421774X/ AtCoder Beginner Contest 353 CDEG讲解 https://www.bilibili.com/video/BV1rm421u7cs/ AtCoder Beginner Contest 353, f题写懵了 https://www.bilibili.com/video/...
AtCoder Beginner Contest 335 A~F AC-Panda 敲代码的老熊猫 2 人赞同了该文章 A.2023(字符串) 题意: 给出一个以2023为结尾的字符串,要求你把该字符串的结尾修改为2024。 分析: 本题解法较多,可以先输出前s.length()−1个字符,然后单独输出4,也可以修改最后一个字符,再整体输出。