#CCBCMCHIN0000004. Phủ định một điều kiện (Logical Negation)
Phủ định một điều kiện (Logical Negation)
Logical Negation
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given an integer . In C conditions, zero is treated as false and every nonzero value is treated as true. Determine the logical value of !x.
Input
A single line contains the integer .
Output
Print TRUE if !x is true; otherwise print FALSE.
Subtasks
- Subtask 1 (20 points): .
- Subtask 2 (30 points): .
- Subtask 3 (50 points): .
Examples
Example 1
Input
0
Output
TRUE
Explanation
In C, zero is false and any nonzero integer is true. With x = 0, !x is true, so the output is TRUE.
Example 2
Input
-1
Output
FALSE
Explanation
In C, zero is false and any nonzero integer is true. With x = -1, !x is false, so the output is FALSE.