## Boolean

View as PDF

Points: 4
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

A boolean value can be either True or False. Given a string with less than 1000 characters with a number of space-separated not directives terminated by a True or False value, evaluate the boolean expression.

#### Sample Input 1

not not True

#### Sample Output 1

True

#### Sample Input 2

not not not False

#### Sample Output 2

True

• Zafirua  commented on Dec. 9, 2018, 3:57 p.m.

I can't find any way to get below 4.85 seconds in lua. ;-;

• HUMPYDUMPY  commented on Nov. 4, 2018, 2:48 p.m.
• LiFengxun  commented on Oct. 20, 2018, 11:01 a.m.

wow!!! 498test cases!!!

• geese  commented on Oct. 26, 2018, 2:05 p.m.
• AlanL  commented on Oct. 20, 2018, 12:28 p.m.

• Raymo111  commented on Aug. 7, 2018, 10:15 a.m.

Hey! This question is unfair towards those who don't use python.

• xxsc  commented on July 5, 2018, 9:00 p.m.

Oh wow. That's a lot of test cases.

P.S. I got 498 test cases.

• TimothyW553  commented on July 6, 2018, 1:04 p.m.

Yeah cus I math.random'd it and the dark lord didn't want me to ac

• xxsc  commented on July 7, 2018, 8:56 p.m. edited

dark lord?

loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooool

yeah right

• root  commented on June 22, 2017, 8:40 p.m.

Never thought I'd ever see a problem where the assembly solution is shorter than C++.

• println_hi_  commented on Oct. 20, 2016, 7:52 p.m.
Restriction?

You might want to ban the use of pythons exec and eval

• Xyene  commented on Oct. 20, 2016, 7:57 p.m.

The format the input is given in is not a coincidence.

• richardyi25  commented on March 5, 2016, 10:18 p.m.
Python

This problem might be a bit easy in Python

• Kirito  commented on March 5, 2016, 11:14 p.m.

Python 2, that is. Python 3 still requires work.

• richardyi25  commented on March 6, 2016, 11:30 a.m.

You can still do it in one line on Python 3 :)

• AceWrecke  commented on Sept. 26, 2017, 10:24 p.m.

Technically you can do it with 0 lines on python

• Kirito  commented on March 6, 2016, 2:15 p.m.

Right. Python's an interpreted language. Gotta remember that.

On an unrelated note, I wonder if I can get AHK to solve equations by highlighting them using the same idea? Would save me so much time.

• moladan123  commented on March 6, 2016, 11:13 a.m.

Not if you know the right shortcut ;)

• TimothyW553  commented on Aug. 7, 2018, 10:49 a.m.

I mean that's why it's not 3 points?