Fact Check

Time: 1.0 s     Memory: 1024 MB
  • After the popularization of large language models, it is harder than ever to distinguish truth from falsehoods. In their ongoing quest to be one of the better languages, the Python commitee has decided to create the module factcheck. This module defines the function istrue: given a string describing a statement, it returns True if the statement is True, otherwise False. Somehow, it has now become your task to implement this functionality.

    Input

    The input contains a single string, describing a statement.

    Fortunately, the test data for this problem is not evil. For example, it contains no paradoxes such as "this statement is false", statements we do not know the truthhood of, such as "every even natural number greater than 2 can be written as the sum of 2 primes", or subjective statements such as "Sven is the best polar bear".

    Output

    Print "True" if the statement is true, otherwise "False".

    Points

    If your solution correctly answers all questions, you will receive 110 points.

    Note: If you do not speak Swedish, it is highly recommended to translate the samples.

    Sample Input 1 Sample Output 1
    Sverige har vunnit IOI två gånger
    
    True
    
    Sample Input 2 Sample Output 2
    1+1=2
    
    True
    
    Sample Input 3 Sample Output 3
    Bandet Polyphia skrev låten "Playing God"
    
    True
    
    Sample Input 4 Sample Output 4
    Joshua Andersson hade 692 contributions på Github år 2023
    
    True
    
    Sample Input 5 Sample Output 5
    Bandet Polyphia skrev låten "G.O.A.T."
    
    True
    
    Sample Input 6 Sample Output 6
    Harry Zhang hade 420 contributions på Github år 2023
    
    False
    
    Sample Input 7 Sample Output 7
    (1+1)*2=4
    
    True
    
    Sample Input 8 Sample Output 8
    Lösningen till Problemhunt är samma som ett av problemen på denna sida https://open.kattis.com/problem-sources/Doris 2023 deltävling 2
    
    True
    
April fools 2024
You must log in to submit solutions to the problem.
{"contest_start_timestamp": 1711962000, "contest_duration": 7200, "contest_started": true, "contest_ended": true, "flexible_start_window_end_time": null, "only_virtual": false}