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
u089925107
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+1):\n i = str(i)\n if len(i) % 2 == 1:\n count += 1\nprint(count)', 'N = int(input())\ncount = 0\nfor i in range(1,N+1):\n i = str(i)\n if len(i) % 2 == 1:\n count += 1\nprint(count)']
['Wrong Answer', 'Accepted']
['s720196896', 's383075118']
[9088.0, 9004.0]
[62.0, 62.0]
[110, 112]
p02952
u090649502
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# 1-keta\nif n<10:\n print(n)\nelif n<1000:\n print(9+n-99)\nelif n<100000:\n print(9+900+n-9999)\nelse:\n print(90909)', 'n=int(input())\nif n<10:\n print(n)\nelif n<1000:\n print(9+max(0,n-99))\nelif n<100000:\n print(9+900+max(0,n-9999))\nelse:\n print(90909)']
['Wrong Answer', 'Accepted']
['s810599402', 's234000440']
[3060.0, 3064.0]
[17.0, 18.0]
[130, 135]
p02952
u099300051
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,6):\n if N >= 10**(i):\n if i%2==1:#1,3,5 (10,1000,100000)\n count+=9*10**(i-1)\n else:\n if i%2==1:#1,3,5 (10,1000,100000)\n count+=N-10**(i-1)+1\n break\nprint(count)', 'N=int(input())\ncount=0\nfor i in range(1,6):\n if N >= 10**(i):\n if i%2==1:...
['Wrong Answer', 'Accepted']
['s444196453', 's793191243']
[9044.0, 8964.0]
[28.0, 26.0]
[223, 221]
p02952
u099450021
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).
['Ns = input()\nN = int(Ns)\ncount = 0\nfor n in range(1, len(Ns), 2):\n count += 10 ** (n + 1) - 1\nif len(Ns) % 2 == 1:\n count += N - 10 ** (len(Ns) - 1)\nprint(count)\n', 'Ns = input()\nN = int(Ns)\ncount = 0\n\nfor n in range(1, len(Ns)):\n if n % 2 == 0:\n continue\n count += 10 ** n - 10 ** (n...
['Wrong Answer', 'Accepted']
['s782859036', 's551384861']
[2940.0, 2940.0]
[17.0, 17.0]
[168, 214]
p02952
u101113363
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\n\n\n\nlist_a=np.arange(1, N+1)\nlist_b =[]\n\n\n#print(list_a)\n#print(len(str(list_a)))\n\nfor i in list_a:\n if len(str(i))%2 !=0:\n #print(i)\n list_b.append(i)\n\nprint(len(list_b))\n\n', 'import numpy as np\nN=int(input())\n\n\n\n\nlist_a=np.arange(1, N+1)\nlist_b =[]\n\n\n#pr...
['Runtime Error', 'Accepted']
['s705192178', 's743764517']
[2940.0, 16436.0]
[17.0, 487.0]
[250, 267]
p02952
u101442050
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())\ntotal = 0\nfor i in range(n+1):\n if (len(str(i))%2 != 0):\n total += 1\nprint(total)\n', 'n = int(input())\ntotal = 0\nfor i in range(n+1):\n if (len(i)%2 != 0):\n total += 1\nprint(total)', 'n = int(input())\ntotal = 0\nfor i in range(1,n+1):\n if (len(str(i))%2 != 0):\n total += 1\npr...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s202653199', 's519436028', 's590584335']
[2940.0, 2940.0, 2940.0]
[57.0, 17.0, 60.0]
[103, 97, 105]
p02952
u105209986
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())\nimport math\nif N%2==1:\n print(math.ceil(N/2))\nelse:\n print(N/2)', 'N=int(input())\n\nif N%2==0:\n print(N//2)\n \nelse:\n import math\n print(math.ceil(N/2))', 'N=int(input())\nS=0\nfor i in range(1,N+1):\n if len(str(i))%2==1:\n S += 1\nprint(S)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s145220018', 's224705772', 's123016315']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 67.0]
[84, 95, 90]
p02952
u107406081
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 print(n)\n \nelif (n<=999):\n print(n-90)\n\nelif (n<=99999):\n print(n-9090)\n \nelse:\n print(90909)', 'n=int(input())\n\nif (n<=9):\n print(n)\n\nelif (n<=99):\n print(9)\n\nelif (n<=999):\n print(n-90)\n\nelif (n<=9999):\n print(909)\n \nelif (n<=99999):\n print(n-9090)\...
['Wrong Answer', 'Accepted']
['s801461359', 's300695131']
[2940.0, 2940.0]
[17.0, 17.0]
[127, 184]
p02952
u111392182
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:ans+=1\nprint(ans)', 'n=int(input())\nans=0\nfor(i)in range(1,n+1):\n if len(str(n))%2==1:ans+=1\nprint(ans)', 'n=int(input())\nans=0\nfor i in range(1,n+1):\n if len(str(i))%2==1:ans+=1\nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s007410590', 's557725527', 's024690311']
[2940.0, 2940.0, 2940.0]
[57.0, 58.0, 59.0]
[83, 83, 83]
p02952
u115877451
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())\nb=0\nfor i in range(1,a+1):\n if len(i)%2==1:\n b+=1\nprint(b)', 'a=int(input())\nb=0\nfor i in range(1,a+1):\n if len(str(i))%2==1:\n b+=1\nprint(b)']
['Runtime Error', 'Accepted']
['s731831716', 's728819419']
[2940.0, 2940.0]
[17.0, 63.0]
[77, 82]
p02952
u116002573
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 = 0\nfor i in range(1, N+1):\n s = str(i)\n s_set = set(list(s))\n if len(s_set) % 2 == 1:\n count += 1\nprint(count)', "def main():\n\n N = int(input())\n ans = 0\n for i in range(1, N+1):\n s = str(i)\n if(len(s) % 2 == 1): ans +=1\n\n return ans\n...
['Wrong Answer', 'Accepted']
['s865204000', 's041993592']
[2940.0, 2940.0]
[128.0, 51.0]
[151, 191]
p02952
u116124892
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(n + 1):\n if len(str(i)) % 2 == 1:\n res += 1\nprint(res)', 'n = int(input())\nres = 0\nfor i in range(n + 1):\n if len(str(i)) % 2 == 1:\n res += 1\nprint(res)', 'n = int(input())\nres = 0\nfor i in range(n + 1):\n if str(i) % 2 == 1:\n res += 1\nprint(res0...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s468253189', 's851405677', 's999638482', 's882264283']
[9164.0, 9144.0, 8892.0, 9012.0]
[61.0, 60.0, 25.0, 61.0]
[104, 98, 98, 107]
p02952
u116233709
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\n\nfor i in range(0,5,2):\n if n>=10**(i+1):\n cnt+=9*(10**i)\n else:\n cnt+=n-(10**i)+1\n break\n \nprint(cnt) \n \n', 'n=int(input())\nk=1\ncnt=0\n\nwhile n>=10**(k-1):\n if n>=10**k:\n cnt+=9*(10*(k-1))\n k+=2\n else:\n cnt+=n-10**(k-1)+1\n \nprint(cnt) \n ...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s266783083', 's271683276', 's721211076', 's156176035']
[2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 2104.0, 17.0, 17.0]
[145, 145, 146, 203]
p02952
u120485519
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 len(str(n)) == 6:\n print(90909)\nelif len(str(n)) == 4:\n print(909)\nelif len(str(n)) == 2:\n print(9)\nelif len(str(n)) == 1:\n print(n)\nelif len(str(n)) == 3:\n print(9 + (n - 100) + 1)\nelif len(str(n)) == 5:\n print(9 + 900 + (n - 10000) + 1)\n', 'n = int(input())\n\nif len(str(n)) == 6:\n...
['Runtime Error', 'Accepted']
['s087433771', 's561708204']
[3060.0, 3060.0]
[17.0, 17.0]
[260, 278]
p02952
u121227440
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 N = int(input())\n i = 0\n while N >0:\n if len(N) % 2 != 0:\n i+=1\n N -= 1\n print(i)\nmain()', 'def main():\n N = int(input())\n i = 0\n while N >0:\n n = int(str(N)[-1])\n if n % 2 != 0:\n i+=1\n N -= 1\n print(i)\nmain...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s253105581', 's672622288', 's088272276']
[2940.0, 2940.0, 2940.0]
[17.0, 70.0, 90.0]
[138, 161, 164]
p02952
u124063060
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\nfor i in range (n+1):\n if len(str(i)) % 2 == 1:\n ans += 1\n\nprint(ans)', 'n = int(input())\nans = 0\n\nfor i in range (1, n+1):\n if len(str(i)) % 2 == 1:\n ans += 1\n\nprint(ans)']
['Wrong Answer', 'Accepted']
['s936218787', 's147986082']
[2940.0, 2940.0]
[58.0, 57.0]
[105, 108]
p02952
u125148650
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_s = input()\nN = int(N_s)\nans = 0\nfor i in range(1, len(N_s)):\n\tif i % 2 == 1:\n \tans += (10**i - 10**(i - 1))\nif len(N_s) % 2 == 1:\n \tans += (1 - 10**(len(N_s)) + N)\nprint(ans)\n', 'N = int(input())\nif N >= 100000:\n \tprint(90909)\nelse if N >= 10000:\n \tprint(909 + (N - 10000))\nelse if N >= 100...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s057232025', 's061824595', 's068229989', 's202265066', 's410170448', 's410971661', 's443588556', 's574856081', 's717357425', 's837212073', 's556922246']
[2940.0, 2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[16.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 58.0]
[182, 218, 180, 183, 178, 225, 179, 100, 100, 100, 101]
p02952
u130900604
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']
['s755116331', 's062115050']
[3064.0, 2940.0]
[17.0, 59.0]
[83, 89]
p02952
u131411061
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 = 0\nif len(str(N)) % 2 == 0:\n loop = ((len(str(N)) - 1) -1) //2 + 1\n print(loop)\n for i in range(loop):\n result += 9 * pow(10,2*i)\nelse:\n for i in range(len(str(N)) - 2):\n result += 9 * pow(10,i)\n result += N - pow(10,len(str(N)) - 1) + 1\n\nprint(resul...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s229301128', 's471966920', 's963994558', 's391760077']
[3060.0, 3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 46.0]
[308, 325, 342, 67]
p02952
u135116520
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 s=0\n N=int(input())\n for i in range(1,N+1):\n if (len(str(i)))%2!=0:\n s+=1\n print(s)\n ', 'def main:\n s=0\n N=int(input())\n for i in range(1,N+1):\n if (len(str(i)))%2!=0:\n s+=1\n print(s)\nmain', 'def main:\n s=0\n N=int(input())\n for i in range(1,N+1):\n if (len(st...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s213168698', 's352425856', 's539592491', 's450785073']
[3064.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 57.0]
[109, 111, 113, 84]
p02952
u138863123
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())\ndig=len(str(N))\ndigr=dig-(dig%2)-2\nintr=sum([10**i for i in range(0, digr+1,2)])*9\nif (dig % 2):\n intr=intr+N-10**(dig-1)+1\n\nprint(intr+ad)\n', 'N=int(input())\ndig=len(str(N))\ndigr=dig-(dig%2)-2\nintr=sum([10**i for i in range(0, digr+1,2)])*9\nif (dig % 2):\n intr=intr+N-10**(dig-1)+1\n...
['Runtime Error', 'Accepted']
['s614815937', 's256823352']
[2940.0, 3060.0]
[17.0, 17.0]
[158, 154]
p02952
u143492911
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#A=list(map(int,input().split()))\n#b=list(map(int,input().split()))\n#s=[input() for _ in range(n)]\nn=list(input())\nm=len(n)\na="".join(n[:])\na=int(a)\nans=0\nfor i in range(0,m-2,2):\n ans+=9*(10**i)\nif m%2==1:\n ans+=a-10**(m-1)+1\nprint(ans)\n\n', 'n=int(input())\n#A=list(map(i...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s429822697', 's618865302', 's742082960']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 58.0]
[270, 204, 207]
p02952
u151625340
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\n\nprint(ans)', 'N = int(input())\nans = 0\nfor i in range(1,N+1):\n if len(str(i))%2==1:\n ans += 1\n\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s180088790', 's353122640']
[2940.0, 2940.0]
[65.0, 62.0]
[101, 102]
p02952
u158778550
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 0<N<10:\n num = N\n\nif 10=<N<100:\n num = 9\n\nif 100=<N<1000:\n num = 9 + N - 99\n \nif 1000=<N<10000:\n num = 9 + 900\n\nif 10000=<N<100000:\n num = 909 + N - 9999\n\nif N==100000:\n num=909+90000\n \nprint(num)', 'N = int(input())\nif 0<N<10:\n num = N\n \nif 10<=N<100:\n num = 9\n ...
['Runtime Error', 'Accepted']
['s744177450', 's335141844']
[2940.0, 3060.0]
[17.0, 17.0]
[224, 228]
p02952
u167681750
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).
['count = 0\nfor i in range(1,n+1):\n if len(str(i)) % 2 == 1:\n count += 1\n\nprint(count)', 'n = int(input())\n\ncount = 0\nfor i in range(1,n+1):\n if len(str(i)) % 2 == 1:\n count += 1\n\nprint(count)']
['Runtime Error', 'Accepted']
['s703843296', 's495277608']
[2940.0, 2940.0]
[17.0, 60.0]
[94, 112]
p02952
u168416324
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\nfor i in range(1,n+1):\n if len(str(i))%2:\n ans+=1\nprint(ans)', 'ans=0\nfor i in range(1,int(input())+1):\n if len(str(i))%2:\n ans+=1\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s584978592', 's681195267']
[9032.0, 9088.0]
[23.0, 62.0]
[70, 82]
p02952
u169696482
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())\nm == 0\nfor i in range(n):\n if len(str(i))%2 != 0:\n m += 1\nprint(m)', 'n = int(input())\nm = 0\nfor i in range(n):\n if len(str(i))%2 != 0:\n m += 1\nprint(m)', 'n = int(input())\nm = 0\nfor i in range(1,n+1):\n if (len(str(i))-1)%2 == 0:\n m += 1\nprint(m)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s379297906', 's590625414', 's921772957']
[2940.0, 2940.0, 2940.0]
[17.0, 63.0, 58.0]
[87, 86, 94]
p02952
u175590965
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())\nb = 0\nfor i in a:\n if a[i] % 2 == 1:\n b += 1\nprint(b)', 'a = int(input())\nb = 0\nfor i in range(1,a+1):\n if len(str(i))%2 ==1:\n b +=1\nprint(b)']
['Runtime Error', 'Accepted']
['s275761189', 's236955654']
[2940.0, 9044.0]
[17.0, 60.0]
[80, 94]
p02952
u176264727
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\nc = 0\nt = n\nwhile t // 10 != 0:\n c += 1\n t = t // 10\n\nprint(c)\n\nans = 0\nif c == 0:\n ans = n\nelif c == 1:\n ans = 9\nelif c == 2:\n ans = n - 99 + 9\nelif c == 3:\n ans = 909\nelif c == 4:\n ans = n - 9999 + 909\nelse:\n ans = 90909\n\nprint(ans)', 'n = int(input(...
['Wrong Answer', 'Accepted']
['s278465583', 's839378768']
[3064.0, 3064.0]
[17.0, 17.0]
[276, 266]
p02952
u179376941
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 = 0\nfor i in range(n):\n i = str(i)\n if len(i) % 2 == 1:\n count += 1\nprint(count)', 'n = int(input())\n\ncount = 0\nfor i in range(1, n + 1):\n i = str(i)\n if len(i) % 2 == 1:\n count += 1\nprint(count)\n']
['Wrong Answer', 'Accepted']
['s653152988', 's221755390']
[9112.0, 9096.0]
[65.0, 59.0]
[109, 117]
p02952
u179778090
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(list(n))%2==1:\n ans=ans+1\n \nprint(ans)\n', 'n=int(input())\nans=0\nfor i in range(n+1):\n if len(str(i))%2==1:\n ans=ans+1\n \nprint(ans-1)\n\n']
['Runtime Error', 'Accepted']
['s514207639', 's046129041']
[2940.0, 2940.0]
[17.0, 59.0]
[104, 108]
p02952
u185502200
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())\nh = list(map(int,input().split()))\nf = 0\n\nfor i in range(1,n):\n a = h[i-1] - h[i]\n if a > 1:\n break\n elif a == 1:\n if f == 1:\n break\n f = 1\n else:\n f = 0\n\n if i == n - 1:\n f = 2\n\nif f == 2 or n == 1:\n print('Yes')\nels...
['Runtime Error', 'Accepted']
['s675246822', 's240053808']
[3064.0, 2940.0]
[18.0, 61.0]
[316, 120]
p02952
u185896732
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 os,re\nfrom collections import Counter,deque\nfrom operator import itemgetter\nfrom itertools import accumulate,combinations\nfrom sys import stdin,setrecursionlimit\nfrom copy import deepcopy\nimport pysnooper\nsetrecursionlimit(10**6)\n\nn=int(input())\ncnt=0\nfor i in range(1,n+1):\n if len(str(i))%2==1:...
['Runtime Error', 'Accepted']
['s944598716', 's641783782']
[3828.0, 3828.0]
[34.0, 65.0]
[332, 315]
p02952
u193927973
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())\nresult=0\nif N>=10:\n result=9\nelse:\n result=N\n\nif N>=1000:\n result+=899\nelif 100<=N and N<1000:\n result+=N-100+1\n\nif N>=100000:\n result+=89999\nelif 10000<=N and N<100000:\n result+=N-10000+1\n\nprint(N)', 'N=int(input())\n\nif N>=10:\n result=9\nelif N<10:\n result=...
['Wrong Answer', 'Accepted']
['s737968508', 's059469879']
[2940.0, 3060.0]
[17.0, 17.0]
[231, 233]
p02952
u194440952
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 -*-\n\nn = int(input())\nketa = int(len(str(n)))\nc = 0\n\nprint("keta",keta)\n\nif keta ==1:\n print(n)\nelif keta ==2:\n print(9)\nelif keta ==3:\n print(9+n-10**2+1)\nelif keta == 4:\n print(900+9)\nelif keta == 5:\n print(9+900+n-10**4+1)\nelif keta == 6:\n print(9+900+90000)...
['Wrong Answer', 'Accepted']
['s834594963', 's189164496']
[3064.0, 3064.0]
[18.0, 17.0]
[340, 322]
p02952
u198905553
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(1,N+1):\n if len(str(i)) % 2 == 1:\n ans += 1', 'N = int(input())\n \nans = 0\n \nfor i in range(1,N+1):\n if len(str(i)) % 2 == 1:\n ans += 1\n \nprint(ans)']
['Wrong Answer', 'Accepted']
['s999309085', 's126185287']
[2940.0, 2940.0]
[63.0, 56.0]
[95, 110]
p02952
u199343957
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(i+1)%2 == 1:\n count += 1\n\nprint(count)', 'n = int(input())\ncount = 0\nfor i in range(n):\n if len(str(i+1))%2 == 1:\n count += 1\n \nprint(count)']
['Runtime Error', 'Accepted']
['s079861440', 's049639574']
[2940.0, 2940.0]
[17.0, 64.0]
[96, 102]
p02952
u200527996
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:\n print(N)\nelif N<100:\n prnt(9)\nelif N<1000:\n print(N-90)\nelse:\n print(90909)\n', 'N = int(input())\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 p...
['Runtime Error', 'Accepted']
['s531796525', 's959884496']
[2940.0, 2940.0]
[17.0, 17.0]
[115, 190]
p02952
u201153351
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).
['#ACB-136-B1\n\nN = int(input())\n\nstr_N= str(N)\n\nfor i in range(1,N+1):\n\tif len(str(i)) % 2 ==1:\n\t\tans +-1\nprint(ans)', '#ACB-136-B1\n\nN = int(input())\n\nstr_N= str(N)\n\nfor i in range(1,N+1):\n\tif len(str(i)) % 2 ==1:\n\t\tans +=1\nprint(ans)', '#ACB-136-B1\n\nN = int(input())\n\nstr_N= str(N)\nans = 0\...
['Runtime Error', 'Runtime Error', 'Accepted']
['s394724156', 's525128287', 's907722202']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 56.0]
[114, 114, 121]
p02952
u202727309
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())\nlg = len(N)\ncnt = 0\nif lg == 6:\n cnt = 90909\nelif lg == 5:\n cnt += N - 10000 + 1\n cnt += 909\nelif lg == 4:\n cnt = 909\nelif lg == 3:\n cnt += N - 100 + 1\n cnt += 9\nelif lg == 2:\n cnt = 9\nelse:\n cnt = N\nprint(cnt)', 'N = int(input())\nlg = len(N)\ncnt = 0\nif lg ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s067884107', 's943210433', 's659925197']
[3060.0, 3060.0, 3060.0]
[17.0, 17.0, 64.0]
[251, 251, 115]
p02952
u205087376
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()\ncnt = 0\nfor i in range(1,n+1):\n a = len(i)\n if a % 2 == 1:\n cnt += 1\nprint(cnt)', 'n = int(input())\ncnt = 0\nfor i in range(1,n+1):\n a = len(str(i))\n if a % 2 == 1:\n cnt += 1\nprint(cnt)\n']
['Runtime Error', 'Accepted']
['s941180187', 's090434648']
[2940.0, 2940.0]
[18.0, 60.0]
[96, 107]
p02952
u209275335
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()\ns = int(n)\nl = len(n)\nif l == 1 or l == 2:\n print(s)\nif l == 3:\n print(9+s-99)\nif l == 4:\n print(909)\nif l == 5:\n print(9+900+s-9999)\nif l == 6:\n print(90909)', 'n = input()\ns = int(n)\nl = len(n)\nif l == 1:\n print(s)\nif l == 2:\n print(9)\nif l == 3:\n print(9+s-99...
['Wrong Answer', 'Accepted']
['s608661129', 's426284652']
[3060.0, 3060.0]
[17.0, 17.0]
[185, 199]
p02952
u221061152
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 if len(str(n))%2 == 1:\n cnt+=1\n \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']
['s779948363', 's389616066']
[9152.0, 9020.0]
[58.0, 58.0]
[97, 92]
p02952
u222668979
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=n\nif n>99: ans=n-90\nif n>9999: ans=n-9000-90\nif n>99999: ans=90909\nprint(ans)', 'n=int(input())\nodd=[i for i in range(1,n+1) if len(str(i))%==1]\nprint(len(odd))', 'n=int(input())\nans=0\nans+=n%10\nans+=n%1000+1\nans+=n%100000+1\nprint(ans)', 'n=int(input())\nans=0\nif n>=99999 :ans+=n%10000...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s022503493', 's168086970', 's423321783', 's477924069', 's589390373', 's914090557', 's079853588']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 6720.0]
[17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 47.0]
[96, 79, 71, 116, 60, 71, 80]
p02952
u223555291
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())\nb=0\nfor i in range(a):\n if len(str(a))%2!=0:\n b+=1\n \nprint(b)', 'a=int(input())\nb=0\nfor i in range(a):\n if len(str(a))%2!=0:\n b+=1\n a-=1\nprint(b)\n']
['Wrong Answer', 'Accepted']
['s206898397', 's488012864']
[2940.0, 2940.0]
[59.0, 69.0]
[81, 86]
p02952
u224119985
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())\nh=list(map(int,input().split()))\nans="Yes"\nfor i in range(n-1):\n m=min(h[i+1:n])\n if h[i]-m>1:\n ans="No"\n break\nprint(ans)', 'n=int(input())\nt=n\nc=1\nwhile t>=10:\n t=t//10\n c=c+1\nans=0\nfor i in range(1,c):\n if i%2==1:\n ans+=10**(i)-10**(i-1)\nif c%2==...
['Runtime Error', 'Accepted']
['s425195357', 's828483949']
[3060.0, 3064.0]
[17.0, 17.0]
[157, 178]
p02952
u227085629
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:\n print(n)\nelif n < 1000:\n print(n-90)\nelif n == 100000:\n print(n-9091)\nelse:\n print(n-9090)', 'n = int(input())\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-9091)\nelse:\n print(n-...
['Wrong Answer', 'Accepted']
['s023871715', 's443363491']
[2940.0, 2940.0]
[18.0, 17.0]
[123, 177]
p02952
u227476288
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())\nf = len(str(N))\nprint(f)\nif f%2 == 0:\n print((100**(f//2)-1)//11)\nelse:\n print((100**((f-1)//2)-1)//11 + N - 10**(f-1) + 1)\n', 'N = int(input())\nf = len(str(N))\nif f%2 == 0:\n print((100**(f//2)-1)//11)\nelse:\n print((100**((f-1)//2)-1)//11 + N - 10**(f-1) + 1)\n']
['Wrong Answer', 'Accepted']
['s866006890', 's630373576']
[2940.0, 2940.0]
[20.0, 17.0]
[143, 134]
p02952
u231122239
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 -*-\n\n\nif __name__ == '__main__':\n n = int(input())\n num = 0\n for i in range(n):\n if len(str(i)) % 2 == 1:\n num += 1\n print(num)\n", "# -*- coding: utf-8 -*-\n\n\nif __name__ == '__main__':\n n = int(input())\n num = 0\n for i in range(n):\n if...
['Wrong Answer', 'Accepted']
['s834101732', 's996167160']
[2940.0, 2940.0]
[57.0, 62.0]
[178, 180]
p02952
u234410680
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\n#\n\nfrom math import prod\n\nif __name__ == '__main__':\n n = int(input())\n for i in range(n, 1, -1):\n c = str(i)\n if i%2 == 1 and not '0' in c:\n print(i)\n break\n\n", "#\n\n#\n\nfrom math import prod\n\nif __name__ == '__main__':\n n = int(input())\n a = 0\n...
['Wrong Answer', 'Accepted']
['s360215891', 's322264698']
[9156.0, 9052.0]
[24.0, 62.0]
[221, 198]
p02952
u238084414
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\ni = 0\nfor i in range(0, 5, 2):\n m = 10 ** i\n print(m)\n if len(str(m)) > len(str(N)):\n break\n M = int("9" * (i + 1))\n print(M)\n \n if M > N:\n M = N\n print(M)\n \n cnt += M - m + 1\n\nprint(cnt)', 'N = int(input())\n\ncnt = 0\ni = 0\nfor i in range(0, 5, 2):\n m =...
['Wrong Answer', 'Accepted']
['s126284508', 's898009625']
[3064.0, 3060.0]
[17.0, 18.0]
[229, 196]
p02952
u244836567
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())\nif a<10:\n print(a)\nif 10<=a<1000:\n print(9+a-90)\nif 1000<=a<100000:\n print(9+900+a-9090)\nif a==1000000:\n print(90909)', 'a=int(input())\nif a<10:\n print(a)\nif 10<=a<100:\n print(9)\nif 100<=a<1000:\n print(9+a-99)\nif 1000<=a<10000:\n print(909)\nif 10000<=a<100000:\n print(909+a-999...
['Wrong Answer', 'Accepted']
['s697746781', 's393705023']
[9068.0, 9060.0]
[29.0, 25.0]
[136, 191]
p02952
u247211039
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\ncnt=0\n\nfor i in range(1,N+1):\n if len(str(i)) %2 != 0:\n cnt+=1\nprint(cnt)', 'N = int(input())\n \ncnt=0\n \nfor i in range(1,N+1):\n if len(str(i)) %2 != 0:\n cnt+=1\nprint(cnt)']
['Runtime Error', 'Accepted']
['s412057837', 's328778904']
[8940.0, 9152.0]
[25.0, 60.0]
[96, 103]
p02952
u248670337
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 = N\nl = len(str(s))\nans = 0\nfor i in range(l):\n print(l - i - 1)\n if (l - i) % 2 == 1:\n ans += N - 10 ** (l - i - 1)\n N = 10 ** (l - i - 1)\n print(N)\nif l % 2 == 1:\n print(ans + 1)\nelse:\n print(ans)', 'N = int(input())\ns = N\nl = len(str(s))\nans = 0\nfor i in...
['Wrong Answer', 'Accepted']
['s482302266', 's473153054']
[3064.0, 3060.0]
[17.0, 17.0]
[242, 208]
p02952
u249218227
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 N:\n if len(list(i)) % 2 == 1:\n ans += 1\nprint(ans)', 'N = int(input())\nans = 0\nfor i in N:\n if len(list(i)) % 2 = 1:\n ans += 1\nprint(ans)\n ', 'N = int(input())\nans = 0\nfor i in range(1, N+1):\n if len(list(i)) % 2 = 1:\n ans += 1\nprint(ans)', 'N = int(input...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s062694128', 's631210569', 's700625112', 's220919968']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 104.0]
[88, 90, 99, 105]
p02952
u250119052
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\nn = input()\ncnt = 0\nfor i in range(1, int(n) + 1):\n if len(str(i)) % 2 == 1:\n print(i)\n cnt += 1\n\nprint(cnt)', '# coding: utf-8\nn = input()\ncnt = 0\nfor i in range(1, int(n) + 1):\n if len(str(i)) % 2 == 1:\n cnt += 1\n\nprint(cnt)']
['Wrong Answer', 'Accepted']
['s894716115', 's535620611']
[3820.0, 2940.0]
[138.0, 59.0]
[141, 124]
p02952
u252828980
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 = 0\nprint(len(str(n)))\nfor i in range(n):\n if len(str(i))%2 == 1:\n num += 1\nprint(num)', 'n = int(input())\nnum = 0\nfor i in range(1,n+1):\n if len(str(n))%2 == 1:\n num += 1\nprint(num)', 'n = int(input())\nnum = 0\nfor i in range(n):\n if len(str(n))%2 == 1:\n num += 1\nprint...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s171767083', 's230473765', 's414210421', 's579115978', 's918273378', 's510585967']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[62.0, 58.0, 58.0, 33.0, 60.0, 62.0]
[111, 96, 92, 86, 92, 101]
p02952
u255428274
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 keta(N):\n ten = 1\n for i in range(1, 8):\n if N/ten < 1:\n break\n ten = ten*10\n return i-1\n \nif keta(N)==1:\n ans = N\nelif keta(N)==2:\n ans = 9\nelif keta(N)==3:\n ans = 9 + N-99\nelif keta(N)==4:\n ans = 909\nelif keta(N)==5:\n a...
['Wrong Answer', 'Accepted']
['s901813267', 's739595128']
[3064.0, 3060.0]
[17.0, 17.0]
[377, 362]
p02952
u263734237
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())\ncou = 0\nfor i in range(n, 1):\n num = len(str(i))\n if not num%2:\n cou+=1\nprint (cou)', '# -*- coding: utf-8 -*-\nn = int(input())\ncou = 0\nfor i in range(n, 1):\n if not i%2:\n cou+=1\nprint (cou)', '# -*- coding: utf-8 -*-\nn = int(input())\ncou = 0\nfor i in range(n+1):...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s661628017', 's706148024', 's720330025', 's860954462']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 31.0, 57.0]
[113, 113, 112, 111]
p02952
u268792407
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\nif n<10:\n print(n)\nif 9<n<100:\n print(9)\nif 99<n<1000:\n print(n-90)\nif 999<n<10000:\n print(909)\nif 9999<n:\n print(n-9090)\n', 'n=int(input())\nif n<10:\n print(n)\nif 9<n<100:\n print(9)\nif 99<n<1000:\n print(n-90)\nif 999<n<10000:\n print(909)\nif 9999<n<100000:\n print(n-909...
['Runtime Error', 'Accepted']
['s132235733', 's070863618']
[2940.0, 3060.0]
[17.0, 17.0]
[146, 177]
p02952
u270467412
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\n# 1 <= N <= 10**5 = 100,000\n\nif N <= 9:\n print(N)\nelif N <= 999:\n ans = 9 + (N - 99)\n print(ans)\nelif N <= 99999:\n ans = 9 + 900 + (N - 9999)\n print(ans)\nelse:\n print(90909', 'N = int(input())\n\n# 1 <= N <= 10**5 = 100,000\n\nif N <= 9:\n print(N)\nelif N <= 999:\n ans = 9 + (N...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s151839502', 's233203404', 's984705237']
[3064.0, 3060.0, 3060.0]
[24.0, 17.0, 17.0]
[196, 197, 197]
p02952
u272754211
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).
['\nN = input()\n\nans = 0\n\nif len(N) == 1:\n ans = int(N)\n\nelse:\n for i in range(1, len(N) + 1):\n\n dataS = N[i-1]\n\n if i == 1:\n ans = ans + 9\n\n elif i % 2 == 1:\n\n if i == len(N):\n data1 = (int(N[len(N) - i]) - 1) \n data2 = i...
['Wrong Answer', 'Accepted']
['s210669854', 's732914529']
[3064.0, 3064.0]
[17.0, 18.0]
[425, 467]
p02952
u273540356
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\n\nN = int(input)\n\ndigit = int(np.log10(N).round()+1)\ncnt = 0\n\nfor x in range(digit):\n x += 1\n if x % 2 != 0:\n if x < digit:\n cnt += (10**x) - (10**(x-1))\n else:\n cnt += N - (10**(x-1)) + 1\nprint('{}'.format(cnt))", "N = int(input())\n# %%\n\ndi...
['Runtime Error', 'Accepted']
['s078463016', 's447358577']
[21360.0, 3060.0]
[311.0, 17.0]
[272, 245]
p02952
u274819371
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()\nnlen = len(N)\ncnt = 0\nfor i in range(1, nlen):\n if i % 2:\n cnt += (10 ** i) - (10 ** (i - 1))\nprint(cnt)\nN = int(N)\nif nlen % 2:\n cnt += N - 10 ** (nlen - 1) + 1\nprint(cnt)', 'N = input()\nnlen = len(N)\ncnt = 0\nfor i in range(1, nlen):\n if i % 2:\n cnt += (10 ** i) - (10 ** (i - 1))\...
['Wrong Answer', 'Accepted']
['s251575662', 's770231567']
[3064.0, 3060.0]
[17.0, 17.0]
[189, 178]
p02952
u276686572
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())\nfor i in range(1, a + 1):\n if len(str(i)) % 2 ==1: ans+=1 \nprint(ans)\n', 'a = int(input())\nans = 0\nfor i in range(1, a + 1):\n if len(str(i)) % 2 ==1: ans+=1 \nprint(ans)\n']
['Runtime Error', 'Accepted']
['s845834603', 's806270757']
[9048.0, 9016.0]
[24.0, 64.0]
[90, 98]
p02952
u276785896
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 if len(i) // 2:\n i += 1\n else:\n sum += 1\n i += 1\nprint(sum)', 'N = int(input())\nsum = 0\nfor i in range[1,N+1]:\n if len(i) % 2 == 1:\n sum += 1\nprint(sum)', 'N = int(input())\nsum = 0\nfor i in range[1,N+1]:\n if len(str(i)) % 2 == 1:\n su...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s744287870', 's748386374', 's945369054', 's794894899']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 70.0]
[119, 93, 98, 98]
p02952
u278864208
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())\nnm = N//10\nsum = 0\nfor i range(nm):\n if N%2 ==0:\n sum += (10**i-1)\nif nm%2 != 0:\n sum += N-(10**nm)+1', 'N = int(input())\nnm = len(str(N))-1\nsumm = 0\nfor i in range(nm):\n if N%2 ==0:\n summ += (10**i-1)\nif nm%2 == 0:\n summ += N-(10**nm)+1\nprint(summ)\n', 'N = i...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s156269342', 's247595697', 's570892165', 's833906083', 's863279415']
[2940.0, 2940.0, 3060.0, 3060.0, 3060.0]
[17.0, 17.0, 721.0, 17.0, 17.0]
[131, 158, 150, 205, 197]
p02952
u292229841
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).
['number = int(input())\nans = 0\n\nfor i in range(1,number+1):\n if len(str(i)) % 2 != 1:\n ans += 1\n\nprint(ans)', 'number = int(input())\nans = 0\n\nfor i in range(1,number+1):\n if len(str(i)) % 2 != 0:\n ans += 1\n\nprint(ans)']
['Wrong Answer', 'Accepted']
['s134545322', 's588012330']
[2940.0, 2940.0]
[49.0, 56.0]
[110, 110]
p02952
u292735000
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).
['count = 0\nfor i in range(1, n + 1):\n if len(str(i)) % 2 == 1:\n count += 1\nprint(count)', 'n = int(input())\n\ncount = 0\nfor i in range(1, n + 1):\n if len(str(i)) % 2 == 1:\n count += 1\nprint(count)']
['Runtime Error', 'Accepted']
['s296038713', 's619518133']
[2940.0, 2940.0]
[17.0, 59.0]
[96, 114]
p02952
u294385082
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()\nl = []\nfor i in range(1,int(n)+1):\n if len(i)%2 != 0:\n l.append(i)\n\nprint(len(l))', 'n = input()\nl = []\nfor i in range(1,int(n)+1):\n if len(str(i))%2 != 0:\n l.append(i)\n\nprint(len(l))']
['Runtime Error', 'Accepted']
['s161669918', 's734028045']
[2940.0, 6720.0]
[17.0, 62.0]
[97, 102]
p02952
u296518383
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#n=11\n#l=len(str(n))\nif l ==1:\n print(n)\nelif l==2:\n print(9)\nelif l==3:\n print(9+n-99)\nelif l==4:\n print(9+900)\nelif l==5:\n print(9+900+n-9999)\nelif l==6:\n print(9+900+90000)\n ', 'n=int(input()) \n#n=11\nl=len(str(n))\nif l ==1:\n print(n)\nelif l==2:\n pri...
['Runtime Error', 'Accepted']
['s510527236', 's075547057']
[2940.0, 2940.0]
[17.0, 17.0]
[260, 259]
p02952
u299801457
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 in range(n):\n if len(str(i))%2==1:\n ans+=1\n\nprint(ans)', 'n=int(input())\n\nans=0\nfor i in range(1,n+1):\n if len(str(i))%2==1:\n ans+=1\n\nprint(ans)']
['Wrong Answer', 'Accepted']
['s983552369', 's943373914']
[2940.0, 2940.0]
[60.0, 56.0]
[92, 96]
p02952
u303059352
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).
['#include <bits/stdc++.h>\nusing namespace std;\n// おまじない\n#define INCANT cin.tie(0), cout.tie(0), ios::sync_with_stdio(false), cout << fixed << setprecision(20);\n\n// alias\n\n#define pb push_back\n#define all(x) (x).begin(), (x).end()\ntemplate<typename T>\nbool chmax(T& a, T b){return (a = max(a, b)) == b;}\ntempl...
['Runtime Error', 'Accepted']
['s899146286', 's464937432']
[2940.0, 2940.0]
[17.0, 38.0]
[6311, 118]
p02952
u304292701
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 = str(input())\n\nN = int(len(n))\nresult = 0\n\nif N == 1:\n result = n\nelif N % 2 != 0:\n result += (int(n) - (10 ** (N-1))) + 1\n count = 0\n for i in range(N // 2):\n count += 1 \n a = "9" * count\n result += int(a)\nelse:\n for i in range(N // 2):\n count += 1 \n ...
['Runtime Error', 'Accepted']
['s588929871', 's036019298']
[3064.0, 2940.0]
[17.0, 59.0]
[360, 118]
p02952
u310233294
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 = len(list(n))\nd_list = [9, 900, 90000]\nif n >= 5:\n ans = 90909\nelif n >= 4:\n ans = 909\nelif n >= 3:\n ans = 9 + N % 1000\nelif n >= 2:\n ans = 9\nelse:\n ans = N % 10\nprint(ans)', 'N = int(input())\nn = len(list(str(N)))\nif n >= 6:\n ans = 90909\nelif n >= 5:\n ans = 909 + (N - 9999)\ne...
['Runtime Error', 'Accepted']
['s774775370', 's883100954']
[3060.0, 3060.0]
[17.0, 17.0]
[192, 210]
p02952
u315706001
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:\n print (N)\nif N >=10 & N <100:\n print ("9")\nif N >=100 & N < 1000:\n print (N - 99 + 9)\nif N >= 1000 & N < 10000:\n print ("909")\nif N >=10000 & N < 100000:\n print (N - 9999 + 900 + 9)\nif N == 100000:\n print ("90909")', 'N = int (input())\nif N < 10:\n print (N)\nif N >=1...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s200983467', 's231887531', 's888472545', 's702085384']
[3060.0, 3064.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[250, 250, 254, 268]
p02952
u325704929
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\n\n\nN = input()\n\ndigit = len(N)\nans = 0\n\nif digit != 1:\n ans = '09' * (digit // 2)\n ans = int(ans)\n\nif digit % 2 == 1:\n ans += int(N) - 10**(digit - 1) + 1\n\n print(ans)", "\n\n\nN = input()\n\ndigit = len(N)\nans = 0\n\nif digit != 1:\n ans = '09' * (digit // 2)\n ans = int(ans)\n\nif digit % 2 ...
['Wrong Answer', 'Accepted']
['s092063035', 's466114162']
[2940.0, 3316.0]
[17.0, 19.0]
[471, 465]
p02952
u327277350
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(list(filter(lambda n: n % 2 == 1, range(1, int(input()) + 1)))))\n', 'print(len((list(filter(lambda n: len(str(n)) % 2 == 1, range(1, int(input()) + 1))))))\n']
['Wrong Answer', 'Accepted']
['s122222386', 's748748244']
[5084.0, 6732.0]
[33.0, 58.0]
[75, 87]
p02952
u327466606
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+1):\n\tif len(str(i)) % 2 == 1:\n\t\tcnt += 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']
['s284258235', 's237994066']
[2940.0, 2940.0]
[58.0, 60.0]
[93, 104]
p02952
u331997680
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(i)%2 == 1:\n cnt += 1\nprint(cnt)\n', 'N = int(input())\ncnt = 0\nfor i in range(N):\n if len(i)%2 == 1:\n cnt += 0\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)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s207569086', 's726206765', 's411069677']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 61.0]
[88, 87, 96]
p02952
u334370828
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\nif N > 99999:\n ans += 90909\nelif 99999 >= N > 10000: \n tmp = (N % 100000) \n print("Nが6桁、または5桁: tmp = ", tmp)\n ans += tmp - 10000\n ans += 909\nelif 9999 >= N > 100: \n tmp = (N % 1000)\n print("Nが4桁、または3桁: tmp = ", tmp)\n ans += tmp - 100\n ans += 9\nelif ...
['Wrong Answer', 'Accepted']
['s926365623', 's263056272']
[3064.0, 2940.0]
[17.0, 59.0]
[535, 107]
p02952
u339097404
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\nfor i in range(1, N + 1):\n if lens(str(i)) % 2 is 1:\n ans += 1\n \nprint(ans)', 'N = int(input())\nans = 0\nfor i in range(1, N + 1):\n if lens(str(i)) % 2 is 1:\n ans += 1\n \nprint(ans)', 'n = int(input())\nans = 0\nfor i in range(1, n + 1):\n if len(str(i)) % 2 ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s654057651', 's839977035', 's057467214']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 58.0]
[108, 113, 109]
p02952
u339851548
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(5):\n if 10**i <= n <= 10**(i+1):\n keta = i+1\n break\n\nif keta ==1 or keta == 2:\n count = n\nelif keta == 3:\n count = 9 + (n - 100)\nelif keta == 4:\n count = 9 + 899\nelse:\n count = 9 + 899 + (n - 89999)\n\nprint(count)', 'n = int(input())\nfor i in...
['Wrong Answer', 'Accepted']
['s461441347', 's107321531']
[3060.0, 3064.0]
[17.0, 18.0]
[273, 360]
p02952
u345483150
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 if len(i)%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)']
['Runtime Error', 'Accepted']
['s655827477', 's548084982']
[2940.0, 2940.0]
[17.0, 62.0]
[83, 88]
p02952
u347600233
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 if len(str(n)) % 2:\n cnt += 1\nprint(cnt)', 'n = int(input())\nprint(sum(len(str(i + 1)) % 2 for i in range(n)))']
['Wrong Answer', 'Accepted']
['s515560680', 's290266892']
[3060.0, 9100.0]
[58.0, 52.0]
[102, 66]
p02952
u347920118
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).
['num = int(input())\n#print(num)\ncnt=0\nfor i in range(num):\n if len(str(i))%2==1:\n cnt = cnt+1\n \n \nprint(cnt)', 'num = int(input())\n#print(num)\ncnt=0\nfor i in range(1,num+1):\n #print(i)\n if len(str(i))%2==1:\n cnt = cnt+1\n \n \nprint(cnt)']
['Wrong Answer', 'Accepted']
['s341863440', 's155266026']
[2940.0, 2940.0]
[58.0, 63.0]
[127, 137]
p02952
u350093546
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<=9:\n print(n)\nelif n<=99:\n print(9)\nelif n<=999:\n print(n-90):\nelif n<=9999:\n print(909)\nelif n==100000:\n print(90909)\nelse:\n print(n-9090)', 'n=int(input())\nif n<=9:\n print(n)\nelif n<=99:\n print(9)\nelif n<=999:\n print(n-90)\nelif n<=9999:\n print(909)\nelif n==100000:\...
['Runtime Error', 'Accepted']
['s279423554', 's123825976']
[2940.0, 2940.0]
[17.0, 17.0]
[165, 165]
p02952
u350248178
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())\nans+=0\nfor i in range(1,a+1):\n if len(str(i))%2==1:\n ans+=1\nprint(ans)', 'a=int(input())\nans=0\nfor i in range(1,a+1):\n if len(str(i))%2==1:\n ans+=1\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s658927363', 's460086354']
[2940.0, 2940.0]
[18.0, 64.0]
[89, 89]
p02952
u352499693
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([None for i in range(int(input())+1) if len(str(i)) % 2]))', 'print(len([None for i in range(1, int(input())+1) if len(str(i)) % 2]))']
['Wrong Answer', 'Accepted']
['s242533163', 's152079500']
[3864.0, 3864.0]
[45.0, 50.0]
[68, 71]
p02952
u362563655
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())\nprint(N-100000*(N//100000)+1+N-1000*(N//1000)+1*N-10*(N//10)+1)', 'N = int(input())\n\nketa = len(str(N))\ncnt = 0\n\nfor i in range(1,keta,2):\n cnt += 9 * (10**(i-1))\n\nif keta % 2 == 1:\n cnt += N - (10**(keta-1)) + 1\n\nprint(cnt)']
['Wrong Answer', 'Accepted']
['s178202631', 's242635005']
[2940.0, 3060.0]
[18.0, 17.0]
[80, 163]
p02952
u363599046
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()\nc=0\na = [x for i in range(n)]\nfor x in a:\n if len(str(x)) % 2 == 1:\n c += 1\n \nprint(c)', 'n = int(input())\nc=0\na = [i for i in range(n+1)]\nfor x in a:\n if len(str(x)) % 2 == 1:\n c += 1\n \nprint(c-1)']
['Runtime Error', 'Accepted']
['s553509769', 's552587020']
[2940.0, 7064.0]
[17.0, 58.0]
[105, 114]
p02952
u363836311
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())\nt=0\nfor i in range(n):\n l=len(str(i))\n if l%2!=0:\n t+=1\nprint(t)\n', 'n=int(input())\nt=0\nfor i in range(n):\n l=len(str(i+1))\n if l%2!=0:\n t+=1\n #print(i)\nprint(t)\n']
['Wrong Answer', 'Accepted']
['s404448218', 's000626640']
[2940.0, 2940.0]
[58.0, 68.0]
[85, 101]
p02952
u364774090
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(str(N))\nans = 0\nn = 1\nwhile l >= n:\n\tq = '9' * (n - 1)\n\tif q == '':\n\t\tq = '0'\n\tc = 9 * int(q) + 9\n\tprint(N, c)\n\tif N > c:\n\t\tans += c\n\telse:\n\t\tans += N - (10 ** (n - 1)) + 1\n\tn += 2\nprint(ans)\n", 'N = int(input())\nans = 0\nfor i in range(1, N + 1):\n\tif len(str(i...
['Wrong Answer', 'Accepted']
['s585397412', 's538077939']
[9188.0, 8856.0]
[30.0, 59.0]
[217, 99]
p02952
u368016155
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 = 0\nfor i in range(1,N+1):\n a = [_ for _ in str(i)]\n if len(a)%2=1:\n count += 1\n\nprint(count)', 'N = int(input())\n\ncount = 0\nfor i in range(1,N+1):\n if len(str(i))%2=1:\n count += 1\n\nprint(count)', 'N = int(input())\n\ncount = 0\nfor i in range(1,N+1):\n a = [_ for _ in...
['Runtime Error', 'Runtime Error', 'Accepted']
['s003177230', 's590405348', 's630877740']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 107.0]
[122, 101, 123]
p02952
u368796742
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\nif len(n)%2 == 0:\n for i in range(len(n)//2):\n count += 9*(10**(2*i))\n print(count)\nelse:\n for i in range(len(n)//2):\n count += 9*(10**(2*i))\n count += n - 10**(len(n)-1)+1\n print(count)\n \n ', 'n = input()\ncount = 0\nif len(n)%2 == 0:\n for i in range(len(n)//2)...
['Runtime Error', 'Accepted']
['s323327846', 's072848541']
[2940.0, 3060.0]
[18.0, 17.0]
[232, 233]
p02952
u369338402
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).
['count=0\nn=int(input())\nfor i in range(1,n+1):\n if len(str(i))%2==0:\n count+=1\nprint(count)', 'count=0\nn=int(input())\nfor i in range(1,n+1):\n if len(str(i))%2==1:\n count+=1\nprint(count)\n']
['Wrong Answer', 'Accepted']
['s148594693', 's798406983']
[2940.0, 2940.0]
[57.0, 58.0]
[94, 95]
p02952
u371530330
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\n \nfor i in range(1,n+1):\n if len(int(i))%2 == 1:\n count += 1\n \nprint(count)', 'n = int(input())\ncount = 0\n \nfor i in range(1,n+1):\n if len(int(i))//2 != 1:\n count += 1\n \nprint(count)', 'n = int(input())\ncount = 0\n \nfor i in n:\n if len(i)//2 != 0:\n count += 1\n...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s317758508', 's592239797', 's611117299', 's665047679', 's904766023', 's946598595']
[2940.0, 2940.0, 2940.0, 3316.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 19.0, 17.0, 63.0]
[106, 107, 91, 102, 87, 106]
p02952
u372102441
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 = map(int,input().split())\nunchi = 0\nwhile a>=1:\n a -=1\n if 99999 >= a >= 10000:\n unchi += 1\n elif 999 >= a >= 100:\n unchi += 1\n elif 9 >= a >= 1:\n unchi += 1\nprint(unchi)\n', 'a = int(input())\nunchi = 0\nfor i in range(1,a):\n if 99999 >= a >= 10000:\n unchi +=...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s256611017', 's587670906', 's643376200', 's598669641']
[2940.0, 2940.0, 2940.0, 3064.0]
[17.0, 33.0, 35.0, 46.0]
[207, 194, 195, 196]
p02952
u374146618
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())\nsm = 0\nfor i in range(n):\n if len(str(i)) % 2 == 1:\n sm += 1\n \nprint(sm)', 'a, b = input().split()\nprint(" ".join([b, a]))', 'n = int(input())\nsm = 0\nfor i in range(1, n+1):\n if len(str(i)) & 1 == 1:\n sm += 1\n \nprint(sm)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s542762602', 's823951157', 's171048906']
[2940.0, 2940.0, 2940.0]
[58.0, 18.0, 65.0]
[106, 46, 111]
p02952
u374802266
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())\nb=0\nfor i in range(1,a+1):\n if len(str(i))%2==1:\n print(i)\n b+=1\nprint(b)', 'a=int(input())\nb=0\nfor i in range(a):\n if len(str(i))%2==1:\n b+=1\nprint(b)', 'a=int(input())\nb=0\nfor i in range(1,a+1):\n if len(str(i))%2==1:\n b+=1\nprint(b)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s031516374', 's453425832', 's485501343']
[3820.0, 2940.0, 2940.0]
[124.0, 67.0, 57.0]
[105, 84, 88]