problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p02952
u376328830
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\n\nif 1 <= n <= 99:\n print(min(n,9))\nelif 100<= n <= 9999:\n print(min(n-90,910))\nelif:\n print(n-9080)', 'n = int(input())\n\nif 1 <= n <= 99:\n print(min(n,9))\nelif 100<= n <= 9999:\n print(min(n-90,909))\nelse:\n print(min(90909,n-10000+910))']
['Runtime Error', 'Accepted']
['s576406820', 's697919647']
[2940.0, 3060.0]
[17.0, 17.0]
[125, 141]
p02952
u382176416
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\n\ncount_1=9\ncount_3=900\ncount_5=90000\n\ncount=0\n\nif n = 100000:\n count+=90909\n\nif 10000 <= n and n < 100000:\n m=n-9999\n count+=m\n count+=909\n\nif 1000 <= n and n < 10000:\n count+=909\n\nif 100 <=n and n < 1000:\n l=n-99\n count+=l\n count+=9\n\nif 10 <= n and n < 100:\n count +=9...
['Runtime Error', 'Accepted']
['s157028103', 's595154189']
[2940.0, 3064.0]
[17.0, 17.0]
[330, 296]
p02952
u382431597
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = input()\nketa = len(n)\nn = int(input())\n\nif keta == 1:\n print(n)\nelif keta == 2:\n print(9)\nelif keta == 3:\n print(n - 90 + 9)\nelif keta == 4:\n print(909)\nelif keta == 5:\n print(n - 9000 + 900 - 90 + 9)\nelse:\n print(90909)', 'n = input()\nketa = len(n)\nn = int(n)\n\nif keta == 1:\n...
['Runtime Error', 'Accepted']
['s025469026', 's228422340']
[3060.0, 3060.0]
[17.0, 17.0]
[242, 224]
p02952
u386089355
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\n\nif n < 10:\n print(n)\nelif n < 100:\n print(n)\nelif n < 1000:\n print(n-90)\nelif n < 10000:\n print(909)\nelif n < 100000:\n print(n-9090)\nelif n == 100000:\n print(90909)', 'if n < 10:\n print(n)\nelif n < 100:\n print(9)\nelif n < 1000:\n print(9 + (n-99))\nelif n ...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s206417049', 's433352513', 's046447899']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[200, 214, 200]
p02952
u386131832
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\nans = 0\nfor i in range(i,n+1):\n if len(str(i))%2 != 0:\n ans += 1\nprint(ans)\n ', 'n = int(input())\nans = 0\nfor i in range(1,n+1):\n if len(str(i))%2 != 0:\n ans += 1\nprint(ans)']
['Runtime Error', 'Accepted']
['s488961334', 's008854734']
[2940.0, 2940.0]
[17.0, 57.0]
[98, 96]
p02952
u388463553
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input("Enter Something"))\ncount=0\nfor n in range(1,N+1):\n if len(str(n))%2!=0:\n count+=1\nprint(count)', 'N = int(input())\ncount=0\nfor n in range(1,N+1):\n if len(str(n))%2!=0:\n count+=1\nprint(count)']
['Wrong Answer', 'Accepted']
['s672908327', 's723933764']
[9060.0, 9096.0]
[58.0, 62.0]
[119, 102]
p02952
u395202850
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\ncnt =0\nfor i in range(1,1+n):\n if len(str(n)) % 2 == 1:\n cnt += 1\nprint(cnt)\n \n', 'n=int(input())\ncnt =0\nfor i in range(1,1+n):\n if len(str(n)) % 2 == 1:\n cnt += 1\nprint(cnt)\n \n', 'n=int(input())\ncnt =0\nfor i in range(1,1+n):\n if len(str(i)) % 2 == 1:\n cnt += 1\n...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s647896430', 's880584116', 's416886342']
[2940.0, 2940.0, 2940.0]
[59.0, 59.0, 64.0]
[103, 103, 95]
p02952
u396961814
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['if N ==100000:\n ans=90909\nelif N > 9999: \n ans=N-9999 +909\nelif N > 999:\n ans=909\nelif N > 99:\n ans=N-99 +9\nelif N > 9:\n ans= 9\nelse :\n ans=N\nprint(ans) ', 'N = int(input())\n\nif N ==100000:\n ans=90909\nelif N > 9999: \n ans=N-9999 +909\nelif N > 999:\n ans=909\nelif N > 9...
['Runtime Error', 'Accepted']
['s132597569', 's477084344']
[2940.0, 3060.0]
[17.0, 17.0]
[174, 193]
p02952
u402672613
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
["n=int(input())\nsum = 0\nfor i in range(1,n+1):\n length = 1\n num = i\n while num >= 10:\n num = num/10\n length += 1\n if (length % 2) == 1:\n print('i:'+str(i)+ ' length' + str(length))\n sum += 1\nprint(sum)", 'n=int(input())\nsum = 0\nfor i in range(n):\n length = 1\n ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s375092192', 's984707259', 's324456152']
[4468.0, 2940.0, 3064.0]
[270.0, 141.0, 145.0]
[240, 184, 188]
p02952
u404678206
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\nans=0\nfor i in range(n):\n if len(str(i))%2==1:\n ans+=1\n else:\n pass\nprint(ans)\n\n', 'n=int(input())\nans=0\nfor i in range(n):\n if len(str(i+1))%2==1:\n ans+=1\n else:\n pass\nprint(ans)']
['Wrong Answer', 'Accepted']
['s791820686', 's503702407']
[2940.0, 2940.0]
[61.0, 60.0]
[103, 103]
p02952
u411255472
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['a, b, c = map(int,input().split())\nprint(max(0,c-(a-b))', 'n = int(input())\nans = 0\nfor i in range(1, n+1):\n if len(str(i)) % 2 == 1:\n ans += 1\nprint(ans)']
['Runtime Error', 'Accepted']
['s417009139', 's372022302']
[8976.0, 2940.0]
[23.0, 58.0]
[55, 105]
p02952
u412481017
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['a = int(input())\n\nsum=0\ni=0\n\nwhile i<len(str(a)):\n j=str(a)[-i:]\n sum=sum+int(j)+1\n i=i+2\n', 'a = int(input())\n \nsum=0\ni=0\n \nwhile i<len(str(a)):\n\tif i==int(len(str(a)))-1:\n\t\tsum=sum+a-10**i+1\n\telse:\n\t\tsum=sum+10**(i+1)-10**(i)\n\t#print(i,sum)\n\ti=i+2\nprint(sum)']
['Wrong Answer', 'Accepted']
['s331029126', 's309660750']
[2940.0, 3060.0]
[17.0, 18.0]
[93, 166]
p02952
u413377603
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['a=int(input())\ncount=0\nfor i in range(1,a+1):\n i=str(i)\n if len(i)%2!=0:\n count+=1\n else:\n continue\n', 'a=int(input())\ncount=0\nfor i in range(a+1):\n if int(len(str(i)))%2!=0:\n count+=1\n else:\n continue\nprint(count)\n', 'a=input()\na=int(a)\ncount=0\nfor i in r...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s030120289', 's671656290', 's423294828']
[2940.0, 2940.0, 3060.0]
[69.0, 82.0, 63.0]
[123, 131, 139]
p02952
u413632062
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\nc=0\nfor i in range(1,n+1):\n if str(i)%2==1:\n c+=1\nprint(c)', 'n=int(input())\nc=0\nfor i in range(1,n+1):\n if len(str(i))%2==1:\n c+=1\nprint(c)']
['Runtime Error', 'Accepted']
['s350801005', 's017572257']
[2940.0, 2940.0]
[18.0, 58.0]
[83, 88]
p02952
u418420470
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\na = 0\nfor i in range(0,N):\n I = str(i)\n if len(I) % 2 == 1:\n a = a + 1\nprint(a)', 'N = int(input())\na = 0\nfor i in range(1,N+1):\n s = str(i)\n if len(s) % 2 == 1:\n a = a + 1\nprint(a)']
['Wrong Answer', 'Accepted']
['s250525491', 's425176292']
[2940.0, 2940.0]
[57.0, 63.0]
[101, 103]
p02952
u419877586
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\ndigits=len(str(n))\ncnt=0\nfor i in range(int(digits/2)):\n cnt+=9*(10**(i*2))\ncnt+=n-10**(digits-1)+1\nprint(cnt)', 'n=int(input())\ndigits=len(str(n))\ncnt=0\nfor i in range(int(digits/2)):\n cnt+=9*(10**(i*2))\nif digits%2==1:\n cnt+=n-10**(digits-1)+1\nprint(cnt)']
['Wrong Answer', 'Accepted']
['s879882083', 's765984048']
[2940.0, 2940.0]
[17.0, 17.0]
[126, 144]
p02952
u420399048
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['def f(N):\n x=0\n for i in range(N):\n t=str(i)\n if len(t)%2==1:\n x+=1\n return x\nN=int(input())\nprint(f(N))\n \n ', 'def f(N):\n x=0\n for i in range(N+1):\n t=str(i)\n if len(t)%2==1:\n x+=1\n return x\nN=int(input())\nprint(f(...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s108445016', 's165407283', 's928306359']
[2940.0, 2940.0, 2940.0]
[48.0, 49.0, 48.0]
[159, 161, 151]
p02952
u424763114
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['def main():\n i = list(map(int, input().split()))\n n = i[0]\n\n if not (1 <= n and n <= 10**5):\n return\n\n num = 0\n for j in range(n):\n if(len(n) % 2 != 0):\n num += 1\n\n print(num)\n\nif __name__ == "__main__":\n main()', 'def main():\n i = list(map(int, input()...
['Runtime Error', 'Accepted']
['s975499718', 's837888089']
[3060.0, 3060.0]
[17.0, 50.0]
[257, 264]
p02952
u427620920
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['def int_multiple():\n return [int(c) for c in input().split()]\n\ndef int_single():\n return int(input())\n\ndef str_multiple():\n return [c for c in input().split()]\n\ndef str_single():\n return input()\n\n# start\n\nn = int_single()\n\nr = 0\nfor i in range(1, n):\n if (len(str(i)) % 2 == 1):\n ...
['Runtime Error', 'Accepted']
['s286377282', 's941146207']
[3060.0, 3060.0]
[17.0, 58.0]
[324, 322]
p02952
u433836112
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = input().rstrip()\nn_sp = list(map(int, list(n)))\nprint(n_sp)\ndig = len(n_sp)\nodd = 0\n\nif dig == 1:\n print(n_sp[0])\n\nelse:\n for i in range(1, dig, 2):\n odd += int("9" * i) - 10 ** (i-1) + 1\n print("i: " + str(i) + " odd: " + str(odd))\n\n if dig%2 == 1:\n odd += int(n) - n...
['Wrong Answer', 'Accepted']
['s828533899', 's780630118']
[3064.0, 3060.0]
[17.0, 17.0]
[345, 273]
p02952
u434966508
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\ncnt=0\nfor i in range(n):\n if len(str(n)) %2==1:\n cnt+=1\nprint(cnt)', 'n=int(input())\ncnt=0\nfor i in range(1,n+1):\n if len(str(i)) %2==1:\n cnt+=1\nprint(cnt)']
['Wrong Answer', 'Accepted']
['s887776355', 's031012135']
[9160.0, 9104.0]
[62.0, 61.0]
[91, 95]
p02952
u437215432
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['# ABC136B\n\nn = int(input())\nif n <= 9:\n print(n)\nelif n <= 99:\n print(9)\nelif n <= 999:\n print(9 + n - 99)\nelif n <= 9999:\n print(909\nelif n <= 99999:\n print(909 + n - 9999)\nelse:\n print(90909)\n', '# ABC136B\n\nn = int(input())\nif n <= 9:\n print(n)\nelif n <= 99:\n print(9)\ne...
['Runtime Error', 'Accepted']
['s937733927', 's228150678']
[3060.0, 2940.0]
[17.0, 17.0]
[212, 213]
p02952
u437351386
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\nans=0\nfor i in range(1,n+1):\n if len(i)%2==1:\n ans=ans+1\nprint(ans)\n', 'n=int(input())\nans=0\nfor i in range(1,n+1):\n if len(str(i))%2==1:\n ans=ans+1\nprint(ans)']
['Runtime Error', 'Accepted']
['s181681964', 's513757803']
[9140.0, 9012.0]
[24.0, 60.0]
[87, 91]
p02952
u437723389
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = input()\n\ncount = 0\nfor i in range(1,N+1):\n if len(str(i)) % 2 != 0:\n count += 1\n\nprint(count)\n \n ', 'n = input()\ncount =0\nfor i in range(1,int(n)+1):\n if len(str(i)) % 2 != 0:\n count +=1 \nprint(count)\n']
['Runtime Error', 'Accepted']
['s293319714', 's629722872']
[9084.0, 8880.0]
[26.0, 59.0]
[107, 110]
p02952
u440161695
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['ans=0\nN=int(input()):\n for i in range(N):\n if len(str(i))%2==1:\n ans+=1\nprint(ans)', 'N=int(input())\nans=0\nfor i in range(N):\n if i%2==1:\n ans+=1\nprint(ans)', 'ans=0\nN=int(input())\nfor i in range(1,N+1):\n if len(str(i))%2==1:\n ans+=1\nprint(ans)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s120691450', 's455277157', 's014249589']
[2940.0, 2940.0, 2940.0]
[17.0, 32.0, 59.0]
[91, 74, 92]
p02952
u440334385
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\nnum = int(input())\nnum_digit = len(str(num))\n\nif num_digit == 1:\n print(0)\nelif num_digit == 2:\n print(9)\nelif num_digit == 3:\n print(9 + (num - 100 + 1))\nelif num_digit == 4:\n print(909)\nelif num_digit == 5:\n print(909 + (num - 10000 + 1))', 'num = int(input())\nnum_digit...
['Runtime Error', 'Accepted']
['s232452550', 's536322258']
[3060.0, 3060.0]
[17.0, 17.0]
[272, 295]
p02952
u440551778
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\n\ncnt = 0\nfor i in range(1,n+1):\n if len(str(i)) % 2 == 1:\n cnt += 1\n\nprint(cnt', 'n = int(input())\n\ncnt = 0\nfor i in range(1,n+1):\n if len(str(i)) % 2 == 1:\n cnt += 1\n\nprint(cnt)']
['Runtime Error', 'Accepted']
['s388653226', 's177998221']
[2940.0, 2940.0]
[17.0, 61.0]
[105, 106]
p02952
u448655578
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\nans = 0\nfor i in range(1,N+1):\n if len(i) % 2 == 1:\n ans += 1\nprint(ans)', 'N = int(input())\nans = 0\nfor i in range(1,N+1):\n if len(str(i)) % 2 == 1:\n ans += 1\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s700852397', 's239222488']
[2940.0, 2940.0]
[24.0, 61.0]
[93, 99]
p02952
u457289860
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\n\nlength = len(str(n))\n\nif length == 1 or length == 2:\n res = n\nelif length == 3:\n res = 9 + n - 99\nelif length == 4:\n res = 909\n\nelif length == 5:\n res = 9 + 900 + n - 9999\nelse:\n res = 90909\n\nprint(res)\n', 'n = int(input())\n\nlength = len(str(n))\n\nif length == 1:\n...
['Wrong Answer', 'Accepted']
['s015665876', 's782221275']
[2940.0, 2940.0]
[17.0, 17.0]
[236, 251]
p02952
u459419927
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['S=list(input())\nline=[]\nA=["A","C","G","T"]\nnum_list=[]\nflag=False\nfor s in S:\n if s in A:\n line.append(s)\n flag=True\n elif flag:\n num_list.append(len(line))\n line=[]\n flag=False\nnum_list.append(len(line))\nif len(num_list)==0:print(0)\nelse:\n print(max(num_li...
['Wrong Answer', 'Accepted']
['s046989220', 's529256452']
[3064.0, 3060.0]
[18.0, 18.0]
[306, 292]
p02952
u460129720
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\nans = 0\nfor n in range(1,N+1):\n if len(str(n)) % 2 == 1:\n ans += 1\nprint(ans)', 'N = int(input())\nans = 0\nfor n in range(1,N+1):\n if len(str(n)) % 2 == 1:\n ans += 1\nprint(ans)']
['Runtime Error', 'Accepted']
['s405097966', 's473981074']
[8868.0, 9044.0]
[28.0, 59.0]
[100, 104]
p02952
u460386402
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\ncon=0\nfor i in range(1,n+1):\n if i%2==1:\n con+=1\nprint(con)', 'n=int(input())\ncon=0\nfor i in range(1,n+1):\n if len(str(i))%2!=0:con+=1\nprint(con)\n']
['Wrong Answer', 'Accepted']
['s378792148', 's236935472']
[2940.0, 2940.0]
[32.0, 61.0]
[78, 84]
p02952
u463630127
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\ncount=0\nfor i in range(1,n+1):\n if 1<=i and i<10:\n print(i)\n count+=1\n elif 100<=i and i<1000:\n print(i)\n count+=1\n elif 10000<=i and i<100000:\n print(i)\n count+=1\n i+=1\nprint(count)\n', 'n=int(input())\ncount=0\nfor i in range(1,n+1):\...
['Wrong Answer', 'Accepted']
['s926261073', 's440339597']
[3820.0, 2940.0]
[122.0, 52.0]
[252, 201]
p02952
u468972478
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\na = 0\nfor i in (1, n+1):\n if len(str(i)) % 2 == 1:\n a += 1\nprint(a)', 'n = int(input())\na = 0\nfor i in range(1, n+1):\n if len(str(i)) % 2 == 1:\n a += 1\nprint(a)']
['Wrong Answer', 'Accepted']
['s792196249', 's116331779']
[9120.0, 9020.0]
[27.0, 62.0]
[88, 93]
p02952
u474925961
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
["\n \nimport sys\n\nif sys.platform =='ios':\n\tsys.stdin=open('input_file.txt')\n\t\nn=int(input())\n\na=n//10000\nb=(n-10000*a)//1000\nc=(n-10000*a-1000*b)//100\nd=(n-10000*a-1000*b-100*c)//10\ne=(n-10000*a-1000*b-100*c-10*d)\n\nif a=0:\n\tif b=0:\n\t\tif c=0:\n\t\t\tif d=0:\n\t\t\t\tprint(n)\n\t\t\telse:\n\t\t\t...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s436002855', 's707829812', 's564089540']
[2940.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0]
[369, 388, 391]
p02952
u476124554
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\nans = 0\nfor i in range(1, n+1):\n if (i // 10 + 1) % 2 == 1:\n ans +=1\nprint(ans', 'n = int(input())\nans = 0\nfor i in range(1, n+1):\n if (len(str(i))) % 2 == 1:\n ans +=1\nprint(ans)']
['Runtime Error', 'Accepted']
['s592969925', 's600650397']
[2940.0, 2940.0]
[17.0, 59.0]
[105, 106]
p02952
u477977638
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N=int(input())\na=0\nfor i in range(N):\n if i+1//10==0:\n a+=1\n elif i+1//100==0:\n a+=0\n elif i+1//1000==0:\n a+=1\n elif i+1//10000==0:\n a+=0\n else:\n a+=1\nprint(a)\n \n', 'N=int(input())\na=0\nfor i in range(N):\n if i//10==0:\n a+=1\n elif i//100:\n elif i//1000:\n a+=1\n elif...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s526372596', 's536945005', 's123032190']
[2940.0, 2940.0, 3060.0]
[54.0, 17.0, 74.0]
[183, 147, 225]
p02952
u481101428
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['A = int(input())\n\ncount = 0\n\nif A<10:\n count= A\nelif A <100:\n count = 9 \nelif A < 1000:\n count = 9 + A - 99\nelif A < 10000:\n count = 9 + 900\nelif A < 100000:\n count = 9 + 900 + (A-9999)\nelif A =100000:\n count = 90909\nelse:\n \n\nprint(count)\n', 'A = int(input())\n\ncount = 0\n\...
['Runtime Error', 'Accepted']
['s164082539', 's327612849']
[2940.0, 2940.0]
[17.0, 17.0]
[261, 245]
p02952
u481514236
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\ncnt = 0\nfor i in range(1,N+1):\n print(i)\n if len(str(i)) % 2 != 0:\n cnt += 1\nprint (cnt)\n', 'N = int(input())\ncnt = 0\n\nfor i in range( 1, N+1 ):\n if len(str(i)) % 2 != 0:\n cnt += 1\n\nprint (cnt)\n']
['Wrong Answer', 'Accepted']
['s402456503', 's246979365']
[3920.0, 2940.0]
[128.0, 61.0]
[119, 111]
p02952
u486448566
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = input()\ncount = 0\nfor i in range(n+1):\n if len(i)%2 == 1:\n count += 1\n \nprint(count)\n', 'n = int(input())\ncount = 0\nfor i in range(n+1):\n if len(str(i))%2 == 1:\n count += 1\n \nprint(count)\n', 'n = int(input())\ncount = 0\nfor i in range(n+1):\n if len(i)%2 == 1:\n count += 1\n \n...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s300998319', 's467702130', 's673275141', 's568828057']
[8980.0, 9108.0, 9084.0, 9040.0]
[30.0, 60.0, 24.0, 61.0]
[96, 106, 100, 108]
p02952
u488424305
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['import math\nn=int(input())\nm=int(math.log10(n))\nprint(m)', 'import math\nn=int(input())\nm=int(math.log10(n)+1)\nans=0\ndef count(x):\n global ans\n if x>0:\n ans+=10**(x)-10**(x-1)\n count(x-2)\n else:\n return ans\nif m%2==0:\n count(m-1)\nelse:\n count(m-2)\n ans+=n-10**(m-1)+1\nprint(ans)']
['Wrong Answer', 'Accepted']
['s944905466', 's429151239']
[2940.0, 3060.0]
[17.0, 17.0]
[56, 232]
p02952
u488934106
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
["def uneven_numbers(n):\n\n ans = 0\n\n for i in range(n):\n if len(str(n)) % 2 != 0:\n ans += 1\n\n return ans\n\ndef main():\n n = int(input())\n print(uneven_numbers(n))\n\nif __name__ == '__main__':\n main()\n", "def uneven_numbers(n):\n\n ans = 0\n\n for i in range(1, n+1...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s705942092', 's768441572', 's657215939']
[2940.0, 2940.0, 2940.0]
[48.0, 49.0, 49.0]
[232, 237, 237]
p02952
u489247698
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['import sys \nimport os \nimport math\n\nN=input()\ncount=0\n\nfor i in range(N):\n if i==0:\n continue\n if i<10:\n count +=1\n elif i<1000:\n count +=1\n elif i<100000:\n count+=1\n\nprint(count)\ninput()\n\n', 'import sys \nimport os \nimport math\n\nN=int(input...
['Runtime Error', 'Accepted']
['s316818388', 's353513080']
[8928.0, 9164.0]
[24.0, 51.0]
[358, 421]
p02952
u490084374
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['# -*- coding: utf-8 -*-\ni = input()\nn = len(i)\nans = 0\nfor j in range(n + 1):\n if j == n and j % 2:\n ans += int(i) - int(str(9) * (j - 1))\n elif j % 2 == 1:\n ans += 10 ** j - int(str(9) * (j - 1)) - 1\nprint(ans)', '# -*- coding: utf-8 -*-\ni = input()\nn = len(i)\nans = 0\nfor j in range(n + 1):\n i...
['Runtime Error', 'Accepted']
['s213268198', 's272030536']
[3316.0, 3064.0]
[21.0, 18.0]
[219, 311]
p02952
u493491792
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\na=range(n)\ncnt=0\nfor x in a:\n if len(str(x))%2==1:\n cnt+=1\nprint(cnt)', 'n=int(input())\na=range(n+1)\ncnt=-1\nfor x in a:\n if len(str(x))%2==1:\n cnt+=1\nprint(cnt)\n']
['Wrong Answer', 'Accepted']
['s672804181', 's834841799']
[2940.0, 2940.0]
[55.0, 55.0]
[94, 98]
p02952
u499106786
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['i = input()\n\nif int(i)<0:\n print("0")\n return\n\nacc = 0\nfor j in range(len(i)//2):\n acc+=9*(10**(2*j))\n\nif len(i)%2==0:\n print(acc)\nelse:\n addition = int(i[1:])+1\n print(acc+addition)', 'i = input()\n\nif int(i)<0:\n \tprint("0")\nelse:\n\tacc = 0\n\tfor j in range(len(i)//2):\n\t\tacc+=9*(10**(2*j...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s232681368', 's427965284', 's778195418', 's141454932']
[3060.0, 2940.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0, 17.0]
[188, 189, 158, 213]
p02952
u502967152
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N=int(input())\nif N = 10**5:\n print("90909")\nelif N >= 10**4:\n resid=N-10**4+1\n print(str(9+900+resid))\nelif N >= 10**3:\n print("990")\nelif N >= 10**2:\n resid=N-10**2+1\n print(str(9+resid))\nelif N >= 10:\n print("9")\nelse:\n print(str(N))', 'N=int(input())\nif N == 10**5:\n print("90909")\nelif N...
['Runtime Error', 'Accepted']
['s281671975', 's191909499']
[2940.0, 3060.0]
[17.0, 18.0]
[244, 245]
p02952
u505893372
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\n\nif N <= 9\n\tprint(N)', 'N = int(input())\n\nif N < 10 :\n\tprint(N)\nelif 10 <= N <= 99 :\n\tprint(9)\nelif 100 <= N <= 999 :\n\tprint(9 + N -99)\nelif 1000 <= N <= 9999 :\n\tprint(909)\nelif 10000 <= N <= 99999 :\n\tprint(909 + N - 9999)\nelif N = 100000 :\n\tprint(90909)', 'N = int(input())\ns ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s158354437', 's180946284', 's377918116', 's565535779', 's699313502', 's788134126', 's827124588', 's848552362', 's898681451', 's634486744']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[37, 230, 197, 42, 191, 181, 246, 196, 52, 238]
p02952
u505948952
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = input()\ncount = 0\nfor i in range(N):\n if len(str(i+1)) % 2 == 1:\n count += 1\nprint(count)', 'N = int(input())\ncount = 0\nfor i in range(N):\n if len(str(i+1)) % 2 == 1:\n count += 1\nprint(count)']
['Runtime Error', 'Accepted']
['s868058867', 's257739756']
[2940.0, 2940.0]
[17.0, 61.0]
[97, 102]
p02952
u506858457
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\n\nif n<10:\n print(n)\nelif n<100:\n print(9)\nelif n<1000:\n print(n-90)\nelif n<10000:\n print(909)\nelse n<100000:\n print(n-9090)\nelse:\n print(90909)', 'N=int(input())\nNT=N\ncnt=0\nans=0\nwhile NT//10:\n cnt+=1\n NT//=10\nif cnt==0:\n ans=N\nif cnt==1:\n ans=9\nif cnt==2:\n ans=N-90\...
['Runtime Error', 'Accepted']
['s392743406', 's307750022']
[2940.0, 3064.0]
[17.0, 17.0]
[164, 209]
p02952
u507171466
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\nfor i in range(1, n + 1):\n if len(str(i)) % 2 = 0:\n ans += 1\nprint(ans)', 'n = int(input())\nans = 0\nfor i in range(1, n + 1):\n if len(str(i)) % 2 == 1:\n ans += 1\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s661455187', 's283439783']
[2940.0, 2940.0]
[18.0, 62.0]
[92, 102]
p02952
u508164527
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\nl = len(N)\nif l == 1:\n print(N)\nelif l == 2:\n print(9)\nelif l == 3:\n print(N-90)\nelif l == 4:\n print(909)\nelif l == 5:\n print(N-9090)\nelse:\n print(90909)', 'N = input()\nn = int(N)\nl = len(N)\n\nif l == 1:\n print(n)\nelif l == 2:\n print(9)\nelif l == 3:\n print(n-90)\nelif l ...
['Runtime Error', 'Accepted']
['s621827544', 's775826248']
[2940.0, 3060.0]
[18.0, 18.0]
[176, 183]
p02952
u509405951
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['import math\n\nN = int(input())\n\ncount = 1\nfor i in range(1, N+1):\n if math.floor(math.log10(i)) % 2 == 0:\n count += 1\nprint(count)', 'import math\n \nN = int(input())\n \ncount = 0\nfor i in range(1, N+1):\n if math.floor(math.log10(i)) % 2 == 0:\n count += 1\nprint(count)']
['Wrong Answer', 'Accepted']
['s376330493', 's267054068']
[2940.0, 2940.0]
[78.0, 74.0]
[133, 135]
p02952
u514652247
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N=int(input())\n\nif N<10:\n print(N)\nelif N<1000:\n print(9+N-99)\nelif N<100000:\n print(9+900+N-9999)\nelif N==100000:\n print(90909)', 'N=int(input())\ntmp=0\nif N<10:\n print(N) \nelif N<1000:\n if 9+N-99<0:\n print(9)\n else:\n print(9+N-99)\nelif N<100000:\n if 9+900+N-9999<0:\n print(909)\n...
['Wrong Answer', 'Accepted']
['s650551888', 's226524844']
[2940.0, 3060.0]
[17.0, 17.0]
[132, 223]
p02952
u514873562
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\nans = 0\nfor i in range(1,n + 1):\n\tif len(int(i)) % 2 == 1:\n\t\tans += 1\nprint(ans) ', 'n = int(input())\nans = 0\nfor i in range(1,n + 1):\n\tif len(str(i)) % 2 == 1:\n\t\tans += 1\nprint(ans) ']
['Runtime Error', 'Accepted']
['s179001605', 's325652924']
[2940.0, 2940.0]
[17.0, 56.0]
[98, 98]
p02952
u516554284
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\na=list(range(n))\nb=0\nfor i in range(n):\n if len(a[i])%2==1:\n b+=1\nprint(b)', 'n=int(input())\na=list(range(n))\nb=0\nfor i in range(n):\n if len(str(a[i]))%2==1:\n b+=1\nprint(b)\n', 'n=int(input())\na=list(range(1,n+1))\nb=0\nfor i in range(n):\n if len(str(a[i]))%2==1:\n b+=1\nprint...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s503456954', 's787216203', 's141532543']
[6900.0, 6900.0, 6900.0]
[21.0, 62.0, 62.0]
[93, 99, 103]
p02952
u519939795
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['Not found', 'n = int(input())\na = 0\nfor i in range(1,n+1):\n if len(str(i))%2 != 0:\n a += 1\nprint(a)']
['Runtime Error', 'Accepted']
['s783829085', 's781713091']
[3192.0, 3060.0]
[18.0, 57.0]
[9, 96]
p02952
u521078006
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\nres = 0\nfor i in range(1,n+1):\n if(len(i)%2):\n res+=1\nprint(res)', 'n = int(input())\nres = 0\nfor i in range(1,n+1):\n if(len(str(i))%2):\n res+=1\nprint(res)\n']
['Runtime Error', 'Accepted']
['s322320303', 's703358199']
[2940.0, 3060.0]
[17.0, 60.0]
[85, 91]
p02952
u521866787
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\nkekka = 0\nfor i in range(1:N+1):\n if len(str(i)) % 2 == 1:\n kekka += 1\n', 'N = int(input())\nkekka = 0\nfor i in range(1:N+1):\n if len(str(i)) % 2 == 1:\n kekka += 1\n\nprint(kekka)', 'N = int(input())\nkekka = 0\nfor i in range(1,N+1):\n if len(str(i)) % 2 == 1:\n ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s520408170', 's823866029', 's516709823']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 60.0]
[98, 111, 111]
p02952
u525589885
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\ns = 0\nif n < 10:\n s += n\nif n >= 10 & n < 100:\n s = 9\nif n >= 100 & n < 1000:\n s = 9 + n - 100 + 1\nif n >= 1000 & n < 10000:\n s = 909\nif n >= 10000 & n < 100000:\n s = 909 + n - 10000 + 1\nif n == 100000:\n s = 90909\nprint(s)', 'n = int(input())\ns = 0\nif n < 10:\n s = n\nif (n >= ...
['Wrong Answer', 'Accepted']
['s386016463', 's778746499']
[3060.0, 3060.0]
[17.0, 17.0]
[245, 260]
p02952
u527261492
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\ncnt=0\nJ=0\nfor i in range(n):\n for j in range(5):\n if 10**j=<i<10**(j+1):\n J=j\n break\n if J%2==0:\n cnt+=1\nprint(cnt)\n \n \n', 'n=int(input())\ncnt=0\nJ=0\nfor i in range(n):\n for j in range(5):\n if 10**j<=i<10**(j+1):\n J=j\n break\n if J%2==0:\n cnt+=1\n...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s121382310', 's325671156', 's841488148', 's353890738']
[2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 333.0, 17.0, 319.0]
[153, 153, 152, 153]
p02952
u531246940
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['ans = 0\na = int(input())\nfor i in range(1, a+1):\n for n in str(i):\n if int(n) % 2 == 1:\n ans += 1\n break\nprint(ans)', 'ans = 0\na = int(input())\nfor i in range(1, a+1):\n if len(str(i)) % 2 == 1:\n ans += 1\nprint(ans)']
['Wrong Answer', 'Accepted']
['s939317625', 's946422379']
[2940.0, 2940.0]
[109.0, 58.0]
[129, 99]
p02952
u534302832
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = input()\nN = int(N)\n\nprint(N)\n\ncount = 0\n\nif N == 100000 :\n count = 90909\nif N >= 10000 and N <= 99999 :\n count = N - 10000 + 1 + 900 + 9\nif N >= 1000 and N <= 9999 :\n count = 909\nif N >= 100 and N <= 999 :\n count = N - 100 + 1 + 9\nif N >= 10 and N <= 99 :\n count = 9\nif N >= 1 and N <= 9 :\n ...
['Wrong Answer', 'Accepted']
['s844311720', 's607549165']
[3060.0, 3060.0]
[17.0, 17.0]
[325, 315]
p02952
u536685012
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\n\na = 0\nfor i in range(1, n):\n if len(str(n)) % 2 == 1:\n a += 1\n \nprint(a)', 'n = int(input())\n\na = 0\nfor i in range(1, n + 1):\n if len(str(i)) % 2 == 1:\n a += 1\n \nprint(a)\n']
['Wrong Answer', 'Accepted']
['s670318162', 's603754677']
[2940.0, 2940.0]
[59.0, 58.0]
[97, 102]
p02952
u537976628
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\nans = 0\nfor i in range(1,n + 1):\n print(i)\n if 10 <= i < 100 or 1000 <= i < 10000 or i == 100000:\n ans = ans\n else:\n ans += 1\nprint(ans)', 'n = int(input())\nans = 0\nfor i in range(1, n + 1):\n if len(str(i)) % 2 == 1:\n ans += 1\nprint(ans)']
['Wrong Answer', 'Accepted']
['s744923613', 's510887394']
[3920.0, 2940.0]
[124.0, 59.0]
[176, 107]
p02952
u539005641
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['result=0\nwhile count<=a:\n\tif a<=1:\n\t\tresult += n+1\n\t\tbreak\n\telse:\n\t\tif count==a:\n\t\t\tresult += n-10**count + 1\n\t\t\tcount += 2\n\t\telse:\n\t\t\tif count==0:\n\t\t\t\tresult+=10\n\t\t\t\tcount +=2\n\t\t\telse:\n\t\t\t\tresult += 10**(count+1)-10**count\n\t\t\t\tcount += 2\nprint(result-1)', 'impor...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s055239815', 's408523628', 's551450734', 's692211350', 's737712873', 's933412106', 's960813598', 's230043723']
[2940.0, 3064.0, 3060.0, 2940.0, 2940.0, 3064.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 57.0]
[255, 366, 323, 83, 366, 322, 321, 85]
p02952
u543019323
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
["n = input('整数を入力してください:')\n\nwhile n.isdigit() == False or int(n) > 10**5:\n print('Error')\n n = input('整数を入力してください:')\nelse:\n n = int(n)\nn = int(n)\n\nresult = []\nfor i in range(1,n+1):\n if len(str(i)) % 2 !=0:\n result.append(i)\nprint(len(result))", 'n = int(input())\n\nresult = []\nfor i i...
['Wrong Answer', 'Accepted']
['s937534220', 's840218946']
[6720.0, 6720.0]
[58.0, 59.0]
[309, 134]
p02952
u546686251
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\nif N % 2 == 0:\n print(N / 2)\nelse:\n print(N // 2 + 1)', 'N = int(input())\nnumber = 0\nfor i in range(10 ** 5):\n if len(str(i)) == 1 or len(str(i)) == 3 or len(str(i)) == 5:\n number += 1\nprint(number)', 'N = int(input())\nnumber = 0\nfor i in range(1, N + 1):\n if len(str(i)...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s068855138', 's122816952', 's084780063']
[2940.0, 2940.0, 2940.0]
[17.0, 112.0, 106.0]
[76, 151, 153]
p02952
u546853743
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
["n=int(input())\nif len(n)==1:\n print(n)\nelif len(n)==2:\n print(9)\nelif len(n)==3:\n print(n-90)\nelif len(n)==4:\n print('909')\nelif len(n)==5:\n print(n-9090)\nelse:\n print('90909')", "n=input()\nif len(n)==1:\n print(n)\nelif len(n)==2:\n print('9')\nelif len(n)==3:\n print(int(n)-9...
['Runtime Error', 'Accepted']
['s747694085', 's054494829']
[9084.0, 9056.0]
[26.0, 25.0]
[194, 201]
p02952
u548684908
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\nketa = len(N)\ncnt = 0\n\nfor i in range(keta):\n if i % 2 == 1:\n cnt += 10**(i) - 10**(i-1)\n\nif keta % 2 == 1:\n cnt += N - 10**(keta-1) + 1\n\nprint(cnt)', 'N = int(input())\nketa = len(str(N))\ncnt = 0\n\nfor i in range(keta):\n if i % 2 == 1:\n cnt += 10**(i) - 10**(i-1...
['Runtime Error', 'Accepted']
['s483545321', 's524245358']
[2940.0, 2940.0]
[17.0, 17.0]
[178, 183]
p02952
u549047581
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
["while True:\n print('Hello')", 'N = int(input())\nans = 0\nfor x in range(1,10):\n if N >= x:\n ans = ans + 1\nfor g in range(100,1000):\n if N >= g:\n ans = ans + 1\nfor m in range(10000,100000):\n if N >= m:\n ans = ans + 1\nprint(ans)']
['Time Limit Exceeded', 'Accepted']
['s094088552', 's959496200']
[33564.0, 3060.0]
[2104.0, 30.0]
[28, 224]
p02952
u550574002
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['print(len([1 for i in range(1,int(input())+1) if str(i)%2 == 1]))', 'print(len([1 for i in range(1,int(input())+1) if len(str(i))%2 == 1]))']
['Runtime Error', 'Accepted']
['s801635054', 's718522167']
[2940.0, 3864.0]
[17.0, 45.0]
[65, 70]
p02952
u551437236
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['import numpy as np\nimport getpass\n\nN = input()\n\narray = np.arange(int(N))\n\nn1=np.count_nonzero(array<10)\nn2=np.count_nonzero((100<=array)&(array<1000))\nn3=np.count_nonzero((10000<=array)&(array<100000))\nans=n1+n2+n3\nprint(ans)', 'import numpy as np\n\nN = int(input())\n\narray = np.arange(N)\n\nn1=np.count...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s055785223', 's149892679', 's315198349', 's928956229']
[13864.0, 22004.0, 13236.0, 13744.0]
[154.0, 320.0, 149.0, 149.0]
[226, 211, 211, 213]
p02952
u558059388
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['x=str(input())\nans=0\nfor i in range(0,int(x)):\n if len(str(i))%2!=0:\n ans+=1\nprint(ans)', 'x=int(input())\nans=1\nfor i in range(1,x-1):\n if len(str(i))%2!=0:\n ans+=1\nprint(ans)', 'x=int(input())\nans=0\nfor i in range(1,x+1):\n if len(str(i))%2==1:\n ans+=1\nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s618472154', 's836629488', 's186915331']
[2940.0, 2940.0, 2940.0]
[59.0, 61.0, 64.0]
[97, 94, 94]
p02952
u560464565
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['a, b, c = map(int, input().split())\nif c - (a - b) <= 0:\n print(0)\nelse:\n print(c - (a-b))\n', 'n = int(input())\nans = 0\nfor i in range(1, n + 1):\n if len(str(i)) % 2 == 1:\n ans += 1\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s004813120', 's693561782']
[2940.0, 2940.0]
[17.0, 60.0]
[97, 108]
p02952
u560988566
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\n\nans = 0\n\nfor i in range(n):\n if 1<=i<=9:\n ans += 1\n break\n if 100<=i<=999:\n ans += 1\n break\n if 10000<=i<=99999:\n ans += 1\n break\nprint(ans)', 'n = int(input())\n\nans = 0\n\nfor i in range(n+1):\n \n if 1<=i<=9:\n ans += 1\n continue\n if 100<=i<=...
['Wrong Answer', 'Accepted']
['s943168577', 's260502794']
[2940.0, 2940.0]
[17.0, 49.0]
[179, 211]
p02952
u562550538
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['import sys\na,b,c=map(int, input().split())\n\nif 1 <= a < 100:\n if a < 10:\n print(a)\n else:\n print(9)\nelif 100 <= a < 10000:\n if a < 1000:\n print(a - 90)\n else:\n print(900 + 9)\nelif 10000 <= a < 100000:\n print(a - 9999)', 'N=int(input())\nans=0\nfor i in range(1,...
['Runtime Error', 'Accepted']
['s619107150', 's179555424']
[3060.0, 2940.0]
[17.0, 57.0]
[260, 108]
p02952
u564770050
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\n# 100000\n# 1-9 9 100-999 900 10000-99999 90000\nif n <= 9:\n print(n)\n exit()\nif n > 9 and n <= 999:\n print(9 + n-99)\n exit()\nif n > 999 and n <= 99999:\n print(9 + 900 + n-9999)\n exit()\nif n > 99999 :\n print(9 + 900 + 90000)\n exit()', 'n = int(input())\n# 100000\n#...
['Wrong Answer', 'Accepted']
['s413673274', 's018530345']
[2940.0, 3060.0]
[17.0, 17.0]
[271, 285]
p02952
u565698244
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\ncnt = 0\nfor i in range(1,n):\n if (len(str(i))%2==1)\n \tcnt+=1\nprint(cnt)', 'n = int(input())\ncnt = 0\nfor i in range(1,n+1):\n if (len(str(i))%2==1):\n \tcnt+=1\nprint(cnt)']
['Runtime Error', 'Accepted']
['s465525300', 's567364065']
[2940.0, 2940.0]
[18.0, 58.0]
[90, 93]
p02952
u565924121
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N =int(input())\noppai=0\n\nfor i in range(1,N):\n if len(str(i))%2=1:\n oppai +=1\n\nprint(oppai)', 'N =int(input())\noppai=0\n\nfor i in range(1,N+1):\n if len(str(i))%2 == 1:\n oppai +=1\n\nprint(oppai)']
['Runtime Error', 'Accepted']
['s485046313', 's460379736']
[2940.0, 2940.0]
[17.0, 58.0]
[95, 100]
p02952
u566321790
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\n\ndef findodds(n):\n m = []\n for i in range(n):\n if len(str(i))%2!=0:\n m.append(i)\n return len(m)\nprint(findodds(n))', 'n = int(input())\n\ndef findodds(n):\n m = []\n for i in range(1, n+1):\n if len(str(i))%2!=0:\n m.append(i)\n return len(m)\nprint(findodds(n))']
['Wrong Answer', 'Accepted']
['s623182501', 's476873032']
[6720.0, 6720.0]
[50.0, 50.0]
[142, 147]
p02952
u571395477
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['import sys\n\ndef main():\n N = int(input())\n \n cnt = 0\n for i in range(N):\n if i < 10:\n cnt += 1\n elif 100 <= i < 1000:\n cnt += 1\n elif 10000 <= i < 100000:\n cnt += 1\n \n \n print(cnt)\nmain()', 'import sys\n...
['Wrong Answer', 'Accepted']
['s132544230', 's125757514']
[2940.0, 3064.0]
[33.0, 47.0]
[286, 184]
p02952
u573754721
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n=int(input())\nc=0\nfor i in range(n):\n if len(str(i))%2!=0:\n c+=1\nprint(c)', 'n=int(input())\nc=0\nfor i in range(n+1):\n if len(str(i))%2!=0:\n c+=1\nprint(c)', 'n=int(input())\nprint(sum([i for i in range(1,n+1) if len(str(i))%2==1]))', 'n=int(input())\nprint(sum(len(str(i))%2 f...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s205190565', 's306636169', 's352687855', 's384054720']
[2940.0, 2940.0, 6720.0, 2940.0]
[57.0, 59.0, 47.0, 47.0]
[90, 92, 72, 62]
p02952
u578462133
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\n\nif n < 10:\n print(n)\nelif n < 100:\n print("9")\nelif n < 1000:\n print(n-90)\nelif n < 10000:\n print("909")\nelif n < 100000\n print(n-9090)\nelse:\n print("90909")', 'n = int(input())\n\nif n < 10:\n print(n)\nelif n < 100:\n print("9")\nelif n < 1000:\n print(n-90)...
['Runtime Error', 'Accepted']
['s015319518', 's588305739']
[2940.0, 3060.0]
[17.0, 17.0]
[193, 194]
p02952
u579508806
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\nans = 0\nfor i in range(1,n+1):\n if len(i)%2==1:\n ans += 1\nprint(ans)', 'n = int(input())\nans = 0\nfor i in range(1,n+1):\n if len(str(i))%2==1:\n ans += 1\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s565570037', 's010582644']
[2940.0, 2940.0]
[17.0, 62.0]
[89, 95]
p02952
u580236524
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\n\nans = 0\nfor i range(1, n+1):\n if len(str(i))%2 == 1:\n ans += 1\nprint(ans)\n \n', 'n = int(input())\n\nans = 0\nfor i in range(1, n+1):\n if len(str(i))%2 == 1:\n ans += 1\nprint(ans)\n \n']
['Runtime Error', 'Accepted']
['s598727711', 's289929180']
[2940.0, 2940.0]
[17.0, 64.0]
[101, 104]
p02952
u581603131
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input()) \nans = 0\nfor i in range(1, N+1):\n if len(str(N))%2 == 1:\n ans += 1\nprint(ans)', 'N = int(input()) \nans = 0\nfor i in range(1, N+1):\n if len(str(i))%2 == 1:\n ans += 1\nprint(ans)']
['Wrong Answer', 'Accepted']
['s129702922', 's131208509']
[2940.0, 2940.0]
[58.0, 60.0]
[152, 152]
p02952
u581925317
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = input()\nans = 0\ni = 1\n\nfor i in range(N):\n s = str(i+1)\n if len(s) == 1 or len(s) == 3 or len(s) == 5:\n ans += 1', 'N = input()\nans = 0\ni = 1\n\nfor i in range(N):\n s = str(i+1)\n if len(s) == 1 or len(s) == 3 or len(s) == 5:\n ans += 1\n \nprint(ans)', 'N = int(input())...
['Runtime Error', 'Runtime Error', 'Accepted']
['s198094929', 's669861557', 's939390417']
[2940.0, 2940.0, 2940.0]
[20.0, 17.0, 75.0]
[129, 149, 147]
p02952
u583455893
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = input()\nanswer = 0\nfor i in range(1, n+1):\n if len(str(i)) % 2 == 0:\n continue\n else:\n answer += 1\n \nprint(answer)', 'n = input()\nanswer = 0\nfor i in range(1, n+1):\n str(i)\n if len(i) % 2 != 0:\n answer += 1\n \nprint(answer)', 'n = input()\nanswer = 0\nfor i in range(1, n+1):\n if...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s228180360', 's383112637', 's738247692', 's331883664']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 58.0]
[129, 112, 105, 110]
p02952
u588276267
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\n\nresult = list(filter(lambda i: len(str(i)) % 2 != 0, range(1,N+1)))\nprint(result)\n', 'N = int(input())\n\nresult = list(filter(lambda i: len(str(i)) % 2 != 0, range(1,N+1)))\nprint(len(result))']
['Wrong Answer', 'Accepted']
['s245536288', 's472632861']
[8520.0, 6732.0]
[65.0, 52.0]
[100, 104]
p02952
u593019570
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
["else:\n if b == 1:\n print(a)\n elif b == 3:\n d = '9' * (b // 2)\n '0'.join(d)\n d = int(d + '0')\n print(c - d)\n elif b > 3:\n d = '9' * (b // 2)\n '0'.join(d)\n d = int(d + '1')\n print(c - d)", "a = input()\nb = len(list(a))\nc = int(a)\nd =...
['Runtime Error', 'Accepted']
['s054662441', 's209313982']
[2940.0, 3060.0]
[17.0, 18.0]
[256, 254]
p02952
u594803920
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\nketa = len(str(n))\nif n == 1:\n print(n)\nelif n == 2:\n print(n)\nelif n == 3:\n ans = 9 + n - 99\n print(ans)\nelif n == 4:\n ans = 999 - 99 + 9\n print(ans)\nelif n == 5:\n ans = n - 9999 + 999 - 99 + 9\nelif n == 6:\n print(90909)\n', 'm = int(input())\nn = len(str(m))\nif n == 1:\n pr...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s809956215', 's836939308', 's481074395']
[3060.0, 3060.0, 3060.0]
[17.0, 17.0, 18.0]
[247, 244, 257]
p02952
u597455618
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = input()\nif len(n) == 1:\n print(int(n))\nelif len(n) <= 3:\n print(int(n)%100 + 10)\nelif len(n) <= 5:\n print(int(n)%10000 + 1010)\nelse :\n print(909090)', 'n = int(input())\nif n <= 99:\n print(min(n,9))\nelif n <= 9999:\n print(min(909, n - 90))\nelse :\n print(min(90909, n -9090))']
['Wrong Answer', 'Accepted']
['s087168249', 's623691706']
[2940.0, 2940.0]
[17.0, 17.0]
[156, 124]
p02952
u597622207
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\n\nans = 0\n\nfor i in range(N+1):\n a = str(i)\n if len(a) % 2 != 0:\n ans += 1\n\nprint(ans)\n', 'N = int(input())\n\nans = 0\n\nfor i in range(N):\n if len(str(i+1))/2 != 0:\n ans += 1\n\nprint(ans)\n', 'N = int(input())\n\nans = 0\n\nfor i in range(N+1):\n a = str(i)\n if len(a)/2 != 0...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s358871375', 's649420187', 's891773201', 's724474830']
[2940.0, 2940.0, 2940.0, 2940.0]
[58.0, 67.0, 61.0, 59.0]
[108, 98, 106, 98]
p02952
u600717568
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\ncount = 0\nfor i in range(N):\n if len(str(i)) % 2 == 1:\n count += 1\nprint(count)\n', 'N = int(input())\ncount = 0\nfor i in range(N):\n if len(str(i+)) % 2 == 1:\n count += 1\nprint(count)\n', 'N = int(input())\ncount = 0\nfor i in range(N):\n if len(str(i+1)) % 2 == 1:\n count += 1\n...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s134348483', 's135830930', 's621562540']
[2940.0, 3064.0, 2940.0]
[58.0, 17.0, 69.0]
[101, 102, 103]
p02952
u602773379
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['from math import factorial as fact\nimport math\nimport sys\nimport itertools\nimport numpy as np\nfrom collections import Counter\nimport datetime\nfrom collections import deque\n\n\n\ndef input1():\n\treturn int(input())\n\n\ndef input2():\n\treturn map(int,input().split())\n\n\ndef input_array():\n\treturn list(ma...
['Wrong Answer', 'Accepted']
['s945584963', 's630767019']
[12380.0, 12376.0]
[191.0, 194.0]
[1708, 1712]
p02952
u603324902
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\n\nans = int(0)\n\nif n < 10:\n ans = n\nelif 100 > n and n > 10:\n ans = 9\nelif 1000 > n and n >= 100:\n ans = n-90\nelif 10000 > n and n >= 1000:\n ans = 909\nelif 100000 >= n and n >= 10000:\n ans = n-9091', 'n = int(input())\n\nans = int(0)\n\nif n < 10:\n ans = n\nif 100 > n and n >= 10:\...
['Wrong Answer', 'Accepted']
['s463693195', 's092264758']
[2940.0, 3060.0]
[17.0, 17.0]
[218, 254]
p02952
u606090886
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['n = int(input())\ns = str(n)\nans = 0\nprint(len(s))\nfor i in range(len(s)):\n if (i + 1) % 2 != 0:\n if len(s) == i + 1:\n ans += n - (10 ** i - 1)\n else:\n ans += 10 ** (i + 1) - 1 - (10 ** i - 1)\n print(ans)\nprint(ans)', 'n = int(input())\ns = str(n)\nans = 0\nfor ...
['Wrong Answer', 'Accepted']
['s218614988', 's280810501']
[3060.0, 3060.0]
[17.0, 17.0]
[260, 227]
p02952
u609814378
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\nans = 0\n\n\n\nfor i in range(1, N + 1):\n if len(str(i)) % 2 == 1:\n ans += 1\n\nprint(ans)\n', 'N = int(input())\nans = 0\n\n\n\nfor i in range(1, N + 1):\n\n if len(str(i)) % 2 == 1:\n ans += 1\n\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s120678971', 's458702109']
[2940.0, 2940.0]
[17.0, 57.0]
[232, 237]
p02952
u611090896
2,000
1,048,576
Given is an integer N. Find the number of positive integers less than or equal to N that have an odd number of digits (in base ten without leading zeros).
['N = int(input())\ncount=0\nfor i in range(1,N+1):\n if i%2 != 0:\n count+=1\nprint(count)', 'N = int(input())\ncount=0\nfor i in range(1,N+1):\n if 1 <= i <= 9:\n count+=1\n elif 100 <= i <= 999:\n count+=1\n elif 10000 <= i <= 99999:\n count+=1\nprint(count)']
['Wrong Answer', 'Accepted']
['s864936121', 's455463214']
[9116.0, 9176.0]
[40.0, 50.0]
[88, 169]