Created
September 19, 2015 11:32
-
-
Save TheoKlein/40919edc4d671e52f9ae to your computer and use it in GitHub Desktop.
ZeroJudge d058
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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