- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 HDU 1016 Prime Ring Problem
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime.一个有n个数组成的环组成圆圈所示图。把自然数1,2,……、n分别放到每个圆里并且在两个相邻的圈子里数字的总和应该是一个质数。Note: the num.
2021-02-28 16:17:33
176
原创 CodeForces 459B
B - 2Pashmak decided to give Parmida a pair of flowers from the garden. There arenflowers in the garden and thei-th of them has a beauty numberbi. Parmida is a very strange girl so she doesn't want to have the two most beautiful flowers necessarily....
2021-02-28 15:04:32
228
原创 练习赛23
A. Fancy FenceEmuskald needs a fence around his farm, but he is too lazy to build it himself. So he purchased a fence-building robot.Emuskald需要用栅栏围起来,他的农场,但他太懒,构建它自己。所以他买了一个建栅栏机器人。He wants the fence to be a regular polygon. The robot builds the fenc
2021-02-22 21:46:44
246
原创 练习赛22——题解
练习赛22——题解A - 1Neptune 和 Nepgear 买了一个西瓜,重量为 n。Neptune 和 Nepgear 打算吃掉这个西瓜。在此之前,Neptune 和 Nepgear 希望把西瓜切成两块。现在,Neptune 和 Nepgear 想要知道,是否存在一种切法,使得得到的两块西瓜重量都是偶数。Neptune 和 Nepgear 当然会这个问题,但 Neptune 和 Nepgear 想考考你,所以 Neptune 和 Nepgear 希望你能解决这个问题。In
2021-02-09 19:31:52
1396
原创 C - Yet Another Array Restoration
C - Yet Another Array RestorationWe have a secret array. You don’t know this array and you have to restore it. However, you know some facts about this array:我们有一个秘密的数组。你不知道这个数组,使其恢复。然而,你知道关于这个数组一些东西:The array consists of n distinct positive (greater th
2020-12-20 11:56:11
279
1
原创 G - Vigenère 密码
G - Vigenère 密码16 世纪法国外交家 Blaise de Vigenère 设计了一种多表密码加密算法——Vigenère 密码。Vigenère 密码的加密解密算法简单易用,且破译难度比较高,曾在美国南北战争中为南军所广泛使用。在密码学中,我们称需要加密的信息为明文,用 M 表示;称加密后的信息为密文,用 C 表示;而密钥是一种参数,是将明文转换为密文或将密文转换为明文的算法中输入的数据,记为 k。 在 Vigenère 密码中,密钥 k是一个字母串,k=k1k2…kn,当明文 M=m
2020-12-19 15:28:27
353
1
原创 7-1 括号匹配 (20分)(数据结构)
7-1 括号匹配 (20分)(数据结构)检查一段C语言代码的小括号( )、 中括号 [ ] 和大括号{ } 是否匹配。输入格式:在一行中输入一段C语言代码,长度不超过1000个字符(行末以换行符结束)。输出格式:第一行输出左括号的数量和右括号的数量,中间以一个空格间隔。 若括号是匹配的,在第二行打印YES,否则打印NO。输入样例1:for(int i=0; i<v; i...
2020-03-29 22:34:07
14516
5
基于Struts2+Hibernate5的教务管理系统项目实训
2022-05-30
基于Javaweb的学生管理系统
2022-05-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人