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

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

  1. HDOJ(HDU) 4847 Wow! Such Doge!(doge字符统计)

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

  2. HDU 4847 陕西邀请赛A(水)

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

  3. (KMP 水)Wow! Such Doge! -- hdu -- 4847

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

  4. hdu 4850 Wow! Such String! 欧拉回路

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

  5. hdu 4893 Wow! Such Sequence!(线段树)

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

  6. hdu4847:Wow! Such Doge!(字符串匹配)

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

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

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

  8. HDU 4850 Wow! Such String!(欧拉道路)

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

  9. HDU 4849 Wow! Such City!陕西邀请赛C(最短路)

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

随机推荐

  1. Android与设计模式——单例(Singleton)模式

    概念: java中单例模式是一种常见的设计模式.单例模式分三种:懒汉式单例.饿汉式单例.登记式单例三种. 单例模式有一下特点: 1.单例类仅仅能有一个实例. 2.单例类必须自己自己创建自己的唯一实例. ...

  2. [MST] Build Forms with React to Edit mobx-state-tree Models

    We will expand our UI, and give the user the possibility to edit his wishlist. We will use the earli ...

  3. Failed to start metasploit.service: Unit metasploit.service not found的解释

    不多说,直接上干货! root@kali:~# service metasploit start Failed to start metasploit.service: Unit metasploit ...

  4. Hadoop框架基础(三)

    ** Hadoop框架基础(三) 上一节我们使用eclipse运行展示了hdfs系统中的某个文件数据,这一节我们简析一下离线计算框架MapReduce,以及通过eclipse来编写关于MapReduc ...

  5. Java基础学习(六)-- 递归以及文件I/O流基础详解

    递归 1.递归的概念: 在函数自身内部,调用函数本身的方式,称为递归. 2.递归的注意事项:包括递进去,归出来两步.   即:首先依次执行[函数调自身语句]上半部分的代码,知道最里层.(递进去),然后 ...

  6. 关于网易云音乐爬虫的api接口?

    抓包能力有限,分析了一下网易云音乐的一些api接口,但是关于它很多post请求都是加了密,没有弄太明白.之前在知乎看到过一个豆瓣工程师写的教程,但是被投诉删掉了,请问有网友fork了的吗?因为我觉得他 ...

  7. 上传golang 版本SDK

    在上传的时候,文件都上传成功了,但是返回的信息里面errcode 404 token 是"".是不是因为我的callbackUrl(随便写的) 写错导致的. 上传golang 版本 ...

  8. vuejs keep-alive

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  9. NodeJS学习笔记 (24)本地路径处理-path(ok)

    模块概览 在nodejs中,path是个使用频率很高,但却让人又爱又恨的模块.部分因为文档说的不够清晰,部分因为接口的平台差异性. 将path的接口按照用途归类,仔细琢磨琢磨,也就没那么费解了. 获取 ...

  10. ArchLinux 设置时间同步和硬件时间同步错误 No usable clock interface found

    笔记本不知道怎么了,总是时间对不上 硬件时间也设置不了,只能时间同步了 手动时间同步 ntpdate即可,ntp服务器在这里用这两个就好了 cn.ntp.org.cn 或 edu.ntp.org.cn ...