CSES - Datatähti 2020 alku - Results
Submission details
Task:Ruudukko
Sender:elcaroak
Submission time:2019-10-04 14:59:01 +0300
Language:Python3 (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

def oOne(a,b):
	oOnes = 0
	for i in range(a,b+1):
		if len(str(i).replace('0','').replace('1',''))==0:
			oOnes+=1
	print(oOnes)

n = int(input())
a = [input() for _ in range(n)]
for i in [i.split(' ') for i in a]:
	oOne(int(i[0]),int(i[1]))

Test details

Test 1

Verdict:

input
1

correct output

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 9, in <module>
    a = [in...

Test 2

Verdict:

input
2

correct output
1 2 
2 1 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 9, in <module>
    a = [in...

Test 3

Verdict:

input
5

correct output
1 2 3 4 5 
2 1 4 3 6 
3 4 1 2 7 
4 3 2 1 8 
5 6 7 8 1 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 9, in <module>
    a = [in...

Test 4

Verdict:

input
42

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 9, in <module>
    a = [in...

Test 5

Verdict:

input
99

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 9, in <module>
    a = [in...

Test 6

Verdict:

input
100

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 9, in <module>
    a = [in...