04 2019 档案
摘要:C. Neko does Maths time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Neko loves divisors. D
阅读全文
摘要:https://vjudge.net/contest/296911#overview A - Subsequence A - Subsequence There is a sequence of integers. Your task is to find the longest subsequen
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/problem/21303来源:牛客网题目描述 给你一个合法的括号序列s1,每次你可以删除一个"()" 你可以删除0个或者多个"()" 求能否删成另一个括号序列s2 输入描述: 第一行输入一个字符串s (2 ≤ |s| ≤ 100)第二行
阅读全文
摘要:http://acm.beihua.edu.cn/problem/1007 Tom and Bag Tom and Bag Tom and Bag Description Tom is the most handsome CCPC contestant in HIT.Tom got a bag re
阅读全文
摘要:http://acm.zju.edu.cn/onlinejudge/showContestProblems.do?contestId=391 A Thanks, TuSimple! 题意:有t组数据,n个男生,m个女生,每个人身高不同,每个人都期望和比自己高或者比自己低的人跳舞,问最多有多少对舞伴
阅读全文
摘要:http://2050.acmclub.cn/contests/contest_show.php?cid=3 开场白 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem De
阅读全文
摘要:(1)https://vjudge.net/problem/SPOJ-FAVDICE 题意:有一个n面的骰子,每一面朝上的概率相同,求所有面都朝上过至少一次的总次数期望。 题解:令dp[i]表示 i 面满足条件的期望次数,则有 dp[i]=$\sum_{j=1}^{i-1}$(Pj*(本次操作对最终
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/problem/14553来源:牛客网 题目描述 小明很喜欢打游戏,现在已知一个新英雄即将推出,他同样拥有四个技能,其中三个小技能的释放时间和固定的伤害值为: 1.乌鸦坐飞机 释放时间:x 固定伤害值:a 2.蜘蛛吃耳屎 释放时间:y 固
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/problem/13249来源:牛客网题目描述 一棵n个点的有根树,1号点为根,相邻的两个节点之间的距离为1。树上每个节点i对应一个值k[i]。每个点都有一个颜色,初始的时候所有点都是白色的。 你需要通过一系列操作使得最终每个点变成黑色。
阅读全文
摘要:http://codeforces.com/contest/1025/problem/D D. Recovering BST time limit per test 1 second memory limit per test 256 megabytes input standard input o
阅读全文
摘要:http://codeforces.com/contest/1041/problem/F 题目大意: 下边界有n个给定点,上边界有m个给定点,可以从任意一个点发出一条激光,激光碰到边界会反射 激光到达边界必须打到整数点,问最多可以打到几个给定点 输入格式: 第一行两个整数n,y1,表示下边界给定点
阅读全文
摘要:http://codeforces.com/contest/1038/problem/E E. Maximum Matching time limit per test 2 seconds memory limit per test 256 megabytes input standard inpu
阅读全文
摘要:1 typedef long long ll; 2 const ll inf=0x3f3f3f3f; 3 struct edge{ 4 int x; 5 int y; 6 ll v;//流量 7 ll c;//费用 8 int nex; 9 }e[1005]; 10 ll flow,res; 11 int cnt,head[505],n;...
阅读全文
摘要:https://www.luogu.org/problemnew/show/P4016 题目描述 GGG 公司有 nnn 个沿铁路运输线环形排列的仓库,每个仓库存储的货物数量不等。如何用最少搬运量可以使 nnn 个仓库的库存数量相同。搬运货物时,只能在相邻的仓库之间搬运。 输入输出格式 输入格式:
阅读全文
摘要:https://codeforces.com/gym/101810 A. Careful Thief time limit per test 2.5 s memory limit per test 256 MB input standard input output standard output
阅读全文
摘要:Split The Tree 题目描述 You are given a tree with n vertices, numbered from 1 to n. ith vertex has a value wiWe define the weight of a tree as the number
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/contest/551/E来源:牛客网题目描述 有两个长度为 n 的序列,a0,a1,…,an−1a0,a1,…,an−1和 b0,b1,…,bn−1b0,b1,…,bn−1。CSL 有一种魔法,每执行一次魔法,可以任意挑选一个序列并任意
阅读全文

浙公网安备 33010602011771号