HDU 5774 Where Amazing Happens

來源:互聯網
上載者:User

標籤:

水題。比賽的時候用txt刪了數字還有-,然後WA了。。。然後發現Philadelphia 76ers,這個隊名中有數字......

#pragma comment(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 namespace std;typedef long long LL;const double pi=acos(-1.0),eps=1e-8;void File(){    freopen("D:\\in.txt","r",stdin);    freopen("D:\\out.txt","w",stdout);}inline int read(){    char c = getchar();    while(!isdigit(c)) c = getchar();    int x = 0;    while(isdigit(c))    {        x = x * 10 + c - ‘0‘;        c = getchar();    }    return x;}char s[100][50]={    "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",};char u[1000];int T;int main(){    scanf("%d",&T);int cas=1;getchar();    while(T--)    {        gets(u); int ans=0;        for(int i=0; i<70; i++) if(strcmp(u,s[i])==0) ans++;        printf("Case #%d: %d\n",cas++,ans);    }    return 0;}

 

HDU 5774 Where Amazing Happens

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.