- #include <iostream>
- #include <cstdio>
- #include <string>
- #include <cstring>
- #include <cstdlib>
- using namespace std;
- int main(){
- int t;
- cin >> t;
- getchar();
- string s;
- while(t--){
- cin >> s;
- int l = s.size();
- if(s[l-2] == '3' && s[l-1] == '5')cout << "-" << endl;
- else if(s[0] == '9' && s[l-1] == '4')cout << "*" << endl;
- else if(s[0] == '1' && s[1] == '9' && s[2] == '0')cout << "?" << endl;
- else cout << "+" << endl;
- }
- return 0;
- }
Friday, April 24, 2015
UVa - 621 - Secret Research
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment