Skip to content

Instantly share code, notes, and snippets.

@TheoKlein
Created September 19, 2015 11:32
Show Gist options
  • Select an option

  • Save TheoKlein/40919edc4d671e52f9ae to your computer and use it in GitHub Desktop.

Select an option

Save TheoKlein/40919edc4d671e52f9ae 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