词头词尾闹得住蘑菇?词头词尾闹不住蘑菇。

流言内容:

Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, It deosn’t mttaer in waht oredr the ltteers in a wrod are,the olny iprmoetnt tihng is taht the frist and lsat ltteer be at the rghit pclae.The rset can be a total mses and you can sitll raed it wouthit porbelm.
细心看一下就能明显看出雕琢的痕迹 比如Aoccdrnig中的cc放在前面,d放在靠后的位置,因为d比较突出增加识别性。如果这个没有说服力的话Cmabrigde就比较明显了,我写成Cbdrgaime谁认识。

于是写了段代码随机排序后:

Ancdricog to a rreascechh at Cbdrgaime Untvisreiy, It d’eosnt mtetar in what odrer the leetrts in a word atreh,e only intepomrt thnig is that the fsrit and last leettr be at the rhigt phaecTl.e rest can be a taotl mess and you can slitl read it wuhoitt peolbrm.

Ariccdong to a reaecrchsh at Crigmbade Uevsnritiy, It dso’net metatr in waht oedrr the ltreets in a wrod aet,rhe olny ioepnmrtt tnihg is taht the fisrt and lsat ltteer be at the right pT.aelche rset can be a ttaol mses and you can sitll raed it wouthit pbrolem. ‘

不太像了吧.. 当然因为熟悉&简单还是很容易看懂,那末来一篇GRE阅读.. :

Pintau-rcitkeg is a tqhucenie btoh for ainnexng the oibctjvee wlord and for eeisnpxsrg the sngaliur slef. Pthohagorps dcepit oebtvicje rlteeiais taht aedrlay esxit, tuhgoh olny the cearma can dcolssie tehm. And tehy dicpet an iduanviidl prghpthea’oros tnpeaeremmt, dsi- cieovnrg iletsf tuohgrh the cmr’aeas cipprnog of rliteay. Taht is, porhphgtaoy has two atcanitetihl ildsae: in the frsit, potphohgray is aoubt the wlord, and the progthao- pehr is a mree oebrvesr who cnotus for lliett; but in the snecod, pahorpgohty is the irumtennst of iipetnrd, qestnuig sjtctibvieuy and the ppagtroehohr is all.

原文:

Picture-taking is a technique both for annexing theobjective world and for expressing the singular self.Photographs depict objective realities that already exist,though only the camera can disclose them. And they depict an individual photographer’s temperament, dis-covering itself through the camera’s cropping of reality.That is, photography has two antithetical ideals: in thefirst, photography is about the world, and the photogra-pher is a mere observer who counts for little; but in the second, photography is the instrument of intrepid,questing subjectivity and the photographer is all.

附录..

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <algorithm>
using namespace std;

int main() {
  srand(time(NULL));
  while(1) {
    char a[1024];
    scanf("%s",a);
    char end=0;
    int n=strlen(a);
    if( a[n-1]=='.' || a[n-1]==',') {
      end=a[n-1];
      a[n-1]='\0';
      n--;
    }

    for(int p=1;p<=n-3;p++) {
      int m=n-2-p;
      int choose=rand()%m+1;
      swap(a[p],a[p+choose]);
    }
    printf("%s",a);
    if(end)
      printf("%c",end);
    printf(" ");
  }
}

发表评论

电子邮件地址不会被公开。 必填项已用*标注