Hdoj (HDU) 4847 wow! Such doge! (Doge character Statistics)

Source: Internet
Author: User

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?

Input
An article this 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

The output of the topic does not have an end sign, which is the number of times the word appears in the end of the output doge, not case sensitive!

Import Java.util.Scanner; Public  class Main{     Public Static voidMain (string[] args) {Scanner sc =NewScanner (system.in);int sum=0; while(Sc.hasnext ()) {StringStr=sc.next (); for(intI=0;i<Str. Length ()-3; i++) {if(Str. charAt (i) = =' d '||Str. charAt (i) = =' D '){if(Str. CharAt (i+1)==' O '||Str. CharAt (i+1)==' O '){if(Str. CharAt (i+2)==' G '||Str. CharAt (i+2)==' G '){if(Str. CharAt (i+3)==' E '||Str. CharAt (i+3)==' E '){sum++; i=i+3; }}}}} System.out.println (sum); }}

Hdoj (HDU) 4847 wow! Such doge! (Doge character Statistics)

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.