CSES - Datatähti 2023 alku - Results
Submission details
Task:Kortit
Sender:hongbo_zhang
Submission time:2022-11-03 01:12:11 +0200
Language:CPython3
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.02 sdetails
#20.02 sdetails
#30.02 sdetails
#40.02 sdetails
#50.02 sdetails
#60.02 sdetails

Code

while True:
    n = int(input("how many cards do you want to draw:"))
    if n > 1 and n <= 26:
        print("MAYBE")
    elif n >= 27 and n <= 52:
        print("YES")
    elif n <= 1:
        print("NO")
    else:
        break

Test details

Test 1

Verdict:

input
0

correct output
NO

user output
how many cards do you want to ...

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 2, in <module>
    n...

Test 2

Verdict:

input
1

correct output
NO

user output
how many cards do you want to ...

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 2, in <module>
    n...

Test 3

Verdict:

input
2

correct output
MAYBE

user output
how many cards do you want to ...

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 2, in <module>
    n...

Test 4

Verdict:

input
26

correct output
MAYBE

user output
how many cards do you want to ...

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 2, in <module>
    n...

Test 5

Verdict:

input
27

correct output
YES

user output
how many cards do you want to ...

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 2, in <module>
    n...

Test 6

Verdict:

input
52

correct output
YES

user output
how many cards do you want to ...

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 2, in <module>
    n...