Skip to content

Instantly share code, notes, and snippets.

@4lehandro
Forked from TheoKlein/ZeroJudge d058.cpp
Last active September 19, 2015 11:34
Show Gist options
  • Select an option

  • Save 4lehandro/db921c59b836bbb33971 to your computer and use it in GitHub Desktop.

Select an option

Save 4lehandro/db921c59b836bbb33971 to your computer and use it in GitHub Desktop.
ZeroJudge d058
#include <stdio.h>
int main() {
int n;
scanf ("%d",&n);
//true = 1 , false = 0
printf ("%d\n",(n > 0) - (n < 0));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment