Skip to content

Instantly share code, notes, and snippets.

@ik11235
Created December 6, 2014 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ik11235/571ed95173e3e31a5369 to your computer and use it in GitHub Desktop.
Save ik11235/571ed95173e3e31a5369 to your computer and use it in GitHub Desktop.
#include<algorithm>
#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(a+b==c && a-b==c)
cout<<"?"<<endl;
else if(a+b==c)
cout<<"+"<<endl;
else if(a-b==c)
cout<<"-"<<endl;
else
cout<<"!"<<endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment