chen_zhe @ 2020-01-19 19:25:41
洛谷鼓励各位用户将大型比赛的试题或者洛谷上缺乏的模板题,在确认没有版权问题的情况下,提供给洛谷。但是因为此类贴子日益增多,严重影响了讨论版面,而且部分用户所提供的试题并不符合规定,故做出以下说明:
USACO
,POI
,Baltic OI
等),或者大型的网络公开赛(例如 Codeplus
等),但是不包含例如校内的网络模拟赛之类的试题。spj
,则相对较易的部分必须自行完成。若实在有困难才可以征集。具体尺度由管理进行评判。同时,对于已在洛谷主题库中但不符合洛谷主题目题目规范的题目,我们鼓励用户进行更正,但也至少要达到绿勾级别。要求更正后的题面严格遵守规范,同样回复在本讨论下,为了方便管理员,请将题面使用代码框```括起来。
若有发现难度标签明显有问题(即对于普及-以及以下的题目相差两个档次,或者对于提高-以及以上难度相差一个档次),欢迎大家提供建议。请在本楼回复题号和应当修正的难度。
为了提高管理员的审核效率,本贴禁止任何无意义回复,所有无意义回复均会被删除,行为恶劣者将会禁言,但是可以询问说明中的问题。若为修复题目问题,建议带上链接以增加效率。
请不要@管理员,会有管理员不定期来本帖处理。
by Kizuna_AI @ 2020-02-23 08:32:32
类型:题面修改
题目:P3650
新题面(请使用用代码框括一下):
## 题目描述
农民约翰的农场里有 $N$ 座山峰,每座山都有一个在 $0$ 到 $100$ 之间的整数的海拔高度。在冬天,因为山上有丰富的积雪,约翰经常开办滑雪训练营。
不幸的是,约翰刚刚得知税法在滑雪训练营方面有新变化,明年开始实施。在仔细阅读法律后,他发现如果滑雪训练营的最高和最低的山峰海拔高度差大于 $17$ 就要收税。因此,如果他改变山峰的高度(使最高与最低的山峰海拔高度差不超过 $17$ ),约翰可以避免支付税收。
如果改变一座山 $x$ 单位的高度成本是 $x^2$ 单位,约翰最少需要付多少钱?约翰只愿意改变整数单位的高度。
## 输入格式
第一行一个整数$N$
第二行到$N+1$行,每行一个正整数,代表一座山的海拔高度
## 输出格式
约翰需要支付修改山海拔高度的总金额,最高和最低的山峰间高度差最多 $17$。
## 说明/提示
【样例解释】
约翰保持高度为 $4$、$20$ 和 $21 $的山的高度。他增高高度为$1$的山、变成高度$4$(花费 $3^2 = 9$)。他降低了高度为 $24$ 的山变成高度 $21$ 也花费 $3 ^ 2 = 9$。
【数据范围】
对于 $100\%$ 的数据,$1 \le N\le 1000$
by NZSWW33OMF2GC @ 2020-02-23 10:22:22
类型:输出格式更正
题目:猜数字游戏的提示 Master-Mind Hints
更正后输出格式:(加入空格)
Game 1:
(1,1)
(2,0)
(1,2)
(1,2)
(4,0)
Game 2:
(2,4)
(3,2)
(5,0)
(7,0)
by cnyzz @ 2020-02-23 10:59:08
@lyclyc_NSP 有问题
by NZSWW33OMF2GC @ 2020-02-23 11:05:51
类型:题目修改
题目:古老的密码 Ancient Cipher
### 题目描述
Ancient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent between provinces and the capital in encrypted form to prevent eavesdropping. The most popular ciphers in those times were so called **substitution cipher** and **permutation cipher**.
Substitution cipher changes all occurrences of each letter to some other letter. Substitutes for all letters must be different. For some letters substitute letter may coincide with the original letter. For example, applying substitution cipher that changes all letters from ‘`A`’ to ‘`Y`’ to the next ones in the alphabet, and changes ‘`Z`’ to ‘`A`’, to the message “`VICTORIOUS`” one gets the message “`WJDUPSJPVT`”. Permutation cipher applies some permutation to the letters of the message. For example, applying the permutation $⟨2, 1, 5, 4, 3, 7, 6, 10, 9, 8⟩$ to the message “`VICTORIOUS`” one gets the message “`IVOTCIRSUO`”.
It was quickly noticed that being applied separately, both substitution cipher and permutation cipher were rather weak. But when being combined, they were strong enough for those times. Thus, the most important messages were first encrypted using substitution cipher, and then the result was encrypted using permutation cipher. Encrypting the message “`VICTORIOUS`” with the combination of the ciphers described above one gets the message “`JWPUDJSTVP`”.
Archeologists have recently found the message engraved on a stone plate. At the first glance it seemed completely meaningless, so it was suggested that the message was encrypted with some substitution and permutation ciphers. They have conjectured the possible text of the original message that was encrypted, and now they want to check their conjecture. They need a computer program to do it, so you have to write one.
### 输入格式
Input file contains several test cases. Each of them consists of two lines. The first line contains the message engraved on the plate. Before encrypting, all spaces and punctuation marks were removed, so the encrypted message contains only capital letters of the English alphabet. The second line contains the original message that is conjectured to be encrypted in the message on the first line. It also contains only capital letters of the English alphabet. The lengths of both lines of the input file are equal and do not exceed 100.
### 输出格式
For each test case, print one output line. Output ‘`YES`’ if the message on the first line of the input file could be the result of encrypting the message on the second line, or ‘`NO`’ in the other case.
### 输入输出样例
#### 输入样例
JWPUDJSTVP
VICTORIOUS
MAMA
ROME
HAHA
HEHE
AAA
AAA
NEERCISTHEBEST
SECRETMESSAGES
#### 输出样例
YES
NO
YES
YES
NO
by cnyzz @ 2020-02-23 11:08:49
类型:题面修改
题目:[CERC2015]Digit Division
有一个
第一行输入
第二行输入待划分的数字。
输出有多少种方法,对
by cnyzz @ 2020-02-23 11:10:48
@x4Cx58x54 请修翻译
by cnyzz @ 2020-02-23 11:40:48
@lyclyc_NSP
by 1saunoya @ 2020-02-23 14:54:51
@longer_name 这不是TTM么
by bellmanford @ 2020-02-23 15:31:21
@蒟蒻的名字 GDKOI估计举办不了了O_O
by lyclyc_NSP @ 2020-02-23 17:03:36
@菜鸟一只 ok,谢谢您