ProblemDescriptionA number whose only prime factorsare 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4,5, 6, 7, 8, 9, 10, 12, 14, 15,...
转载
2016-04-28 14:40:00
102阅读
2评论
Problem Description某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为最小。请计算最小的公路总长度。 Input测试输...
转载
2016-06-17 09:07:00
42阅读
2评论
Problem DescriptionAn entropy encoder is a data encodingmethod that achieves lossless data compression by encoding amessage with “wasted” or “extra...
转载
2016-03-16 23:20:00
72阅读
2评论
Problem DescriptionAn entropy encoder is a data encodingmethod that achieves lossless data compression by encoding amessage with “wasted” or “extra...
转载
2016-03-16 23:20:00
74阅读
2评论
ProblemDescriptionA number whose only prime factorsare 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4,5, 6, 7, 8, 9, 10, 12, 14, 15,...
转载
2016-04-28 14:40:00
113阅读
2评论
题意简述: 求在$n\times m$的棋盘上放若干个炮,使得炮相互不攻击的方案数,答案对$998244353$取模。 数据范围: $1\le n\le m\le10^5$ 解法: 首先我们知道互不攻击等价于每行每列炮的数目$\le2$。 然后考虑进行一个套路的转化:我们给每行每列建一个点,在$(x
转载
2020-02-10 20:20:00
69阅读
从前三个数中找到公比(最多去掉一个数),检查后面数是否满足等比#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int in[100010];
int min(int a,int b){ return a>b?b:a;
}
int main(){ int i,j,k,n,p,ans; double d; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d",&in[i]); } if(n==
转载
2012-01-27 14:01:00
58阅读
2评论
从前三个数中找到公比(最多去掉一个数),检查后面数是否满足等比#include #include #include int in[100010];int min(int a,int
原创
2023-09-15 10:07:30
40阅读
问题 D: abc时间限制:1 Sec内存限制:32 MB题目描述设a、b、c均是0到9之间的数字,abc、bcc是两个三位数,且有:abc
原创
2022-09-15 11:01:26
31阅读
问题 D: Coincidence时间限制: 1 Sec 内存限制: 32 MB提交: 34 解决: 16 题目描述Find a lon
原创
2022-09-15 11:04:32
35阅读
问题 D: 查找时间限制:1 Sec内存限制:32 MB题目描述输入数组长度 n输入数组 a[1...n
原创
2022-09-15 11:00:52
56阅读
Problem D: 小平查 Description 小平在五一期间趁学弟不在,每天在实验室过度看视(电)频(影),患了健忘症,以前的很多事情都记不起来了。但小平以前有个习惯,总喜欢把自己在各种系统的记录在一个文本文件ping.dic中,文件内容包含每个系统的名称,用户名和。 文件包含若
转载
2018-04-21 22:52:00
91阅读
2评论
HomeWeb BoardProblemSetStandingStatusStatisticsProblem D: 数组类(II)Time Limit:
原创
2023-05-29 12:11:18
55阅读
问题 D: More is better时间限制: 1 Sec 内存限制: 128 MB提交: 130 解决: 42 题目描述Mr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the better it wi...
原创
2022-09-15 10:53:27
30阅读
问题 D: Repair the Wall时间限制:1 Sec内存限制:32 MB题目描述Long time ago , Kitt
原创
2022-09-15 10:57:37
51阅读
Problem D: 小平查密码 Description 小平在五一期间趁学弟不在,每天在实验室过度看视(电)频(影),患了健忘症,以前的很多事情都记不起来了。但小平以前有个习惯,总喜欢把自己在各种系统的密码记录在一个文本文件ping.dic中,文件内容包含每个系统的名称,用户名和密码。 文件包含若
转载
2018-04-04 21:03:00
70阅读
2评论