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评论
TDLTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 524288/524288 K (Java/Others) Total Submission(s): 1275    Accepted Submission(s): 604  Problem
原创 2023-04-04 09:07:03
90阅读
Problem D  Accepts:
题意简述: 求在$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 Description
原创 2022-11-09 19:06:01
25阅读
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阅读
Problem D:
原创 2022-08-17 15:25:09
66阅读
问题 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阅读
                                 
原创 2013-08-13 15:06:00
456阅读
  • 1
  • 2
  • 3
  • 4
  • 5