ZeroJudge & UVa Online Judge answers
#include #include using namespace std;int main(){ int t; while(cin >> t) { cout<<( t > 0 ? 1 : (t < 0 ? -1 : 0) ); } return 0;}
No comments:
Post a Comment