-
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
-
To solve the problems, you can either start a virtual contest or register for regular practice. A virtual contest simulates a participation in the original contest with a duration of 02:00:00, while regular practice lets you submit solutions without any constraints.
You must log in to register. - A Accelerated Learning
- D Divisibility test
- E Easy Query
- F Fact Check
- G Open Wide
- H High Noon
- K You wouldn't kill a kitten
- M Make Kattis Happy
- P Problemhunt?
- S Solution Presentation