1483: [HNOI2009]梦幻布丁Time Limit:10 SecMemory Limit:64 MBSubmit:1076Solved:452[Submit][Status]DescriptionN个布丁摆成一行,进行M次操作.每次将某个颜色的布丁全部变成另一种颜色的,然后再询问当前一共有... Read More
posted @ 2014-08-07 22:18 ZYF-ZYF Views(317) Comments(0) Diggs(0) Edit
2124: 等差子序列Time Limit:3 SecMemory Limit:259 MBSubmit:365Solved:151[Submit][Status]Description给一个1到N的排列{Ai},询问是否存在1>1;s:=r-l+1;v1:=0;v2:=0;22 if... Read More
posted @ 2014-08-07 21:01 ZYF-ZYF Views(495) Comments(0) Diggs(0) Edit
2431: [HAOI2009]逆序对数列Time Limit:5 SecMemory Limit:128 MBSubmit:831Solved:473[Submit][Status]Description对于一个数列{ai},如果有iaj,那么我们称ai与aj为一对逆序对数。若对于任意一个由1~n... Read More
posted @ 2014-08-07 20:02 ZYF-ZYF Views(351) Comments(0) Diggs(0) Edit
1831: [AHOI2008]逆序对Time Limit:10 SecMemory Limit:64 MBSubmit:341Solved:226[Submit][Status]Description小可可和小卡卡想到Y岛上旅游,但是他们不知道Y岛有多远。好在,他们找到一本古老的书,上面是这样说的... Read More
posted @ 2014-08-07 19:56 ZYF-ZYF Views(457) Comments(0) Diggs(0) Edit
2821: 作诗(Poetize)Time Limit:50 SecMemory Limit:128 MBSubmit:1078Solved:348[Submit][Status]Description神犇SJY虐完HEOI之后给傻×LYD出了一题:SHY是T国的公主,平时的一大爱好是作诗。由于时间... Read More
posted @ 2014-08-07 13:40 ZYF-ZYF Views(178) Comments(0) Diggs(0) Edit
2038: [2009国家集训队]小Z的袜子(hose)Time Limit:20 SecMemory Limit:259 MBSubmit:2343Solved:1077[Submit][Status]Description作为一个生活散漫的人,小Z每天早上都要耗费很久从一堆五颜六色的袜子中找出一... Read More
posted @ 2014-08-07 08:31 ZYF-ZYF Views(203) Comments(0) Diggs(0) Edit
1500: [NOI2005]维修数列Time Limit:10 SecMemory Limit:64 MBSubmit:6263Solved:1879[Submit][Status]DescriptionInput输入文件的第1行包含两个数N和M,N表示初始时数列中数的个数,M表示要进行的操作数目... Read More
posted @ 2014-08-07 01:00 ZYF-ZYF Views(234) Comments(0) Diggs(0) Edit