码迷,mamicode.com
首页 >  
搜索关键字:contest    ( 3128个结果
Asia Regional Contest, Tokyo, 2014
Asia Regional Contest, Tokyo, 2014–10–19 这场全程在行为艺术… 最签到的应该是B,写个表达式求值。 然后是A题,问题在于求一个01串变成另一个01串的最小步数(只能交换相邻的bit),数据范围巨小只有十几,一开始想直接逆序对数,wa了两发发现显然不对…想一下一 ...
分类:其他好文   时间:2021-05-04 15:53:10    阅读次数:0
Educational Codeforces Round 108 (Rated for Div. 2)【ABCD】
大家五一快乐呀 (~ ̄▽ ̄)~ 比赛链接:https://codeforces.com/contest/1519 A. Red and Blue Beans 题意 有 \(r\) 个红色豆子和 \(b\) 个蓝色豆子,需要将它们分成几包,要求每包: 至少有一个红色豆子 至少有一个蓝色豆子 两种颜色豆 ...
分类:其他好文   时间:2021-05-03 12:59:22    阅读次数:0
f-6题解
链接:https://vjudge.net/contest/436484#problem/F 这个题二进制思维题,首先第一点按位且运算只要这一位上有一个是0那么这一位进行多少次按位且都是0。 题目的意思就是在所有的k位二进制数里挑n个数满足这N个数的按位且运算和是0且n个数的和加起来最大。 理解题意 ...
分类:其他好文   时间:2021-05-03 12:39:41    阅读次数:0
Contest 2050 and Codeforces Round #718 (Div. 1 + Div. 2) 题解
竟然上 GM 了,incredible( A 首先如果 \(2050\nmid n\) 那显然就 \(-1\) 了,否则答案显然为 \(\dfrac{n}{2050}\) 的各位数字和。 B 显然这个最小值就是全部 \(nm\) 个数中最小的 \(m\) 个数之和,用个优先队列什么的维护一下即可,时 ...
分类:其他好文   时间:2021-05-03 12:22:46    阅读次数:0
最大的最大公约数-暴力筛
题目:https://vjudge.net/contest/389321#problem/D 题意: 给出N个正整数,找出N个数两两之间最大公约数的最大值。例如:N = 4,4个数为:9 15 25 16,两两之间最大公约数的最大值是15同25的最大公约数5。 第1行:一个数N,表示输入正整数的数量 ...
分类:其他好文   时间:2021-05-03 12:11:43    阅读次数:0
C. Add One
http://codeforces.com/contest/1513/problem/C dp $f[i][j]:$表示当前数位上为i(0~9), 加法次数为j最终形成的数位. f[i][j] = f[i - 1][j + 1]; f[9][j] = f[1][j + 1] + f[0][j + 1 ...
分类:其他好文   时间:2021-04-13 12:19:52    阅读次数:0
ICPC Southeast USA 2020 Regional Contest problem problem E: Dominating Duos(单调栈维护区间最大值)
题目描述 A group of people are standing in a line. Each person has a distinct height. You would like to count the number of unordered pairs of people in t ...
分类:其他好文   时间:2021-04-13 12:06:43    阅读次数:0
Codeforces Round #712 (Div. 2) C
题目链接 https://codeforces.ml/contest/1504/problem/C 题目截图 题目大致描述 给定一个01串,判断是否能构造出两个平衡的括号序列ans1和ans2,若能给定其中一种解,构造需满足以下规则: 对于01串中元素为0的位置i,ans1[i] != ans2[i ...
分类:其他好文   时间:2021-04-06 14:45:19    阅读次数:0
AtCoder Beginner Contest 049 B - Thin
Problem Statement There is an image with a height of H pixels and a width of W pixels. Each of the pixels is represented by either . or *. The charact ...
分类:其他好文   时间:2021-04-05 12:52:04    阅读次数:0
Codeforces Round #710 (Div. 3) Editorial 1506A - Strange Table
题目链接 https://codeforces.com/contest/1506/problem/A 原题 1506A - Strange Table Example input 5 1 1 1 2 2 3 3 5 11 100 100 7312 1000000 1000000 1000000000 ...
分类:其他好文   时间:2021-03-29 11:53:53    阅读次数:0
3128条   上一页 1 2 3 4 5 ... 313 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!