Matrix67的情书(二)

一道有点猥琐的题...16禁....

Matrix67的情书(二)

问题描述
    28是一个很特别的数字。它是一个完全数,是一个三角形数,是前五个素数的和。天上有28星宿,人有28颗牙齿;土星绕太阳公转一周需要28年,从一只猴子的释放到整座城市的沦陷只需28天。当然,Matrix67偏爱这个数字是有原因的:这是一个关心MM身体和计算安全期都必须用到的数字。总之, Matrix67非常喜欢数字28,他甚至希望数字28能够出现在他给MM写的情书里。
    Matrix67的情书只由数字、大小写字母、空格、换行符和各种英文半角标点符号组成。除去所有其它的字符,仅保留文本中的数字和字母,则整个情书可以看作是一个36进制数。比如,句子“I Love you!”可以转化为1457771337246,因为(ILOVEYOU)36 = (1457771337246)10。Matrix67希望从情书中截取一个或若干个连续的句子,使得它所对应的十进制数能够被28整除。 Matrix67希望知道他的情书中有多少个文本片段满足这样的条件。
    我们认为,只有句号、感叹号、问号三种符号才是句子结束的标志(当然整篇文章的结束也标志着最后一句话结束,即使文章最末尾没有任何标点符号)。 Matrix67的情书里保证没有不能表示任何数字的“空句子”,即任意两个句子结束标志之间至少会出现一个数字或字母。

输入数据
    输入数据是一篇合法的英文文章,包括英文大小写字母、数字、空格、回车和半角的标点符号。

输出数据
    输出满足要求的文本片段个数。一个满足要求的文本片段是指一个或若干个连续的句子,将它们当作36进制后得到的数可以被28整除。

样例输入

I WILL SHOW YOU

Yes, I am still amazed that I have you. It's still hard to understand how you chose me. How after just one short conversation you knew I was meant for you. But now I know the truth of your conviction. I've never been with someone who suited me so perfectly. You seduced me with your sexy body and strong spirit, and you've kept me with your tender heart. I know you that I can't have you completely and maybe not even for much longer. But I'm still happy. A part of you has become part of me and that is enough.

You'll laugh when I say this, but I dream about you every night. Probably because I can't see you often enough. But when I'm awake I know that you are the furthest thing from a dream. Sometimes I imagine that you are built from solid rock: a moving statue and an indestructible human being. You absolutely contain yourself and then again much more than yourself. Your confidence is consuming and your perspective is huge. You have no place in your life for jealousy or complaints. My friends seem so small in comparison, with their problems always spilling over onto everyone else.

I want you to know how much you've opened my eyes and helped me truly see myself. Until now, my life has been an undecided back-and-forth, and now I know that I've wasted too much time. But now my direction seems clear, and I have confidence in my future. The past doesn't seem to matter anymore. You've made me see possibilities I would never have imagined before.

Yes, I want to please you. But it's through pleasing you that I'll become a better and stronger person. There is nothing I want more than to transform myself through you. You challenge me to grow beyond myself and leave my weaker self behind. I will show you how beautiful I can be, and I will show you how brilliant I can become. This way, I know I'll always have your love.

Forever yours,

Matrix67

样例输出
6

数据规模
    对于30%的输入数据,输入文件大小不超过50KB;
    对于100%的输入数据,输入文件大小不超过1MB

 

 

这题太恐怖了......输入文件大小不超过1mb.........Maxtrix67太会写情书了....还写了10封..........Matrix 还挺猥琐......“Matrix67偏爱这个数字是有原因的:这是一个关心MM身体和计算安全期 都必须用到的数字”

真的是太猥琐了...这题是OOJ上的,不知道Matrix67有没有破处.......他还说他是“逮到一个就make”的处女终结者..........太yy了.....

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值