Submit solution

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

Comments


  • 7
    andraantariksa  commented on April 26, 2019, 11:21 a.m.

    I think the test case is too much.


  • 4
    Piercenia  commented on Jan. 1, 2019, 12:48 a.m.

    I need a bit of help after I had 250 successful cases something went wrong and I can't figure out what.


    • 3
      Kirito  commented on Jan. 1, 2019, 2:37 a.m.

      Try some cases, for example:

      not not not False

      • 3
        Piercenia  commented on Jan. 1, 2019, 3:03 p.m.

        Thank you!


  • -7
    Anoobis  commented on Dec. 18, 2018, 11:43 a.m.

    This comment is hidden due to too much negative feedback. Click here to view it.


    • 21
      Kirito  commented on Dec. 19, 2018, 9:53 a.m.

      Congratulations on successfully convincing yourself that over 1000 people have solved this problem incorrectly.

      Your program is what is incorrect, as you have not considered all cases. Specifically, there is a case where you output nothing.


      • -4
        Anoobis  commented on Dec. 20, 2018, 1:52 p.m.

        Thanks for the help LOL


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

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


  • -5
    LiFengxun  commented on Oct. 20, 2018, 11:01 a.m.

    This comment is hidden due to too much negative feedback. Click here to view it.


    • -3
      lele  commented on Jan. 27, 2019, 12:20 p.m.

      I know! They went a bit overboard with the test cases. Pretty sure it took 30 seconds.


    • 13
      geese  commented on Oct. 26, 2018, 2:05 p.m.

      • 1
        VorticL  commented on Dec. 27, 2018, 9:34 p.m.

        franxia is actually the teacher of all these students including me and when he taught us this case we copied his code and that's why its all the same


        • -15
          andisong  commented on March 23, 2019, 5:05 p.m.

          This comment is hidden due to too much negative feedback. Click here to view it.


    • -2
      AlanL  commented on Oct. 20, 2018, 12:28 p.m.

      Stated already... ↓


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

    This comment is hidden due to too much negative feedback. Click here to view it.


    • -2
      noYou  commented on April 1, 2020, 3:00 p.m. edited

      Why are we booing him? The input is literally in python code format, which means that if you input into a python shell, it will actually run. That means that the problem is easily cheesed with python's eval that allows you to run python code in string form. Don't believe me? Look at all the top pypy3 submissions. It's literally one line of code.


    • -8
      Super_User  commented on Dec. 27, 2019, 8:14 p.m. edit 2

      This comment is hidden due to too much negative feedback. Click here to view it.


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

    This comment is hidden due to too much negative feedback. Click here to view it.


    • 8
      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


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

        This comment is hidden due to too much negative feedback. Click here to view it.


  • -2
    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++.


  • -16
    println_hi_  commented on Oct. 20, 2016, 7:52 p.m.

    This comment is hidden due to too much negative feedback. Click here to view it.


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

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


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

    This problem might be a bit easy in Python


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

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


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

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


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

          This comment is hidden due to too much negative feedback. Click here to view it.


        • 4
          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.


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

        Not if you know the right shortcut ;)


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

          This comment is hidden due to too much negative feedback. Click here to view it.