HDU 4847 Wow! Such Doge!

时间:2021-06-11 08:56:47

Wow! Such Doge!

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2351    Accepted Submission(s): 1445

Problem Description
HDU 4847  Wow! Such Doge!
Chen, Adrian (November 7, 2013). “Doge Is An Ac- tually Good Internet Meme. Wow.”. Gawker. Retrieved November 22, 2013.

Doge is an Internet meme that became popular in 2013. The meme
typically con- sists of a picture of a Shiba Inu dog ac- companied by
multicolored text in Comic Sans MS font in the foreground. The text,
representing a kind of internal monologue, is deliberately written in
broken English, and usually contains the word “wow” and the phrases
“such x”, “much x”, “many x”, “very x” and “so x”.
Kabosu, the
Shiba Inu featured in the original meme, was first pictured in a 2010
blog post by Atsuko Sato, a Japanese kindergarten teacher. Afterwards,
varia- tions of the pictures using overlaid Comic Sans text were posted
from a Tumblr blog, Shiba Confessions. However, the use of the
intentionally misspelled “doge” dates back to June 2005, when it was
mentioned in an episode of Homestar Runners puppet series.
In
August 2013, images of the meme were spammed on Reddit’s r/MURICA
subreddit by 4chan’s random imageboard, /b/. A search of the term doge
on Google Trends shows an explosion of popularity occurring in October
2013, and more so in the following month. By November 2013, the meme had
become widespread on the Internet. Google later created a Doge Easter
egg: when doge meme was entered into the YouTube search bar, all of the
site’s text would be displayed in colorful Comic Sans, similar to the
kind used by the meme.
The meme was ranked #12 on MTV’s list of
“50 Things Pop Culture Had Us Giving Thanks For” in 2013. Io9 compared
the internal dialog of the Shiba Inu dogs to lolcat-speak. The image
most commonly associated with the meme is of a female Shiba Inu named
Kabosu, taken from a Japanese blog documenting the dog’s daily
activities. The spelling of doge has several variants, leading to debate
on its actual pronunciation. On December 13, Doge was named the “top
meme” of 2013 by Know Your Meme.
In December 2013, the Dogecoin
was introduced as a new cryptocurrency, making it the first
cryptocurrency to be based on an Internet meme; the viral phenomenon,
along with usage of the Comic Sans MS typeface, gave it “the Internet
density of a large star” according to Medium writer Quinn Norton.
In
late December 2013, members of the U.S. Congress produced material in
the meme’s style. Huffington Post commented that Doge was “killed”
because of the Congress members’ usage of the meme.
By early 2014,
Doge’s popularity was sustained by internet communities on social
media, accompanied by the rapid growth and acceptance of Dogecoin. In
April 2014, Doge experienced a second major media resurgence due to
revelations of the Dogecoin community’s intent to sponsor Josh Wise in
NASCAR and place a picture of the Shiba Inu on his vehicle.

—— Doge (meme). (2014, May 18).
In Wikipedia, The Free Encyclopedia. Retrieved 02:00, May 22, 2014, from
http://en.wikipedia.org/w/index.php?title=Doge_(meme)&oldid=609040691

Now, Doge wants to know how many words “doge” are there in a given article. Would you like to help Doge solve this problem?

 
Input
An article that Doge wants to know.
The size of the article does not exceed 64KB. The article contains only ASCII characters.
 
Output
Please output the number of word “doge” (case-insensitive). Refer to the samples for more details.
 
Sample Input
adoge
cutedo
yourge
blownDoge
lovelyDooge
Wow! Such Dooooooooooooooge!!!
D0ge
dOge DOGE
dogedoge
Sample Output
6
 水题,注意输入格式,有空格
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <map>
#include <set>
#include <vector>
#include <queue>
using namespace std;
typedef long long ll;
char ch,a[]={'d','o','g','e','\0'};
int main()
{
int pos=,ans=;
while((ch=getchar())!=EOF)
{
if(tolower(ch)==a[pos]) pos++;
else pos=;
if(pos==) ans++,pos=;
}
printf("%d\n",ans);
return ;
}

HDU 4847 Wow! Such Doge!的更多相关文章

  1. HDOJ&lpar;HDU&rpar; 4847 Wow&excl; Such Doge&excl;&lpar;doge字符统计&rpar;

    Problem Description Chen, Adrian (November 7, 2013). "Doge Is An Ac- tually Good Internet Meme. ...

  2. HDU 4847 陕西邀请赛A&lpar;水&rpar;

    HDU 4847 Wow! Such Doge! pid=4847" style="">题目链接 题意:给定文本,求有几个doge,不区分大写和小写 思路:水题.直 ...

  3. (KMP 水)Wow&excl; Such Doge&excl; -- hdu -- 4847

    http://acm.hdu.edu.cn/showproblem.php?pid=4847 Wow! Such Doge! Time Limit:1000MS     Memory Limit:32 ...

  4. hdu 4850 Wow&excl; Such String&excl; 欧拉回路

    作者:jostree 转载请注明出处 http://www.cnblogs.com/jostree/p/4080264.html 题目链接:hdu 4850 Wow! Such String! 欧拉回 ...

  5. hdu 4893 Wow&excl; Such Sequence&excl;&lpar;线段树&rpar;

    题目链接:hdu 4983 Wow! Such Sequence! 题目大意:就是三种操作 1 k d, 改动k的为值添加d 2 l r, 查询l到r的区间和 3 l r. 间l到r区间上的所以数变成 ...

  6. hdu4847&colon;Wow&excl; Such Doge&excl;(字符串匹配)

    题目:hdu4847:Wow! Such Doge! 题目大意:在给出的段落里面找出"doge"出现的次数.大写和小写都能够. 解题思路:字符串匹配问题,能够在之前将字母都转换成统 ...

  7. HDU-4847 Wow&excl; Such Doge&excl;,模拟!

    Wow! Such Doge! 题意:给定的字符串中doge出现了多少次,直接模拟即可,不用KMP. char s[N]; int main() { // int n; int ans=0; whil ...

  8. HDU 4850 Wow&excl; Such String&excl;&lpar;欧拉道路&rpar;

    HDU 4850 Wow! Such String! 题目链接 题意:求50W内的字符串.要求长度大于等于4的子串,仅仅出现一次 思路:须要推理.考虑4个字母的字符串,一共同拥有26^4种,这些由这些 ...

  9. HDU 4849 Wow&excl; Such City&excl;陕西邀请赛C&lpar;最短路)

    HDU 4849 Wow! Such City! 题目链接 题意:依照题目中的公式构造出临接矩阵后.求出1到2 - n最短路%M的最小值 思路:就依据题目中方法构造矩阵,然后写一个dijkstra,利 ...

随机推荐

  1. 解决在VS2015下用C&plus;&plus;开发的DLL在WIN7上无法加载运行

    首先用Dependency Walker检查该DLL依赖的库,如下图所示: 依赖的动态库除了KERNEL32.DLL.USER32.DLL外,还包括了MSVCP120D.DLL以及MSVCR120D. ...

  2. C&num;日期格式转换

    DateTime dt = DateTime.Now; // Label1.Text = dt.ToString();//2005-11-5 13:21:25 // Label2.Text = dt. ...

  3. Math中floor&comma;round和ceil的区别

    floor 返回不大于的最大整数 round 则是4舍5入的计算,入的时候是到大于它的整数(当-1.5时可见,四舍五入后得到的结果不是我们期待的,解决办法是先对他取绝对值,然后在用round方法) r ...

  4. &lbrack;iOS基础控件 - 6&period;10&period;6&rsqb; UIApplicationDelegate &amp&semi; 程序启动过程

    A.概念 1.移动app非常容易受到其他的系统.软件事件的干扰,如来电.锁屏 2.app受到干扰的时候,UIApplication会通知delegate,来代理处理干扰事件 3.delegate可以处 ...

  5. 深入解析Javascript异步编程

    这里深入探讨下Javascript的异步编程技术.(P.S. 本文较长,请准备好瓜子可乐 :D) 一. Javascript异步编程简介 至少在语言级别上,Javascript是单线程的,因此异步编程 ...

  6. Python基础数据类型之集合以及其他和深浅copy

    一.基础数据类型汇总补充 list  在循环一个列表时,最好不要删除列表中的元素,这样会使索引发生改变,从而报错(可以从后向前循环删除,这样不会改变未删元素的索引). 错误示范: lis = [,,, ...

  7. 一起来学spring Cloud &vert; 第一章:spring Cloud 与Spring Boot

    目前大家都在说微服务,其实微服务不是一个名字,是一个架构的概念,大家现在使用的基于RPC框架(dubbo.thrift等)架构其实也能算作一种微服务架构. 目前越来越多的公司开始使用微服务架构,所以在 ...

  8. text-transform CSS

    text-transform  控制文本的大小写(只对英文起作用,对汉字无效) Example: <p class="p1">This is an HI Element ...

  9. 利用pt-table-checksum校验数据一致性

    相信很多人的线上都搭建了MySQL主从这样的框架,很多人只监控MySQL的从服务器Slave_IO和Slave_SQL这两个线程是否为YES,还有 Seconds_Behind_Master延迟大不大 ...

  10. 利用css如何让嵌套的div层不继承父div层的透明度?

    http://zhidao.baidu.com/link?url=cvQhh0Q7_ah0qg9tc-2zP0cjB_PoIiIq6t6RFpp4aZPPNoVJUqyy7TT41TU5pWzRtRY ...