上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页
2023年5月26日
摘要: 一座高度为k的塔\(b1,b_2,\dots,b_k\)满足\(2b_1\leq b_2,2b_2\leq b_3,2b_3\leq b_4,\dots,2b{k-1}\leq b_k\) 你要从中选择一些数来叠很多座高度为\(k\)的塔,问最多能叠多少座塔。 Input 第一行包含一个正整数T(1 阅读全文
posted @ 2023-05-26 17:13 ruoye123456 阅读(130) 评论(0) 推荐(0)
摘要: Problem Description 给定\(n\)个正整数\(a_1,a_2,\dots,a_n\),将这个序列从左到右划分成\(m\)段,使得每段至少有一个数。 你需要让数字之和最大的那一段的数字和尽可能得小。 Input 第一行包含一个正整数 T(1≤T≤10),表示测试数据的组数。 每组数 阅读全文
posted @ 2023-05-26 16:24 ruoye123456 阅读(217) 评论(0) 推荐(0)
2023年5月19日
摘要: Problem Description The greatest common divisor GCD(a,b) of two positive integers a and b,sometimes written (a,b),is the largest divisor common to a a 阅读全文
posted @ 2023-05-19 17:02 ruoye123456 阅读(74) 评论(0) 推荐(0)
摘要: Problem Description The Euler function phi is an important kind of function in number theory, (n) represents the amount of the numbers which are small 阅读全文
posted @ 2023-05-19 12:04 ruoye123456 阅读(38) 评论(0) 推荐(0)
摘要: 题目描述 The Sky is Sprite. The Birds is Fly in the Sky. The Wind is Wonderful. Blew Throw the Trees Trees are Shaking, Leaves are Falling. Lovers Walk pa 阅读全文
posted @ 2023-05-19 10:32 ruoye123456 阅读(23) 评论(0) 推荐(0)
2023年5月16日
摘要: Problem Description 在Windows下我们可以通过cmd运行DOS的部分功能,其中CD是一条很有意思的命令,通过CD操作,我们可以改变当前目录。 这里我们简化一下问题,假设只有一个根目录,CD操作也只有两种方式: 1. CD 当前目录名...\目标目录名 (中间可以包含若干目录, 阅读全文
posted @ 2023-05-16 00:42 ruoye123456 阅读(51) 评论(0) 推荐(0)
2023年5月15日
摘要: Problem Description Given n integers. You have two operations: U A B: replace the Ath number by B. (index counting from 0) Q A B: output the length of 阅读全文
posted @ 2023-05-15 20:37 ruoye123456 阅读(43) 评论(0) 推荐(0)
摘要: Problem Description 在缺水的地方,水是非常有限的资源,所以人们常常为争夺最大的水源而战。 给定一系列水源,用a1, a2, a3, …, an代表水源的大小。 给定一组查询,每个查询包含2 整数 L 和 R,请找出L和R之间最大的水源。 Input 输入数据首先给定一个整数T(T 阅读全文
posted @ 2023-05-15 20:22 ruoye123456 阅读(149) 评论(0) 推荐(0)
摘要: Problem Description 小时候,乡愁是一枚小小的邮票,我在这头,母亲在那头。 —— 余光中 集训是辛苦的,道路是坎坷的,休息还是必须的。经过一段时间的训练,lcy决定让大家回家放松一下,但是训练还是得照常进行,lcy想出了如下回家规定,每一个队(三人一队)或者队长留下或者其余两名队员 阅读全文
posted @ 2023-05-15 20:17 ruoye123456 阅读(21) 评论(0) 推荐(0)
摘要: Problem Description 有n对夫妻被邀请参加一个聚会,因为场地的问题,每对夫妻中只有1人可以列席。在2n 个人中,某些人之间有着很大的矛盾(当然夫妻之间是没有矛盾的),有矛盾的2个人是不会同时出现在聚会上的。有没有可能会有n 个人同时列席? Input n: 表示有n对夫妻被邀请 ( 阅读全文
posted @ 2023-05-15 20:09 ruoye123456 阅读(47) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页