HDU 4847-wow! Such doge! (positioning)

Source: Internet
Author: User

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, 2013.

Doge is a 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 中文版, and usually contains the W Ord "Wow" and the phrases "such X", "Much X", "Many X", "Very X" and "So X".
Kabosu, the Shiba Inu featured in the original meme, is first pictured in a-blog post by Atsuko Sato, a Japanese kin Dergarten 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 is mentioned in an episode of H Omestar Runners puppet series.
In August, 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- Following month. By November, the meme had become widespread on the Internet. Google later created a Doge Easter Egg:when Doge meme was entered to the YouTube search bar, all of the site ' s text wou LD is displayed in colorful Comic Sans, similar to the kind used by the meme.
The meme was ranked #12 on MTV's list of "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 are a female Shiba Inu named Kabosu, taken from a Japanese blog documen Ting the dog ' s daily activities. The spelling of Doge have several variants, leading to debate on its actual pronunciation. On December, Doge is named the "Top meme" of the by Know Your meme.
In December, the Dogecoin is introduced as a new cryptocurrency, making it the first cryptocurrency to being based on a n Internet meme; The viral phenomenon, along with usage of the Comic Sans MS typeface, gave it "the Internet density of a large star" Accor Ding to Medium writer Quinn Norton.
In late December, members of the U.S. Congress produced material in the meme ' S style. Huffington Post commented that Doge is "killed" because of the Congress members ' usage of the meme.
By early, Doge ' s popularity is sustained by Internet communities on social media, accompanied by the rapid growth an D acceptance of Dogecoin. In April, Doge experienced a second major media resurgence due to revelations of the Dogecoin community ' s intent to S Ponsor Josh Wise in NASCAR and place a picture of the Shiba Inu on his vehicle.

--doge (meme). (May 18).
In Wikipedia, the free encyclopedia. Retrieved 02:00, May.
Http://en.wikipedia.org/w/index.php?title=Doge_ (meme) &oldid=609040691

Now, Doge wants to know how many words "Doge" is there in a given article. Would 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- inchsensitive). Refer to the samples for more details.
Sample Input
Adogecutedo Yourge blowndogelovelydoogewow! Such dooooooooooooooge!!! D0gedoge DOGE Dogedoge

Sample Output
62014 XI ' An invitational registration question. Give an article asking for the number of occurrences of doge, without distinction between uppercase and lowercase.

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

Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.

HDU 4847-wow! Such doge! (positioning)

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.