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

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 ;
}

最新文章

  1. Python绘图
  2. java 判断两个list是否相等
  3. percona教程:MySQL GROUP_CONCAT的使用
  4. 字典树的C++实现
  5. arcengine 常用方法
  6. UOJ52——【UR #4】元旦激光炮
  7. Scrum团队成立
  8. 银行ATM机工作流程模拟编程(代码)
  9. 基于RPC原理的dubbo
  10. [转]ORACLE 异常错误处理
  11. Spring事务传播特性的浅析——事务方法嵌套调用的迷茫
  12. 【ADO.NET】7、SQL高级封装
  13. Java SE Eclipse中引入第三方jar及class
  14. 从JDK源码角度看线程池原理
  15. windows环境下zookeeper安装和使用
  16. MySQL源码包编译安装
  17. VisualStudioCode中用dotnet命令创建多个ASP.NET Core 项目、类库、控制台程序,并添加应用间的引用
  18. unity修改脚本的图标
  19. [luogu5008]逛庭院
  20. Codeforces Round #409 (rated, Div. 2, based on VK Cup 2017 Round 2) 题解【ABCDE】

热门文章

  1. OpenJDK源码研究笔记(五)-缓存Integer等类型的频繁使用的数据和对象,大幅度提升性能(一道经典的Java笔试题)
  2. 最强最全干货分享:Android开发书籍、教程、工具等
  3. XUtils3框架的基本用法(一)
  4. 程序员之---C语言细节12(指针和数组细节,&amp;quot;//&amp;quot;的可移植性说明)
  5. hdu 4771 求一点遍历全部给定点的最短路(bfs+dfs)
  6. hdoj 3376,2686 Matrix Again 【最小费用最大流】
  7. R语言写简单线性回归
  8. 什么是MySQL?(一)
  9. 当fastJson邂逅大写字段时
  10. VS2013+PTVS,python编码问题