Submit solution
Points:
0 (partial)
Time limit:
2.0s
Memory limit:
256M
Author:
Problem type
Allowed languages
Python
One of DMOJ's oldest problems, Boolean, is coming back! Unfortunately, many users have been exploiting the problem by cheesing it with eval
. This time, we've made sure not to let that happen.
Given a string consisting of a non-negative number of space-separated not
directives followed by a true
or false
, evaluate the boolean expression.
Note: You may only submit to this problem in Python 3.
Input Specification
The first line of input contains a string .
Output Specification
Output on a single line, either true
or false
, corresponding to the result of the boolean expression.
Scoring
Your score will be computed based on the length of your source code, the shorter the better. For an -byte program,
- if , you will receive the full points.
- if , you will receive points.
- if , you will receive points.
Sample Input 1
not not true
Sample Output 1
true
Sample Input 2
not not not false
Sample Output 2
true
Comments