HDU 5774 Where Amazing happens

Source: Internet
Author: User

Water problem. The game with TXT deleted the number and-and then wa ... Then found Philadelphia 76ers, this team name has numbers ...

#pragmaComment (linker, "/stack:1024000000,1024000000")#include<cstdio>#include<cstring>#include<cmath>#include<algorithm>#include<vector>#include<map>#include<Set>#include<queue>#include<stack>#include<iostream>using namespaceStd;typedefLong LongLL;Const DoublePi=acos (-1.0), eps=1e-8;voidFile () {freopen ("D:\\in.txt","R", stdin); Freopen ("D:\\out.txt","W", stdout);} InlineintRead () {Charc =GetChar ();  while(!isdigit (c)) C =GetChar (); intx =0;  while(IsDigit (c)) {x= x *Ten+ C-'0'; C=GetChar (); }    returnx;}Chars[ -][ -]={    "Cleveland Cavaliers",    "Golden State Warriors",    "San Antonio Spurs",    "Miami Heat",    "Miami Heat",    "Dallas Mavericks",    "L.A. Lakers",    "L.A. Lakers",    "Boston Celtics",    "San Antonio Spurs",    "Miami Heat",    "San Antonio Spurs",    "Detroit Pistons",    "San Antonio Spurs",    "L.A. Lakers",    "L.A. Lakers",    "L.A. Lakers",    "San Antonio Spurs",    "Chicago Bulls",    "Chicago Bulls",    "Chicago Bulls",    "Houston Rockets",    "Houston Rockets",    "Chicago Bulls",    "Chicago Bulls",    "Chicago Bulls",    "Detroit Pistons",    "Detroit Pistons",    "L.A. Lakers",    "L.A. Lakers",    "Boston Celtics",    "L.A. Lakers",    "Boston Celtics",    "Philadelphia 76ers",    "L.A. Lakers",    "Boston Celtics",    "L.A. Lakers",    "Seattle Sonics",    "Washington Bullets",    "Portland Trail Blazers",    "Boston Celtics",    "Golden State Warriors",    "Boston Celtics",    "New York Knicks",    "L.A. Lakers",    "Milwaukee Bucks",    "New York Knicks",    "Boston Celtics",    "Boston Celtics",    "Philadelphia 76ers",    "Boston Celtics",    "Boston Celtics",    "Boston Celtics",    "Boston Celtics",    "Boston Celtics",    "Boston Celtics",    "Boston Celtics",    "Boston Celtics",    "St. Louis Hawks",    "Boston Celtics",    "Philadelphia Warriors",    "Syracuse Nats",    "Minneapolis Lakers",    "Minneapolis Lakers",    "Minneapolis Lakers",    "Rochester Royals",    "Minneapolis Lakers",    "Minneapolis Lakers",    "Baltimore Bullets",    "Philadelphia Warriors",};Charu[ +];intT;intMain () {scanf ("%d", &t);intcas=1; GetChar ();  while(t--) {gets (U);intans=0;  for(intI=0; i< -; i++)if(strcmp (u,s[i]) = =0) ans++; printf ("Case #%d:%d\n", cas++, ans); }    return 0;}

HDU 5774 Where Amazing happens

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.