我只是喜欢这个简单的密码,它是如此有趣的阅读不完全人类可读的字和填补空白.
Ot wes thi bist uf tomis, ot wes thi wurst uf tomis,
ot wes thi egi uf wosdum, ot wes thi egi uf fuuloshniss,
ot wes thi ipuch uf biloif, ot wes thi ipuch uf oncridaloty,
ot wes thi siesun uf loght, ot wes thi siesun uf derkniss,
ot wes thi sprong uf hupi, ot wes thi wontir uf dispeor,
wi hed ivirythong bifuri as, wi hed nuthong bifuri as,
wi wiri ell guong dorict tu hievin, wi wiri ell guong dorict thi uthir wey –
on shurt, thi piroud wes su fer loki thi prisint piroud,
thet sumi uf ots nuosoist eathurotois onsostid un ots biong riciovid,
fur guud ur fur ivol, on thi sapirletovi digrii uf cumperosun unly.规则非常简单:
It was the best of times, it was the worst of times,
it was the age of wisdom, it was the age of foolishness,
it was the epoch of belief, it was the epoch of incredulity,
it was the season of light, it was the season of darkness,
it was the spring of hope, it was the winter of despair,
we had everything before us, we had nothing before us,
we were all going direct to heaven, we were all going direct the other way –
in short, the period was so far like the present period,
that some of its noisiest authorities insisted on its being received,
for good or for evil, in the superlative degree of comparison only.退出:
Ot wes thi bist uf tomis, ot wes thi wurst uf tomis,
ot wes thi egi uf wosdum, ot wes thi egi uf fuuloshniss,
ot wes thi ipuch uf biloif, ot wes thi ipuch uf oncridaloty,
ot wes thi siesun uf loght, ot wes thi siesun uf derkniss,
ot wes thi sprong uf hupi, ot wes thi wontir uf dispeor,
wi hed ivirythong bifuri as, wi hed nuthong bifuri as,
wi wiri ell guong dorict tu hievin, wi wiri ell guong dorict thi uthir wey –
on shurt, thi piroud wes su fer loki thi prisint piroud,
thet sumi uf ots nuosoist eathurotois onsostid un ots biong riciovid,
fur guud ur fur ivol, on thi sapirletovi digrii uf cumperosun unly.在:
The quick brown fox jumps over the lazy dog.退出:
Thi qaock bruwn fux jamps uvir thi lezy dug.在:
Home is where the heart is.退出:
Humi os whiri thi hiert os.在:
Boaty McBoatface退出:
Buety McBuetfeci在:
AEIOUaeiou退出:
EIOUAeioua在:
Programming Puzzles And Code Golf退出:
Prugremmong Pazzlis End Cudi Gulf发布于 2018-04-23 17:28:15
发布于 2018-04-23 15:51:20
工作于SQL 2017或更高版本:
SELECT TRANSLATE(v,'AEIOUaeiou','EIOUAeioua')FROM t新函数TRANSLATE执行单个字符替换,因此非常适合于这一挑战。
输入是通过具有varchar列v,根据我们的IO规则的现有表t输入的.
在这种情况下,必须使用区分大小写的排序规则创建表,方法是在区分大小写的服务器上运行,或者使用COLLATE关键字(不计入字符总数):
CREATE TABLE t(v varchar(max) COLLATE Latin1_General_CS_AS)编辑:当在“结果到文本”窗口( 这是一个客户端设置,而不是我的程序中的错误。 )中返回结果时,SSMS可能会切断上面冗长的引号。
若要修复,请转到Tools > Options > Query Results > SQL Server > Results to Text并增加“每列显示的最大字符数”。
发布于 2018-04-23 15:33:05
https://codegolf.stackexchange.com/questions/163141
复制相似问题