-
-
Save 4lehandro/db921c59b836bbb33971 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