HDU 4847 Wow! Such Doge!
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
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?
The size of the article does not exceed 64KB. The article contains only ASCII characters.
dOge DOGE
#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!的更多相关文章
- HDOJ(HDU) 4847 Wow! Such Doge!(doge字符统计)
Problem Description Chen, Adrian (November 7, 2013). "Doge Is An Ac- tually Good Internet Meme. ...
- HDU 4847 陕西邀请赛A(水)
HDU 4847 Wow! Such Doge! pid=4847" style="">题目链接 题意:给定文本,求有几个doge,不区分大写和小写 思路:水题.直 ...
- (KMP 水)Wow! Such Doge! -- hdu -- 4847
http://acm.hdu.edu.cn/showproblem.php?pid=4847 Wow! Such Doge! Time Limit:1000MS Memory Limit:32 ...
- hdu 4850 Wow! Such String! 欧拉回路
作者:jostree 转载请注明出处 http://www.cnblogs.com/jostree/p/4080264.html 题目链接:hdu 4850 Wow! Such String! 欧拉回 ...
- 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区间上的所以数变成 ...
- hdu4847:Wow! Such Doge!(字符串匹配)
题目:hdu4847:Wow! Such Doge! 题目大意:在给出的段落里面找出"doge"出现的次数.大写和小写都能够. 解题思路:字符串匹配问题,能够在之前将字母都转换成统 ...
- HDU-4847 Wow! Such Doge!,模拟!
Wow! Such Doge! 题意:给定的字符串中doge出现了多少次,直接模拟即可,不用KMP. char s[N]; int main() { // int n; int ans=0; whil ...
- HDU 4850 Wow! Such String!(欧拉道路)
HDU 4850 Wow! Such String! 题目链接 题意:求50W内的字符串.要求长度大于等于4的子串,仅仅出现一次 思路:须要推理.考虑4个字母的字符串,一共同拥有26^4种,这些由这些 ...
- HDU 4849 Wow! Such City!陕西邀请赛C(最短路)
HDU 4849 Wow! Such City! 题目链接 题意:依照题目中的公式构造出临接矩阵后.求出1到2 - n最短路%M的最小值 思路:就依据题目中方法构造矩阵,然后写一个dijkstra,利 ...
随机推荐
- 2019年北航OO第三单元(JML规格任务)总结
一.JML简介 1.1 JML与契约式设计 说起JML,就不得不提到契约式设计(Design by Contract).这种设计模式的始祖是1986年的Eiffel语言.它是一种限定了软件中每个元素所 ...
- LaTeX 矩阵
本系列文章由 @YhL_Leo 出品,转载请注明出处. 文章链接: http://blog.csdn.net/yhl_leo/article/details/50054363 LaTeX 写矩阵,需要 ...
- 采药 水题 dp 01背包问题 luogu1048
最基本的01背包,不需要太多解释,刚学dp的同学可以参见dd大牛的背包九讲,直接度娘“背包九讲”即可搜到 #include <cstdio> #include <cstring> ...
- nginx模块开发
开发方法參考淘宝的教程 这个模块的功能是向client发送一个文件,类似于网页上的另存为功能 #include <ngx_config.h> #include <ngx_core.h ...
- JAVA学习第四十六课 — 其它对象API(二)Date类 & Calendar类(重点掌握)
Date类(重点) 开发时,会时常遇见时间显示的情况,所以必须熟练Date的应用 <span style="font-family:KaiTi_GB2312;font-size:18p ...
- hdoj--1005--Number Sequence(规律题)
Number Sequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) ...
- AS3 常见问题
SharedObject 不起作用(exe, air中) var so:SharedObject = SharedObject.getLocal("aa", "/&quo ...
- BZOJ 2127: happiness(最小割解决集合划分)
Time Limit: 51 Sec Memory Limit: 259 MBSubmit: 2350 Solved: 1138[Submit][Status][Discuss] Descript ...
- 二维码扫描ZXing简化
最近项目中有需要用到二维码扫描功能,于是查了相关资料,也没有过多地研究ZXing源码,只是有了最简单的功能,因为下载大牛的demo已经完全实现了功能,只是对其中的扫描线做了更改,需要的朋友可以直接使用 ...
- <Sicily>Huffman coding
一.题目描述 In computer science and information theory, a Huffman code is an optimal prefix code algorith ...