ZhenlongDai/ACPR huggingface dataset:
Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = int(input())
print(['YES','NO'][x < 30])

Failing test case input:
-222

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
x = int(input())
print(['Yes','No'][x < 30])

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input("Enter number: "))
if a>=30:
    print("Yes")
else:
    print("No")

Failing test case input:
-208

Expected output:
No


Actual output:
Enter number: No


Fixed submission (verdict: Accepted):
a = int(input())
if a>=30:
    print("Yes")
else:
    print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x=int(input())
if(x>=30):
    print("YES")
else:
    print("NO")


Failing test case input:
-208

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
x=int(input())
if(x>=30):
    print("Yes")
else:
    print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
temp = int(input())
if temp >= 30:
  print("YES")
else:
  print("NO")

Failing test case input:
-222

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
temp = int(input())
if temp >= 30:
  print("Yes")
else:
  print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X = int(input())
if X <= 30:
  print("NO")
else:
  print("YES")

Failing test case input:
-208

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
X = int(input())
if X < 30:
  print("No")
else:
  print("Yes")

Problem: p02594
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
if int(input())>=30:
  print("YES")
else:
  print("NO")
  

Failing test case input:
-222

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
if int(input())>=30:
  print("Yes")
else:
  print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x=int(input())
if x>=30:
  print("YES")
else:
  print("NO")

Failing test case input:
-222

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
x=int(input())
if x>=30:
  print("Yes")
else:
  print("No")

Problem: p02594
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
if int(input()) >= 30:
    print('yes')
else:
    print('no')


Failing test case input:
-208

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
if int(input()) >= 30:
    print('Yes')
else:
    print('No')

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X = int(input('室温を入力 >>'))
if X >= 30:
    print('Yes')
else:
    print('No')

Failing test case input:
-222

Expected output:
No


Actual output:
室温を入力 >>No


Fixed submission (verdict: Accepted):
X = int(input())
if X >= 30:
    print('Yes')
else:
    print('No')

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = int(input())
if x >= 30:
  print("yes")
else:
  print("no")

Failing test case input:
-208

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
x = int(input())
if x >= 30:
  print("Yes")
else:
  print("No")
Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


N= []
N= int(input(" "))

if N >=30:
    print("YES")
else:
    print("NO")

Failing test case input:
-208

Expected output:
No


Actual output:
 NO


Fixed submission (verdict: Accepted):


N= []
N= int(input(" "))

if N>=30:
    print("Yes")
else:
    print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = int(input())

if x >= 30:
  print('yes')
else:
  print('no')


Failing test case input:
-208

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
x = int(input())

if x >= 30:
  print('Yes')
else:
  print('No')

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
if N >= 30:
    print("yes")
else:
    print("no")

Failing test case input:
-222

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N = int(input())
if N >= 30:
    print("Yes")
else:
    print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = int(input())

if x >= 30:
  print("YES")
else:
  print("NO")

Failing test case input:
-222

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
x = int(input())

if x>=30:
  print("Yes")
else:
  print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X = int(input())
for X in range(40):
 if X > 30:
   print("Yes")
 else:
   print("No")

Failing test case input:
-208

Expected output:
No


Actual output:
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes


Fixed submission (verdict: Accepted):
X = int(input())
if X >= 30:
    print("Yes")
else:
    print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main(N):
    print("YES" if N >= 30 else "NO")


N = int(input())
main(N)


Failing test case input:
-208

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
def main(N):
    print("Yes" if N >= 30 else "No")


N = int(input())
main(N)

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
input = int(input())

if 30<input:
    print("yes")
else:
    print("no")

Failing test case input:
-222

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
input = int(input())

if 30<=input:
    print("Yes")
else:
    print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X=int(input())
if X>=30:
    print("YES")
else:
    print("NO")

Failing test case input:
-208

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
X=int(input())
if X>=30:
    print("Yes")
else:
    print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print('Yes' if int(input()) <= 30 else 'No')

Failing test case input:
-222

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
print('Yes' if int(input()) >= 30 else 'No')
Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x=int(input())
if x>=30:
  print("YES")
else:
  print("NO")

Failing test case input:
-208

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
x = int(input())
if x >= 30:
    print("Yes")
else:
    print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = int(input())
if x <= 30:
    print('Yes')
else:
    print('No')

Failing test case input:
-222

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
x = int(input())
if x >= 30:
    print('Yes')
else:
    print('No')

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
temp = int(input())

if temp <= 30:
    ans = 'Yes'
else:
    ans = 'No'

print(ans)


Failing test case input:
-208

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
temp = int(input())

if 30 <= temp:
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X = int(input())
if  40 >= X >= -40:
    print('yes')
else:
    print('no')

Failing test case input:
-208

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
X = int(input())
if  30 <= X:
    print('Yes')
else:
    print('No')

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

X = int(input())

-40 <= X <= 40

if X <= 30:
    print("Yes")
else :
    print("No")

Failing test case input:
-208

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):

X = int(input())


-40 <= X <= 40

if X >= 30:
    print("Yes")
else :
    print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
if n<30:
  print("N0")
else:
  print("Yes")

Failing test case input:
-208

Expected output:
No


Actual output:
N0


Fixed submission (verdict: Accepted):
n=int(input())
if n<30:
  print("No")
else:
  print("Yes")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X =int(input())
if X <= 30:
    print("Yes")


Failing test case input:
-208

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
X =int(input())
if X >= 30:
    print("Yes")
else:
    print("No")

Problem: p02594
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
x = int(input())
if x >= 30:
	print("YES")
else:
 	print("NO")

Failing test case input:
-222

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
x = int(input())
if x >= 30:
	print("Yes")
else:
 	print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X = int(input())
if X <= 40:
  print("NO")
else:
  print("YES")
    

Failing test case input:
-208

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
X = int(input())
if X < 30:
  print("No")
else:
  print("Yes")
Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = int(input())
ans = 'YES' if x >= 30 else 'NO'
print(ans)

Failing test case input:
-208

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
x = int(input())
ans = 'Yes' if x >= 30 else 'No'
print(ans)

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

x = int(input("入力: "))


if x >= 30:
    print("Yes")
elif x < 30:
    print("No")
else:
    print("エラー")

Failing test case input:
-208

Expected output:
No


Actual output:
入力: No


Fixed submission (verdict: Accepted):

x = int(input())


if x >= 30:
    print("Yes")
elif x < 30:
    print("No")
else:
    print("エラー")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())


if n>=30:
    print('YES')
else:
    print('NO')


Failing test case input:
-208

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n=int(input())


if n>=30:
    print('Yes')
else:
    print('No')

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print('YNeos'[int(input())<30])

Failing test case input:
-208

Expected output:
No


Actual output:
N


Fixed submission (verdict: Accepted):
print('YNeos'[int(input())<30::2])

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

x=int(input())



if x >= 30:
    print("yes")
else:
    print("no")    

Failing test case input:
-208

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):

x=int(input())



if x >= 30:
    print("Yes")
else:
    print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = input()

if int(x) >= 30:
  print("yes")
else:
  print("no")

Failing test case input:
-208

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
x = input()

if int(x) >= 30:
  print("Yes")
else:
  print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X = int(input())
def Main(X):
    return "Yes" if X <= 30 else "No"

print(Main(X))


Failing test case input:
-208

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
X = int(input())
def Main(X):
    return "Yes" if X >= 30 else "No"

print(Main(X))

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x=int(input())
if x>=30:print('YES')
else:print('NO')

Failing test case input:
-222

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
x=int(input())
if x>=30:print('Yes')
else:print('No')

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X = int(input())

if X>=30:
  print('YES')
else:
  print('NO')

Failing test case input:
-222

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
X = int(input())

if X>=30:
  print('Yes')
else:
  print('No')
Problem: p02594
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
i = int(input())
if i <= 30:
  print("Yes")
else:
  print("No")

Failing test case input:
-208

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
i = int(input())
if i >= 30:
  print("Yes")
else:
  print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = int(input())

if -40 <= x <= 40:
  print('yes')
else:
  print('no')

Failing test case input:
-208

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
x = int(input())

if x >= 30:
  print('Yes')
else:
  print('No')

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = int(input())

if x >= 30:
  print("NO")
else:
  print("YES")

Failing test case input:
-222

Expected output:
No


Actual output:
YES


Fixed submission (verdict: Accepted):
x = int(input())

if x>=30:
  print("Yes")
else:
  print("No")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
if n<30:
    print('NO')
else:
    print("YES")

Failing test case input:
-208

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n=int(input())
if n<30:
    print('No')
else:
    print("Yes")

Problem: p02594
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
ma = lambda :map(int,input().split())
ni = lambda:int(input())
yn = lambda fl:print("Yes") if fl else print("No")
import collections
import math
import itertools
import heapq as hq
x = ni()
if x>=30:
    f=True
else:
    f=False
print(yn(f))


Failing test case input:
-222

Expected output:
No


Actual output:
No
None


Fixed submission (verdict: Accepted):
ma = lambda :map(int,input().split())
ni = lambda:int(input())
yn = lambda fl:print("Yes") if fl else print("No")
import collections
import math
import itertools
import heapq as hq
x = ni()
if x>=30:
    f=True
else:
    f=False
yn(f)
Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if(n < 10):
  print(n)
elif(n < 100):
  print(9)
elif(n < 1000):
  print(9 + n -100)
elif(n < 10000):
  print(908)
elif(n < 100000):
  print(908 + n-10000)
else:
  print(90909)

Failing test case input:
289

Expected output:
199


Actual output:
198


Fixed submission (verdict: Accepted):
n = int(input())
if(n < 10):
  print(n)
elif(n < 100):
  print(9)
elif(n < 1000):
  print(9 + n - 99)
elif(n < 10000):
  print(909)
elif(n < 100000):
  print(909 + n- 9999)
else:
  print(90909)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
ans = 0

for i in range (n+1):
    if len(str(i)) % 2 == 1:
        ans += 1

print(ans)

Failing test case input:
215

Expected output:
125


Actual output:
126


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0

for i in range (1, n+1):
    if len(str(i)) % 2 == 1:
        ans += 1

print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
ans = 0
if len(N) % 2 == 0:
    a = len(N) - 1
    for i in range(1, a+1, 2):
        ans += 9*(10**(i-1))
else:
    a = len(N) - 2
    for i in range(1, a+1, 2):
        ans += 9*(10**i)
    ans += int(N) - 10**(len(N)-1) + 1

print(ans)


Failing test case input:
289

Expected output:
199


Actual output:
280


Fixed submission (verdict: Accepted):
N = input()
ans = 0
if len(N) % 2 == 0:
    a = len(N) - 1
    for i in range(1, a+1, 2):
        ans += 9*(10**(i-1))
else:
    a = len(N) - 2
    for i in range(1, a+1, 2):
        ans += 9*(10**(i-1))
    ans += int(N) - 10**(len(N)-1) + 1

print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num=input("N:")
count=0


for i in range(1,int(num)+1,1):
    if len(str(i))%2==1:
        count+=1
        
print(count)


Failing test case input:
289

Expected output:
199


Actual output:
N:199


Fixed submission (verdict: Accepted):
num=input("")
count=0


for i in range(1,int(num)+1,1):
    if len(str(i))%2==1:
        count+=1
        
print(count)

Problem: p02952
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
cnt = 0
for i in range(1,n+1):
  if len(str(n))%2 == 1:
    cnt+=1
    
print(cnt)

Failing test case input:
289

Expected output:
199


Actual output:
289


Fixed submission (verdict: Accepted):
n=int(input())
cnt = 0
for i in range(1,n+1):
  if len(str(i))%2==1:
    cnt += 1
print(cnt)
Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


n = int(input())
keta = int(len(str(n)))
c = 0

print("keta",keta)

if keta ==1:
    print(n)
elif keta ==2:
    print(9)
elif keta ==3:
    print(9+n-10**2+1)
elif keta == 4:
    print(900+9)
elif keta == 5:
    print(9+900+n-10**4+1)
elif keta == 6:
    print(9+900+90000)

Failing test case input:
289

Expected output:
199


Actual output:
keta 3
199


Fixed submission (verdict: Accepted):


n = int(input())
keta = int(len(str(n)))
c = 0



if keta ==1:
    print(n)
elif keta ==2:
    print(9)
elif keta ==3:
    print(9+n-10**2+1)
elif keta == 4:
    print(900+9)
elif keta == 5:
    print(9+900+n-10**4+1)
elif keta == 6:
    print(9+900+90000)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
s = len(n)
n = int(n)

if s == 1:
    print(n)
elif s == 2:
    print(9)
elif s == 3:
    print(9 + n % 100 + 1)
elif s == 4:
    print(9 + 900)
elif s == 5:
    print(9 + 900 + n % 10000 + 1)
else:
    print(9 + 900 + 90000)


Failing test case input:
289

Expected output:
199


Actual output:
99


Fixed submission (verdict: Accepted):
n = input()
s = len(n)
n = int(n)

if s == 1:
    print(n)
elif s == 2:
    print(9)
elif s == 3:
    print(9 + n - 99)
elif s == 4:
    print(9 + 900)
elif s == 5:
    print(9 + 900 + n - 9999)
else:
    print(9 + 900 + 90000)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=str(input())
digit=len(N)
result=0

for i in range(1,digit+1):
    if i%2==1:
        if i==digit:
            result+=(int(N)+1)%(10**(i-1))
        else:
            result+=9*10**(i-1)
print(result)

Failing test case input:
215

Expected output:
125


Actual output:
25


Fixed submission (verdict: Accepted):
N=str(input())
digit=len(N)
result=0

for i in range(1,digit+1):
    if i%2==1:
        if i==digit:
            result+=int(N)+1-10**(i-1)
        else:
            result+=9*10**(i-1)
print(result)

Problem: p02952
Buggy submission (Python (3.8.2), verdict: Wrong Answer):




from math import prod

if __name__ == '__main__':
    n = int(input())
    for i in range(n, 1, -1):
        c = str(i)
        if i%2 == 1 and not '0' in c:
            print(i)
            break



Failing test case input:
289

Expected output:
199


Actual output:
289


Fixed submission (verdict: Accepted):




from math import prod

if __name__ == '__main__':
    n = int(input())
    a = 0
    for i in range(1, n + 1):
        if len(str(i)) % 2 == 1:
            a += 1
    print(a)
Problem: p02952
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
slen = len(S)
count = 0
for i in range(0,slen, 2):
    if ( i == slen-1):
        inv = 0 if i == 0 else round(int(S), -1 * (slen-1))
        count = count + (int(S)-inv) + 1
        
    else:
        count = count + 10 ** (i+1) - 10 ** (i)
        
print(count)

Failing test case input:
289

Expected output:
199


Actual output:
-1


Fixed submission (verdict: Accepted):
S = input()
slen = len(S)
S = int(S)
count = 0
for i in range(0,slen, 2):
    if ( i == slen-1):
        inv = 1 if i == 0 else 10 ** i
        count = count + (S-inv) + 1
        
    else:
        count = count + 10 ** (i+1) - 10 ** (i)
        
print(count)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())						


ans = 0


if 1<=N<=9:
	ans += N


if 10<=N<=99:
	ans += 9


if 100<=N<=999:
	ans += N-99


if 1000<=N<=9999:
	ans += 900


if 10000<=N<=99999:
	ans += N-9999



if 100000<=N<=999999:
	ans += 9999


print(ans)


Failing test case input:
289

Expected output:
199


Actual output:
190


Fixed submission (verdict: Accepted):
N = int(input())						


ans = 0


if 1<=N<=9:
	ans += N


if 10<=N:
	ans += 9


if 100<=N<=999:
	ans += N-99


if 1000<=N:
	ans += 900


if 10000<=N<=99999:
	ans += N-9999



if 100000<=N:
	ans += 90000


print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
v = 0
if N >= 10:
    v += 9
    if N >= 100:
        if N >= 1000:
            v += 900
            if N >= 10000:
                if N >= 100000:
                    v += 90000
                    if N >= 1000000:
                        pass
                else:
                    v += N % 100000 + 1
        else:
            v += N % 1000 + 1
else:
    v += N % 10
print(v)

Failing test case input:
215

Expected output:
125


Actual output:
225


Fixed submission (verdict: Accepted):
N = int(input())
v = 0
if N >= 10:
    v += 9
    if N >= 100:
        if N >= 1000:
            v += 900
            if N >= 10000:
                if N >= 100000:
                    v += 90000
                    if N >= 1000000:
                        pass
                else:
                    v += N % 100000 - 10000 + 1
        else:
            v += N % 1000 - 100 + 1
else:
    v += N % 10
print(v)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
import heapq
from collections import Counter




N=int(input())
cnt=0
for i in range(1,N):
    if len(str(i))%2 != 0:
        cnt+=1
        
print(cnt)

Failing test case input:
289

Expected output:
199


Actual output:
198


Fixed submission (verdict: Accepted):
import math
import heapq
from collections import Counter




N=int(input())
cnt=0
for i in range(1,N+1):
    if len(str(i))%2 != 0:
        cnt+=1
        
print(cnt)
Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ans = 0
a = int(input())
for i in range(1, a+1):
  for n in str(i):
    if int(n) % 2 == 1:
      ans += 1
      break
print(ans)

Failing test case input:
289

Expected output:
199


Actual output:
240


Fixed submission (verdict: Accepted):
ans = 0
a = int(input())
for i in range(1, a+1):
  if len(str(i)) % 2 == 1:
    ans += 1
print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
total = 0
for i in range(n+1):
  if (len(str(i))%2 != 0):
    total += 1
print(total)


Failing test case input:
289

Expected output:
199


Actual output:
200


Fixed submission (verdict: Accepted):
n = int(input())
total = 0
for i in range(1,n+1):
  if (len(str(i))%2 != 0):
    total += 1
print(total)

Problem: p02952
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
num = len(str(n))
if num == 1:
    ans = n
else:
    if num&1==1:
        ans = (n%(10**(num-1)))+1
        num -=2
    else:
        ans = 0
        num -= 1
    n %= 10**num
    while num>0:
        ans += 9*(10**(num-1))
        num -=2
        n %= 10**num
print(ans)

Failing test case input:
215

Expected output:
125


Actual output:
25


Fixed submission (verdict: Accepted):
n = int(input())
num = len(str(n))
if num == 1:
    ans = n
else:
    if num&1==1:
        ans = (n%(10**(num-1)))+1+(n
        num -=2
    else:
        ans = 0
        num -= 1
    n %= 10**num
    while num>0:
        ans += 9*(10**(num-1))
        num -=2
        n %= 10**num
print(ans)

Problem: p02952
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
num = len(str(n))
if num&1==1:
    ans = (n%(10**(num-1)))+1
    num -=2
else:
    ans = 0
    num -= 1
n %= 10**num
while num>0:
    ans += 9*(10**(num-1))
    num -=2
    n %= 10**num
print(ans)

Failing test case input:
215

Expected output:
125


Actual output:
25


Fixed submission (verdict: Accepted):
n = int(input())
num = len(str(n))
if num == 1:
    ans = n
else:
    if num&1==1:
        ans = (n%(10**(num-1)))+1+(n
        num -=2
    else:
        ans = 0
        num -= 1
    n %= 10**num
    while num>0:
        ans += 9*(10**(num-1))
        num -=2
        n %= 10**num
print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n= int(input())

if n <10:
    print(n)
elif n<100:
    print(9)
elif n<1000:
    print(n-89)
elif n < 10000:
    print(910)
elif n < 100000:
    print(n-9088)
else:
    print(90909)

Failing test case input:
289

Expected output:
199


Actual output:
200


Fixed submission (verdict: Accepted):
n= int(input())

if n <10:
    print(n)
elif n<100:
    print(9)
elif n<1000:
    print(n-90)
elif n < 10000:
    print(909)
elif n < 100000:
    print(n-9090)
else:
    print(90909)
Problem: p02952
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
N = int(input())
digit = int(math.log10(N)) + 1
ans = 0
for i in range(1, digit, 2):
  ans += 9 * (10 ** (i-1))

if digit % 2 == 1:
  ans += N % (10 ** (digit - 1)) + 1

print(ans)

Failing test case input:
215

Expected output:
125


Actual output:
25


Fixed submission (verdict: Accepted):
import math
N = int(input())
digit = int(math.log10(N)) + 1
ans = 0
for i in range(1, digit, 2):
  ans += 9 * (10 ** (i-1))
 
if digit % 2 == 1:
  ans += N - (10 ** (digit - 1) - 1)
 
print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
unchi = 0
for i in range(1,a):
    if 99999 >= a >= 10000:
        unchi += 1
    elif 999 >= a >= 100:
        unchi += 1
    elif 9 >= a >= 1:
        unchi += 1
print(unchi)


Failing test case input:
215

Expected output:
125


Actual output:
214


Fixed submission (verdict: Accepted):
a = int(input())
unchi = 0
while a>=1:
    if 99999 >= a >= 10000:
        unchi += 1
    elif 999 >= a >= 100:
        unchi += 1
    elif 9 >= a >= 1:
        unchi += 1
    a -= 1
print(unchi)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
N = int(N)

print(N)

count = 0

if N == 100000 :
  count = 90909
if N >= 10000 and N <= 99999 :
  count = N - 10000 + 1 + 900 + 9
if N >= 1000 and N <= 9999 :
  count = 909
if N >= 100 and N <= 999 :
  count = N - 100 + 1 + 9
if N >= 10 and N <= 99 :
  count = 9
if N >= 1 and N <= 9 :
  count = N

print(count)


Failing test case input:
215

Expected output:
125


Actual output:
215
125


Fixed submission (verdict: Accepted):
N = input()
N = int(N)

count = 0

if N == 100000 :
  count = 90909
if N >= 10000 and N <= 99999 :
  count = N - 10000 + 1 + 900 + 9
if N >= 1000 and N <= 9999 :
  count = 909
if N >= 100 and N <= 999 :
  count = N - 100 + 1 + 9
if N >= 10 and N <= 99 :
  count = 9
if N >= 1 and N <= 9 :
  count = N

print(count)

Problem: p02952
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
ans = 0
for i in range(1,N):
    string_i = str(i)
    if len(string_i)%2 != 0:
        ans += 1
print(ans)

Failing test case input:
289

Expected output:
199


Actual output:
198


Fixed submission (verdict: Accepted):
N = int(input())
ans = 0
for i in range(1,N+1):
    string_i = str(i)
    if len(string_i)%2 != 0:
        ans += 1
print(ans)
Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
int_n = int(input())

n = str(int_n)

n_len = len(n)

ans = 0
tmp = 0

if n_len == 1:
    ans = int_n
else:
    for i in range(1,n_len):
        if i % 2 == 1:
            tmp = (10 ** i) - (10 ** (i-1)) - 1
            ans += tmp
    if (n_len % 2) == 1:
        tmp = int(n[1:]) + 1
        ans += tmp
    ans += 1

print(ans)

Failing test case input:
289

Expected output:
199


Actual output:
99


Fixed submission (verdict: Accepted):
n = input()
int_n = int(n)
n_len = len(n)

ans = 0
tmp = 0

if n_len == 1:
    ans = int_n
else:
    for i in range(1,n_len):
        if i % 2 == 1:
            ans += (10 ** i) - (10 ** (i-1))
    if (n_len % 2) == 1:
        tmp = int_n - (10**(n_len-1)) + 1
        ans += tmp
print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()

ans = 0
for i in range(1, len(N)):
    if i % 2 != 0:
        ans += 9 * 10 ** (i - 1)

if len(N) % 2 != 0:
    ans += int(N) - 10 ** (len(N) - 1)

print(ans)


Failing test case input:
215

Expected output:
125


Actual output:
124


Fixed submission (verdict: Accepted):
N = input()

ans = 0
for i in range(1, len(N)):
    if i % 2 != 0:
        ans += 9 * 10 ** (i - 1)

if len(N) % 2 != 0:
    ans += int(N) - 10 ** (len(N) - 1) + 1

print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

result = 0
for i in range(1, N):
    i_str = str(i)
    if (len(i_str) % 2) == 1:
        result += 1
print(result)

Failing test case input:
215

Expected output:
125


Actual output:
124


Fixed submission (verdict: Accepted):
N = int(input())

result = 0
for i in range(1, N+1):
    i_str = str(i)
    if (len(i_str) % 2) == 1:
        result += 1
print(result)

Problem: p02952
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())

l = len(str(n))

ans=0

if l>1:
    ans+=9
if l>3:
    ans+=900
if l>5:
    ans+=90000

if l==1:
    ans=n
elif l in [3,5]:
    ans+=int(str(n)[1:])+1


print(ans)

Failing test case input:
215

Expected output:
125


Actual output:
25


Fixed submission (verdict: Accepted):
n = int(input())

l = len(str(n))

ans=0

if l==1:
    ans=n
elif l==2:
    ans=9
elif l==3:
    ans=n-90
elif l==4:
    ans=909
elif l==5:
    ans=n-9090
elif l==6:
    ans=90909
    

print(ans)
Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
l = len(str(n))
 
i = 0
c = 0
while i < l:
  if i == 0:
    if n < 10:
      c = n
      break
    else:
      c = 9
      i = i + 1
  elif i%2 == 1:
    i = i + 1
    continue
  elif i == (l-1):
    print(10**i)
    c = c + (n-((10**i)-1))
    i = i + 1
  else:
    c = c + ((10**(i+1))-(10**i))
    i = i + 1
 
print(c)

Failing test case input:
215

Expected output:
125


Actual output:
100
125


Fixed submission (verdict: Accepted):
n = int(input())
l = len(str(n))
 
i = 0
c = 0
while i < l:
  if i == 0:
    if n < 10:
      c = n
      break
    else:
      c = 9
      i = i + 1
  elif i%2 == 1:
    i = i + 1
    continue
  elif i == (l-1):
    c = c + (n-((10**i)-1))
    i = i + 1
  else:
    c = c + ((10**(i+1))-(10**i))
    i = i + 1
 
print(c)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def uneven(number):
    result = []
    for x in range(1, number + 1):
        numberOfDigits = 1
        y = x

        if(y >= 100000):
            numberOfDigits = numberOfDigits + 5
            y = y / 100000

        if(y >= 10000):
            numberOfDigits = numberOfDigits + 4
            y = y / 10000

        if(y >= 1000):
            numberOfDigits = numberOfDigits + 3
            y = y / 1000

        if(y >= 100):
            numberOfDigits = numberOfDigits + 2
            y = y / 100

        if(y >= 10):
            numberOfDigits = numberOfDigits + 1

        if (numberOfDigits % 2 != 0):
            result.append(x)

    print(len(result))

Failing test case input:
215

Expected output:
125


Actual output:

Fixed submission (verdict: Accepted):
def uneven(number):
    result = []
    for x in range(1, number + 1):
        numberOfDigits = 1
        y = x

        if(y >= 100000):
            numberOfDigits = numberOfDigits + 5
            y = y / 100000

        if(y >= 10000):
            numberOfDigits = numberOfDigits + 4
            y = y / 10000

        if(y >= 1000):
            numberOfDigits = numberOfDigits + 3
            y = y / 1000

        if(y >= 100):
            numberOfDigits = numberOfDigits + 2
            y = y / 100

        if(y >= 10):
            numberOfDigits = numberOfDigits + 1

        if (numberOfDigits % 2 != 0):
            result.append(x)

    print(len(result))
    return len(result)
  
uneven(int(input()))

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
cnt = 0
for i in range(N+1):
	if len(str(i)) % 2 == 1:
		cnt += 1
print(cnt)

Failing test case input:
289

Expected output:
199


Actual output:
200


Fixed submission (verdict: Accepted):
N = int(input())
cnt = 0
for i in range(1,N+1):
    if len(str(i)) % 2 == 1:
        cnt += 1
print(cnt)
Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
count=0
for i in range(1,n+1):
    if 1<=i and i<10:
        print(i)
        count+=1
    elif 100<=i and i<1000:
        print(i)
        count+=1
    elif 10000<=i and i<100000:
        print(i)
        count+=1
    i+=1
print(count)


Failing test case input:
289

Expected output:
199


Actual output:
1
2
3
4
5
6
7
8
9
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
199


Fixed submission (verdict: Accepted):
n=int(input())
count=0
for i in range(1,n+1):
    if 1<=i and i<10:
        count+=1
    elif 100<=i and i<1000:
        count+=1
    elif 10000<=i and i<100000:
        count+=1
    i+=1
print(count)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

if N < 10:
  X = N
elif N < 100:
  X = 9
elif N < 1000:
  X = 9 + N - 90
elif N < 10000:
  X = 909
else:
  X = 910

print(X)

Failing test case input:
289

Expected output:
199


Actual output:
208


Fixed submission (verdict: Accepted):
N = int(input())

if N < 10:
  X = N
elif N < 100:
  X = 9
elif N < 1000:
  X = N - 90
elif N < 10000:
  X = 909
elif N < 100000:
  X = N - 9090
else:
  X = 90909
  
print(X)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main(n):
    count = 0

    for i in range(n + 1):
        if len(str(i)) % 2 == 1:
            count += 1

    print(count)


if __name__ == "__main__":
    n = int(input())

    main(n)


Failing test case input:
215

Expected output:
125


Actual output:
126


Fixed submission (verdict: Accepted):
def main(n):
    count = 0

    for i in range(1, n + 1):
        if len(str(i)) % 2 == 1:
            count += 1

    print(count)


if __name__ == "__main__":
    n = int(input())

    main(n)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
count=0
for i in range(1,N+1):
    if len(str(i))==1:
        count+=1
print(count)

Failing test case input:
289

Expected output:
199


Actual output:
9


Fixed submission (verdict: Accepted):
N = int(input())
count=0
for i in range(1,N+1):
    if len(str(i))%2==1:
        count+=1
print(count)
Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def f(N):
    x=0
    for i in range(N+1):
        t=str(i)
        if len(t)%2==1:
            x+=1
    return x
N=int(input())
print(f(N))
            
       

Failing test case input:
215

Expected output:
125


Actual output:
126


Fixed submission (verdict: Accepted):
def f(N):
    x=0
    for i in range(N+1):
        t=str(i)
        if len(t)%2==1:
            x+=1
    return x-1
N=int(input())
print(f(N))

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

result = list(filter(lambda i: len(str(i)) % 2 != 0, range(1,N+1)))
print(result)


Failing test case input:
215

Expected output:
125


Actual output:
[1, 2, 3, 4, 5, 6, 7, 8, 9, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215]


Fixed submission (verdict: Accepted):
N = int(input())

result = list(filter(lambda i: len(str(i)) % 2 != 0, range(1,N+1)))
print(len(result))

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
a = len(n)
c = 0
for i in range(a - 1):
    if i % 2 == 0:
        c += 9 * 10 ** i
n = int(n)
if a % 2 and n != 0:
    c += n % 10 ** (a - 1) + 1
print(c)

Failing test case input:
289

Expected output:
199


Actual output:
99


Fixed submission (verdict: Accepted):
n = input()
a = len(n)
c = 0
for i in range(a - 1):
    if i % 2 == 0:
        c += 9 * 10 ** i
n = int(n)
if a % 2:
    c += n - 10 ** (a - 1 ) + 1
print(c)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = int(input())
ans = 0

for i in range(1, s):
    if len(str(i))%2 == 1:
        ans += 1

print(ans)

Failing test case input:
289

Expected output:
199


Actual output:
198


Fixed submission (verdict: Accepted):
s = int(input())
ans = 0

for i in range(1, s + 1):
    if len(str(i))%2 == 1:
        ans += 1

print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

n = int(input())
cou = 0
for i in range(n+1):
    if not i%2:
        cou+=1
print (cou)

Failing test case input:
215

Expected output:
125


Actual output:
108


Fixed submission (verdict: Accepted):
n = int(input())
cou = 0
for i in range(1, n+1):
    num = len(str(i))
    if num%2:
        cou+=1
print (cou)
Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
count=0
S=""
for i in range(1,N-1):   
    S=len(str(i))
    if S%2!=0:
           count=count+1
print(count)

Failing test case input:
289

Expected output:
199


Actual output:
197


Fixed submission (verdict: Accepted):
N=int(input())
count=0
S=""
for i in range(1,N+1):   
    S=len(str(i))
    if S%2!=0:
           count=count+1
print(count)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

ans = 0

for i in range(N):
  if len(str(i+1))/2 != 0:
    ans += 1

print(ans)


Failing test case input:
215

Expected output:
125


Actual output:
215


Fixed submission (verdict: Accepted):
N = int(input())
 
ans = 0
for i in range(N):
  if len(str(i+1))%2 != 0:
    ans += 1
 
print(ans)

Problem: p02952
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
from sys import stdin

N = int(stdin.readline().rstrip())

ans = 0
digit = len(str(N))
for i in range(digit):
    if i % 2 == 1:
        ans += 10 ** i - 10 ** (i - 1)

if digit % 2 == 1:
    ans += ans - 10 ** (digit - 1) + 1

print(ans)


Failing test case input:
215

Expected output:
125


Actual output:
-81


Fixed submission (verdict: Accepted):
from sys import stdin

N = int(stdin.readline().rstrip())

ans = 0
digit = len(str(N))
for i in range(digit):
    if i % 2 == 1:
        ans += 10 ** i - 10 ** (i - 1)

if digit % 2 == 1:
    ans += N - 10 ** (digit - 1) + 1

print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N = int(input())
ans=0
for i in range(N):
    if i>0 and math.ceil(math.log10(i))%2==1 :
        ans += 1
print(ans)


Failing test case input:
215

Expected output:
125


Actual output:
123


Fixed submission (verdict: Accepted):
import math
N = int(input())
ans=0
for i in range(N +1):
    if i>0 and math.ceil(math.log10(i+1))%2==1 :
        ans += 1
print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

N_length = len(str(N))
ans = 0

for i in range(1,N):
  if len(str(i))%2 == 1:
    ans += 1

print(ans)


Failing test case input:
289

Expected output:
199


Actual output:
198


Fixed submission (verdict: Accepted):
N = int(input())

N_length = len(str(N))
ans = 0

for i in range(1,N+1):
  if len(str(i))%2 == 1:
    ans += 1

print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

N = int(sys.stdin.read().strip())
total = 0
for v in range(6):
  if v % 2 != 0:
    continue
  low = 10 ** v
  high = 10 ** (v+1)
  if N < low:
    break
  if N >= high:
    total += high - low
  else:
    total += N - low
    break
print(total)


Failing test case input:
289

Expected output:
199


Actual output:
198


Fixed submission (verdict: Accepted):
import sys

N = int(sys.stdin.read().strip())
total = 0
for v in range(6):
  if v % 2 != 0:
    continue
  low = 10 ** v
  high = 10 ** (v+1)
  if N < low:
    break
  if N >= high:
    total += high - low
  else:
    total += N - low + 1
    break
print(total)
Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=0
for i in range(a):
  if len(str(a))%2!=0:
    b+=1
  
print(b)

Failing test case input:
215

Expected output:
125


Actual output:
215


Fixed submission (verdict: Accepted):
a=int(input())
b=0
for i in range(a):
  if len(str(a))%2!=0:
    b+=1
  a-=1
print(b)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
keta = len(n)
N = int(n)

k = 0
if keta % 2 == 0:
    for i in range(keta):
        if i % 2 == 0:
            continue
        k += 9*(10**(i-1))
    
else:
    for i in range(keta):
        if i % 2 == 0:
            continue
        k += 9*(10**(i-1))
    k += (N-int(n[0])*(10**(keta-1))+1)
print(k)



Failing test case input:
289

Expected output:
199


Actual output:
99


Fixed submission (verdict: Accepted):
n = input()
keta = len(n)
N = int(n)

k = 0

if keta == 1:
    k = N
elif keta % 2 == 0:
    for i in range(keta):
        if (i+1) % 2 == 0:
            continue
        k += 9*(10**i)
    
else:
    for i in range(keta-1):

        if (i+1) % 2 == 0:
            continue
        k += 9*(10**i)

    minus = (10**(keta-1))
 
    k += (N-minus+1)
print(k)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
import math
count = 0
for i in range(1,N+1):
    if int(math.log10(i)) %2 ==1:
        count+= 1
print(count)

Failing test case input:
215

Expected output:
125


Actual output:
90


Fixed submission (verdict: Accepted):
N = int(input())
import math
count = 0
for i in range(1,N+1):
    if int(math.log10(i)) %2 ==0:
        count+=1
print(count)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
count=0
n=int(input())
for i in range(1,n+1):
  if len(str(i))%2==0:
    count+=1
print(count)

Failing test case input:
215

Expected output:
125


Actual output:
90


Fixed submission (verdict: Accepted):
count=0
n=int(input())
for i in range(1,n+1):
  if len(str(i))%2==1:
    count+=1
print(count)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
ans = 0
for i in range(1, n):
    if len(str(i)) % 2 == 1:
        ans += 1
print(ans)

Failing test case input:
289

Expected output:
199


Actual output:
198


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0
for i in range(1, n+1):
    if len(str(i)) % 2 == 1:
        ans += 1
print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N= int(input())

num = len(str(N))

a =N%10**(num-1)
b =N

if num==1:
    print(a)
else:
    sum_=0
    for i in range(0,num-1,2):
        sum_+=9*(10**i)
    if num%2!=0:
        sum_+=(a+1)
    print(sum_) 

Failing test case input:
289

Expected output:
199


Actual output:
99


Fixed submission (verdict: Accepted):
N= int(input())

num = len(str(N))

a =N%10**(num)


if num==1:
    print(N)
else:
    sum_=0
    for i in range(0,num-1,2):
        sum_+=9*(10**i)
    if num%2!=0:
        sum_+=(N-(10**(num-1))+1)
    print(sum_)
Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input().rstrip()
n_sp = list(map(int, list(n)))
dig  = len(n_sp)
odd = 0

if dig == 1:
    print(n_sp[0])

else:
    for i in range(1, dig, 2):
        odd += int("9" * i) - 10 ** (i-1) + 1

    if dig%2 == 1:
        odd += int(n) - n_sp[0]  * 10 ** (dig-1) +1

    print(odd)

Failing test case input:
289

Expected output:
199


Actual output:
99


Fixed submission (verdict: Accepted):
n = input().rstrip()
n_sp = list(map(int, list(n)))
dig  = len(n_sp)
odd = 0
 
if dig == 1:
    print(n_sp[0])

else:
    for i in range(1, dig, 2):
        odd += int("9" * i) - 10 ** (i-1) + 1
 
    if dig%2 == 1:
        odd += int(n) - 10 ** (dig-1) +1
 
    print(odd)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

c = 0

for i in range(6):
    if N >= 10 ** i:
        if i % 2 == 1:
            c += 9 * (10 ** (i - 1))
            print(c)
    else:
        if i % 2 == 1:
            c += N - (10 ** (i - 1)) + 1
            print(c)
        break

print(c)



Failing test case input:
215

Expected output:
125


Actual output:
9
125
125


Fixed submission (verdict: Accepted):
N = int(input())

c = 0

for i in range(6):
    if N >= 10 ** i:
        if i % 2 == 1:
            c += 9 * (10 ** (i - 1))
    else:
        if i % 2 == 1:
            c += N - (10 ** (i - 1)) + 1
        break

print(c)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N= int(input())
ans=0
for i in range(1,N):
    l=len(str(i))
    if not l%2==0:
        ans+=1
print(ans)

Failing test case input:
289

Expected output:
199


Actual output:
198


Fixed submission (verdict: Accepted):
N= int(input())
ans=0
for i in range(1,N+1):
    l=len(str(i))
    if not l%2==0:
        ans+=1
print(ans)

Problem: p02952
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

ans = 0

for i in range(n):
  if 1<=i<=9:
    ans += 1
    continue
  if 100<=i<=999:
    ans += 1
    continue
  if 10000<=i<=99999:
    ans += 1
    continue
print(ans)

Failing test case input:
289

Expected output:
199


Actual output:
198


Fixed submission (verdict: Accepted):
n = int(input())

ans = 0

for i in range(n+1):
  
    if 1<=i<=9:
      ans += 1
      continue
    if 100<=i<=999:
      ans += 1
      continue
    if 10000<=i<=99999:
      ans += 1
      continue
print(ans)

Problem: p02952
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
cnt=0
for i in range(n):
    if len(str(n)) %2==1:
        cnt+=1
print(cnt)

Failing test case input:
215

Expected output:
125


Actual output:
215


Fixed submission (verdict: Accepted):
n=int(input())
cnt=0
for i in range(1,n+1):
    if len(str(i)) %2==1:
        cnt+=1
print(cnt)