#33221: ru,3286


yp11151119@yphs.tp.edu.tw (911-36張鈞晏)

學校 : 臺北市私立延平高級中學
編號 : 197210
來源 : [203.72.178.1]
最後登入時間 :
2024-11-15 18:00:44
a135. 12250 - Language Detection -- UVa12250 | From: [36.226.123.216] | 發表日期 : 2022-12-11 21:49

#include<bits/stdc++.h>
using namespace std;
int main(){
    string a;
    int i=1;
    while(cin>>a){
        if(a=="HELLO")     cout<<"Case "<<i<<": "<<"ENGLISH"<<endl;
        else if(a=="HOLA")     cout<<"Case "<<i<<": "<<"SPANISH"<<endl;
        else if(a=="HALLO")     cout<<"Case "<<i<<": "<<"GERMAN"<<endl;
        else if(a=="BONJOUR")     cout<<"Case "<<i<<": "<<"FRENCH"<<endl;
        else if(a=="CIAO")     cout<<"Case "<<i<<": "<<"ITALIAN"<<endl;
        else if(a=="ZDRAVSTVUJTE")     cout<<"Case "<<i<<": "<<"RUSSIAN"<<endl;
        else if(a=="#") break;
        else cout<<"Case "<<i<<": "<<"UNKNOWN"<<endl;
        i++;
    }
    return 0;
}

 

 
ZeroJudge Forum