HDU 4847-Wow! Such Doge! (Sign in), hdudoge

Source: Internet
Author: User

HDU 4847-Wow! Such Doge! (Sign in), hdudoge
Wow! Such Doge!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission (s): 693 Accepted Submission (s): 447


Problem Description


Chen, Adrian (November 7, 2013). "Doge Is An Ac-tually Good Internet Meme. Wow.". Gawker. Retrieved November 22,201 3.

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 ", "limit 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, SHBA 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 wocould 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 container l 2014, Doge experienced a second major media resurgence due to revelations of the Dogecoin community's intent to login sor 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, May 22,201 4, from
Http://en.wikipedia.org/w/index.php? Title = Doge _ (meme) & amp; oldid = 609040691

Now, Doge wants to know how many words "doge" are there in a given article. wocould you like to help Doge solve this problem?
InputAn article that Doge wants to know.
The size of the article does not exceed 64KB. The article contains only ASCII characters.
OutputPlease output the number of word "doge" (case- InSensitive). Refer to the samples for more details.
Sample Input
adogecutedo yourge blownDogelovelyDoogeWow!Such Dooooooooooooooge!!!D0gedOge DOGE dogedoge
 
Sample Output
Questions about signing in for the 62014 Xi'an Invitational competition .. For an article, the number of times doge appears is required, which is case insensitive.
#include <iostream>#include <cmath>#include <cstdio>#include <algorithm>#include <queue>#include <set>#include <map>#include <cstring>#include <string>using namespace std;#define ll long longchar s[1000010];int main(){  int cnt=0;  while(gets(s))  {  int len=strlen(s);  for(int i=0;i<len;i++)if(isalpha(s[i]))s[i]=tolower(s[i]);int i=0;while(i<len){if(strncmp(s+i,"doge",4)==0){cnt++;i+=4;}else++i;}  }  printf("%d\n",cnt);  return 0;}



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.