#include<bits/stdc++.h> using namespace std; int main() { string s; long long cse=0; while(cin>>s){ if(s!="#"){ if(s=="HELLO") cout<<"Case "<<++cse<<": "<<"ENGLISH"<<endl; else if(s=="HOLA") cout<<"Case "<<++cse<<": "<<"SPANISH"<<endl; else if(s=="HALLO") cout<<"Case "<<++cse<<": "<<"GERMAN"<<endl; else if(s=="BONJOUR") cout<<"Case "<<++cse<<": "<<"FRENCH"<<endl; else if(s=="CIAO") cout<<"Case "<<++cse<<": "<<"ITALIAN"<<endl; else if(s=="ZDRAVSTVUJTE") cout<<"Case "<<++cse<<": "<<"RUSSIAN"<<endl; else cout<<"Case "<<++cse<<": "<<"UNKNOWN"<<endl; } else break; } }
I have stored my online judge solutions of my own :)
Thursday, January 28, 2016
UVA 12250 | | Language Detection
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment