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 | u617556913 | 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). | ['for i in range(1, int(input())+1):\n\tif len(str(i))%2==1:\n\t\tprint(len[i]) ', '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'] | ['s729080135', 's075094143'] | [9128.0, 9060.0] | [21.0, 61.0] | [74, 102] |
p02952 | u620755587 | 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\ncnt += (n - 10 ** (len(str(n)) - 1) + 1) * (len(str(n)) % 2 == 1)\nn -= n - 10 ** (len(str(n)) - 1) + 1\nprint(n, cnt)\nif n == 0:\n print(cnt)\n exit()\nfor i in range(len(str(n))):\n if (len(str(n)) - i) % 2 == 1:\n cnt += 10 ** (len(str(n)) - i - 1) * 9\n print(len(str... | ['Wrong Answer', 'Accepted'] | ['s551277080', 's774151809'] | [3064.0, 3064.0] | [18.0, 17.0] | [332, 286] |
p02952 | u621509924 | 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 0<=math.log10(N)<1:\n print(N)\nelif 1<=math.log10(N)<2:\n print(9)\nelif 2<=math.log10(N)<3:\n print(N-90)\nelif 3<=math.log10(N)<4:\n print(909)\nelif 4<=math.log10(N)<5:\n print(N-9090)\nelif:\n print(90909)', 'N=int(input())\nimport math\nif 0<=math.log10(N)<1:\n print(N)\ne... | ['Runtime Error', 'Accepted'] | ['s024161171', 's756118088'] | [2940.0, 3060.0] | [17.0, 17.0] | [235, 252] |
p02952 | u624613992 | 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) != 0:\n ans += 1\nprint(ans)', 'n = int(input())\nans = 0\nfor i in range(1,n+1):\n if len(i) % 2 != 0:\n ans += 1\nprint(ans)', 'n = int(input())\nans = 0\nfor i in range(1,n+1):\n num = str(i)\n if (len(num) % 2) != 0:\n ans += 1\nprin... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s131353675', 's954441048', 's595205299'] | [9168.0, 9088.0, 9040.0] | [28.0, 21.0, 64.0] | [95, 93, 112] |
p02952 | u634046173 | 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 len(str(N)) % 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)\n'] | ['Wrong Answer', 'Accepted'] | ['s095553247', 's978410761'] | [9104.0, 9092.0] | [59.0, 59.0] | [89, 90] |
p02952 | u637918426 | 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\n\nfor i in range(6):\n if N >= 10 ** i:\n if i % 2 == 1:\n c += 9 * (10 ** (i - 1))\n print(c)\n else:\n if i % 2 == 1:\n c += N - (10 ** (i - 1)) + 1\n print(c)\n break\n\nprint(c)\n\n', 'N = int(input())\ncount = 0\n\n... | ['Wrong Answer', 'Accepted'] | ['s315460074', 's241955596'] | [2940.0, 2940.0] | [17.0, 109.0] | [266, 156] |
p02952 | u638217437 | 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())\ndef numOfDigits(num):\n return len(str(num))\nans += 1\nwhile n > 0:\n if numOfDigits(n)%2 == 1:\n ans += 1\nprint(ans)\n', 'n = int(input())\ndef numOfDigits(num):\n return len(str(num))\nans = 0\nwhile n > 0:\n if numOfDigits(n)%2 == 1:\n ans += 1\n n -= 1\nprint(ans)'... | ['Runtime Error', 'Accepted'] | ['s345853701', 's361043514'] | [2940.0, 2940.0] | [17.0, 72.0] | [144, 153] |
p02952 | u638472784 | 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())\nre =0\nfor i in range(1,num+1):\n if len(str(i)) % 2 != 0:\n re += 1\n print(re)\n \n', 'num = int(input())\nre =0\nfor i in range(1,num+1):\n if len(str(i)) % 2 != 0:\n re += 1\nprint(re)\n \n'] | ['Wrong Answer', 'Accepted'] | ['s231772232', 's186418187'] | [3792.0, 2940.0] | [128.0, 63.0] | [122, 114] |
p02952 | u638867180 | 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()\na=0\nfor i in range(int(n)):\n lenn = len(range(i))\n N = lenn % 2\n if N == 0:\n a = a + 1\nprint(a)', 'n = input()\na=0\nfor i in range(int(n)):\n lenn = len(str(i+1))\n N = lenn % 2\n if N == 1:\n a = a + 1\nprint(a)'] | ['Wrong Answer', 'Accepted'] | ['s587310362', 's364760052'] | [2940.0, 2940.0] | [71.0, 65.0] | [113, 113] |
p02952 | u641770903 | 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#print(N)\n\nans = 0\nif N > 10:\n ans = ans + 9\n if N > 1000:\n ans = ans + 999 - 99\n if N >= 100000:\n ans = ans + 99999 - 9999\n else:\n ans = ans + N - 9999\n else:\n ans = ans + N - 99\nelse:\n ans += N\nprint(ans)\n', 'N = int(input())\n#print(N)\n\nans = 0\nif N > ... | ['Wrong Answer', 'Accepted'] | ['s186355462', 's397671586'] | [2940.0, 2940.0] | [17.0, 17.0] | [250, 264] |
p02952 | u642528832 | 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 len(str(n))%2==1:\n count+=1\nprint(count)', 'n = int(input())\n\nif n < 100 :\n print(n)\nif 100 <= n < 10000:\n print(n-100+1+9)\nif 10000 <= n < 100000:\n print(n-10000+1+999-100+1+9)\nif n == 100000:\n print(90909)', 'n = int(input())\nc... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s034838819', 's668307078', 's330102881'] | [9160.0, 9160.0, 9152.0] | [58.0, 27.0, 61.0] | [102, 175, 102] |
p02952 | u652181492 | 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). | ['str = input()\nnum = int(str)\nconst = len(str)\nnumbers = len(str)\neven = 0\ncon = 0\na = str[even:const]\nb = int(a)\nif numbers%2==1:\n pass\nelse:\n even += 1\n numbers -= 1\n a = str[even:const]\n b = int(a)\nwhile numbers > 0:\n con += (b - 10**(numbers-1) + 1)\n even += 2\n numbers -= ... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s150862746', 's160775850', 's605965743'] | [3064.0, 3064.0, 3064.0] | [17.0, 17.0, 17.0] | [389, 484, 401] |
p02952 | u652569315 | 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(len(n)):\n if len(str(i))%2 == 1:\n count += 1\nprint(count)\n', 'n = int(input())\ncount = 0\nfor i in range(1,n+1):\n if len(str(i))%2 == 1:\n count += 1\nprint(count)'] | ['Runtime Error', 'Accepted'] | ['s932903079', 's654476620'] | [2940.0, 2940.0] | [17.0, 59.0] | [104, 102] |
p02952 | u662449766 | 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\ninput = sys.stdin.readline\n\n\ndef main():\n n = input().strip()\n int_n = int(n)\n keta = len(n)\n \n \n # 1 -> 9 -> 9\n # 100 -> 999 -> 899\n # full - 100 -> x\n cnt = 0\n for i in range(1, keta + 1, 2):\n print(i)\n max_num = 10 ** (i) - 1\n min_num... | ['Wrong Answer', 'Accepted'] | ['s550093046', 's251048524'] | [3060.0, 3064.0] | [17.0, 17.0] | [587, 569] |
p02952 | u665598835 | 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\ncount = 0\nfor i in range(1,N+1):\n if int(math.log10(i)) %2 ==0:\n print(i)\ncount', 'N = int(input())\nimport math\ncount = 0\nfor i in range(1,N+1):\n if int(math.log10(i)) %2 ==0:\n count+=1\ncount', 'N = int(input())\nimport math\ncount = 0\nfor i in range(1,N+1... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s250806713', 's759412737', 's763984451', 's907412286', 's932604440', 's170018845'] | [3948.0, 2940.0, 2940.0, 3316.0, 2940.0, 2940.0] | [130.0, 67.0, 59.0, 24.0, 17.0, 60.0] | [118, 118, 126, 110, 121, 125] |
p02952 | u666415539 | 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\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\nprint (cnt)'] | ['Runtime Error', 'Accepted'] | ['s018099781', 's543122462'] | [2940.0, 2940.0] | [17.0, 61.0] | [89, 90] |
p02952 | u667024514 | 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())\nlis = list(map(int,input().split()))\nfor i in range(n-1):\n if lis[i] -1 >= lis[i+1]:\n lis[i] -= 1\nfor i in range(n-1):\n if lis[i] > lis[i+1]:\n print("No")\n exit()\nprint("Yes")\n', 'n = int(input())\nans = 0\nfor i in range(1,n+1):\n if len(str(i)) % 2 == 1:\n ans += 1\nprint(a... | ['Runtime Error', 'Accepted'] | ['s000194669', 's502795236'] | [9180.0, 2940.0] | [23.0, 56.0] | [204, 98] |
p02952 | u667505876 | 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(i))%2 != :\n cnt+=1\nprint(cnt)', 'N = int(input())\ncnt = 0\nfor i in range(1,N+1):\n if len(str(i))%2 != 0:\n cnt+=1\nprint(cnt)'] | ['Runtime Error', 'Accepted'] | ['s523192008', 's872364387'] | [2940.0, 2940.0] | [17.0, 57.0] | [93, 94] |
p02952 | u668924469 | 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 collections\n\nn = int(input())\nprint(collections.Counter([len(str(i))%2 for i in range(n)])[1])', 'import collections\n\nn = int(input())\nprint(collections.Counter([len(str(i))%2 for i in range(1,n+1)])[1])'] | ['Wrong Answer', 'Accepted'] | ['s713607361', 's292312366'] | [4212.0, 4212.0] | [50.0, 94.0] | [101, 105] |
p02952 | u669173971 | 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())\nd=len(str(n))\nprint(d)\n\nif d%2==0:\n print(9*10**(d//2-1))\nelse:\n print(9*10**(d//2-1)+n-10**(d//2+1)+1)', 'n=int(input())\nd=len(str(n))\n\nif d==1:\n print(n)\nelif d==2 or d==3:\n c=9\n if d%2==0:\n print(c)\n else:\n print(c+n-10**(d-1)+1)\nelif d==4 or d==5:\n... | ['Wrong Answer', 'Accepted'] | ['s886019140', 's029594496'] | [2940.0, 3064.0] | [17.0, 17.0] | [124, 283] |
p02952 | u670567845 | 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))\ncnt = 0\nfor i in range(keta):\n if i%2 == 1:\n cnt += 9*10**(i-1)\n\nif keta%2 == 0:\n print(cnt-1)\nelse:\n print(cnt + N-10**(keta-1) + 1)\n', 'N = int(input())\nketa = len(str(N))\ncnt = 0\nfor i in range(keta):\n if i%2 == 1:\n cnt += 9*10**(i-1)\n\nif keta%2 == 0:... | ['Wrong Answer', 'Accepted'] | ['s065828097', 's005307110'] | [2940.0, 2940.0] | [17.0, 17.0] | [176, 173] |
p02952 | u671889550 | 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=[]\n\nif N%2==0:\n for i in range(0,N+1,2):\n n=len(str(i))\n if n%2==1:\n l.append(n)\nprint(len(l))\n\nElse:\n for j in range(1,N+1,2):\n n=len(str(i))\n if n%2==1:\n l.append(n)\nprint(len(l))\n \n \n\n ', 'N=int(input())\ncnt=0\n\nfor i in range(1,N+1):\n if len(str... | ['Runtime Error', 'Accepted'] | ['s889253806', 's055440298'] | [8972.0, 9024.0] | [25.0, 56.0] | [232, 95] |
p02952 | u672735299 | 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 <= 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)\n\nelse:\n print 90909', 'n = int(input())\n\nif(n <= 9):\n return n\n\nelif(n <= 99):\n return 9\n\nelif(n <= 999):... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s098945998', 's781034869', 's397328167'] | [2940.0, 2940.0, 3060.0] | [18.0, 17.0, 19.0] | [200, 206, 202] |
p02952 | u684267998 | 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 = int(input())\n\ntmp = s + 1\ni = 0\noutput = 0\nfor i in range(tmp):\n if i%2 == 0:\n i = 0\n else:\n output = output + 1\n \nprint(output)\n \n ', 's = int(input())\n\ntmp = s\ng = 0\noutput = 0\nfor i in range(tmp):\n i = i + 1\n if int(len(str(i)))%2 == 0:\n g=... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s399735492', 's656620818', 's778869749'] | [2940.0, 3920.0, 2940.0] | [32.0, 149.0, 80.0] | [173, 200, 173] |
p02952 | u687173709 | 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()\ni=int(len(N))\nN=int(N)\nprint(N,i)\nx=0\nif i%2!=0:\n x=N-10**(i-1)+1\n i=i-1\n if i!=0:\n while i>0:\n i=i-2\n x=x+9*(10**i)\nelse:\n if N<10:\n x=N\n else:\n while i>1:\n x=x+9*(10**(i-2))\n print(i)\n i=i-2\n\npr... | ['Wrong Answer', 'Accepted'] | ['s311560487', 's199596651'] | [3064.0, 3060.0] | [17.0, 17.0] | [304, 306] |
p02952 | u687574784 | 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(len([i for i in range(1,100000+1) if len(str(i))%2==1]))\n', 'n = int(input())\nprint(len([i for i in range(1,n+1) if len(str(i))%2==1]))\n'] | ['Wrong Answer', 'Accepted'] | ['s869333101', 's769305533'] | [6720.0, 6720.0] | [55.0, 53.0] | [80, 75] |
p02952 | u687929074 | 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\ni = 0\n\nwhile N >= 10**(i+1):\n if i%2 == 1:\n ans += 10**(i+1)- 10**i\n i += 1\n\nif i%2 == 0:\n ans += N - 10**i + 1\nprint(ans)', 'N = int(input())\n\nans = 0\ni = 0\n\nwhile N >= 10**(i+1):\n if i%2 == 0:\n ans += 10**(i+1)- 10**i\n i += 1\n\nif i%2 == 0:... | ['Wrong Answer', 'Accepted'] | ['s995251716', 's753880421'] | [2940.0, 2940.0] | [17.0, 17.0] | [164, 164] |
p02952 | u688126754 | 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 = int(input())\n\nL = 0 \nt = N\nwhile t:\n L += 1\n t = t // 10\n\nans = 0\nfor i in range(1, L, 2):\n ans += 10**i - 10**(i-1) + 1\n\n#print("==", ans)\nif L % 2 == 1:\n ans += N - 10**(L-1)\n\nprint(ans)', '\nN = int(input())\n\nL = 0 \nt = N\nwhile t:\n L += 1\n t = t // 10\n\nans = 0\nfor i... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s082085444', 's159539604', 's662358161'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 19.0] | [217, 216, 218] |
p02952 | u690781906 | 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= int(input())\nif N == 1:\n# -*- coding: utf-8 -*-\nN = int(input())\ndigit_count = len(str(N))\nif digit_count == 1:\n print(N)\nif (digit_count % 2 == 1):\n print(N - int(str(90) * (digit_count//2)))\nelse:\n total = 0\n for i in range(0, digit_count//2):\n total += 9*(... | ['Runtime Error', 'Accepted'] | ['s802255134', 's897387643'] | [2940.0, 3064.0] | [17.0, 17.0] | [329, 280] |
p02952 | u692054751 | 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 = [int(s) for s in input().split()]\nfor i in range(N - 1):\n if H[i + 1] - H[i] >= 0:\n H[i + 1] -= H[i + 1] != H[i]\n else:\n print('No')\n exit()\n\nprint('Yes')\n", 'N = int(input())\ncount = 0\nfor i in range(1,N+1):\n if i % 2 == 1:\n count+=1\n \nprint(coun... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s787296945', 's816819324', 's028388222'] | [2940.0, 2940.0, 3864.0] | [18.0, 32.0, 48.0] | [203, 97, 68] |
p02952 | u693716675 | 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 = input()\nm = len(x)\nx = int(x)\n\np = m//2\nq = m%2\n\nif q==1:\n if p==0:\n print(x)\n exit()\n else:\n a = 90\n while(p>0):\n x -= a\n a *= 100\n print(x)\n exit()\nelse:\n if p==0:\n print(0)\n exit()\n else:\n x = 0\n a = 9\n while(p>1):\n x += a\n a *... | ['Wrong Answer', 'Time Limit Exceeded', 'Accepted'] | ['s141052336', 's779504248', 's153358517'] | [3424.0, 3424.0, 3064.0] | [2104.0, 2104.0, 17.0] | [327, 328, 354] |
p02952 | u694422786 | 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(a):\n if int((len(str(i))) % 2 == 1):\n count += 1\n \nif a % 10 != 0:\n print(count)\nelse:\n print(count - 1)', 'a = int(input())\ncount = 0\nfor i in range(1,a+1):\n if int((len(str(i))) % 2 == 1):\n count += 1\n\nprint(count)'] | ['Wrong Answer', 'Accepted'] | ['s424883854', 's463953429'] | [3060.0, 2940.0] | [74.0, 73.0] | [157, 112] |
p02952 | u696543571 | 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 len(str(i)) % 2 == 1:\n\t\tcount += 1\nprint(count)', 'n = int(input())\ncount = 0\nfor i in range(1, n + 1):\n if len(str(i)) % 2 == 1:\n \tcount += 1\nprint(count)\n'] | ['Runtime Error', 'Accepted'] | ['s862540577', 's292663913'] | [2940.0, 2940.0] | [18.0, 58.0] | [107, 111] |
p02952 | u700138719 | 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\nval1 = int(math.ceil(math.log(n,10)))\nans = 0\nif val1==1:\n\tans = n\nelif val1==2:\n ans = 9\nelif val1==3:\n\tans = 9+n-99\nelif val1==4:\n\tans = 909\nelif val1==5:\n\tans = 909+n-9999\nelse:\n\tans = 90909\nif val1==math.log(n,10) and val1%2:\n\tprint(ans-1)\nelse:\n\tprint(ans)'... | ['Runtime Error', 'Accepted'] | ['s612734505', 's580799488'] | [3064.0, 3060.0] | [17.0, 17.0] | [291, 240] |
p02952 | u703130195 | 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(0, len(str(N)), 2):\n min = 10**i\n max = 10**(i+1)-1\n if max < N:\n count += (max-min+1)\n else:\n count += (N-min+1)\n print(count)\n break', 'N = int(input())\ncount = 0\n\nfor i in range(len(str(N))):\n if i%2 == 0:\n ... | ['Wrong Answer', 'Accepted'] | ['s507291442', 's010113292'] | [2940.0, 3060.0] | [17.0, 17.0] | [218, 249] |
p02952 | u703890795 | 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 = 100000:\n print(90909)\nelif N >= 10000:\n print(909 + N - 9999)\nelif N >= 1000:\n print(909)\nelif N >= 100:\n print(9 + N - 99)\nelif N >= 10:\n print(9)\nelse:\n print(N)', 'N = int(input())\n\nif N == 100000:\n print(90909)\nelif N >= 10000:\n print(909 + N - 9999)\nelif N >= 1... | ['Runtime Error', 'Accepted'] | ['s402216038', 's067224421'] | [2940.0, 2940.0] | [17.0, 17.0] | [194, 195] |
p02952 | u712868001 | 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 < 100:\n print(9)\nif N < 1000:\n print(N-90)\nif N < 10000:\n print(909)\nif N <100000:\n print(N-9090)\nif N == 100000:\n print(90909)', 'N=int(input())\nif N < 10:\n print(N)\nif 10 <= N < 100:\n print(9)\nif 100 <= N < 1000:\n print(N-90)\nif ... | ['Wrong Answer', 'Accepted'] | ['s977917730', 's278842952'] | [3060.0, 2940.0] | [17.0, 17.0] | [186, 217] |
p02952 | u713492631 | 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(n)\n\ncount = 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'] | ['s982461240', 's521330566'] | [2940.0, 2940.0] | [17.0, 59.0] | [100, 107] |
p02952 | u718401738 | 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=a//10+1\nc=a%10\nd=b//2+1\nprint(int(d*9+c))\n', 'a=int(input())\nb=len(str(a))\n\nans=0\n\nif b%2==0:\n for i in range(int(b/2)):\n c=1+i*2\n ans+=(10**c-(10**(c-1)))\n\nelse:\n ans+=(a-(10**(b-1))+1)\n for i in range(int((b-1)/2)):\n e=1+i*2\n ans+=(10**e-(10**... | ['Wrong Answer', 'Accepted'] | ['s365647745', 's100933000'] | [2940.0, 3060.0] | [17.0, 17.0] | [59, 261] |
p02952 | u719886494 | 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()\ni = int(n)\ncnt = 0\nans = 0\nwhile i > 0:\n i /= 10\n cnt++\nif cnt / 2 == 0:\n i = cnt / 2\n if i == 3:\n ans = 90000 + 900 + 9\n elif i == 2:\n ans = 900 + 9\n else :\n ans = 9\nelse :\n i = (cnt / 2) + 1\n if i == 3:\n ans = 9 + 900 + (int(n) - 10000) + 1\n elif i == 2:\n ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s261697839', 's731049729', 's054414301'] | [2940.0, 2940.0, 3064.0] | [18.0, 18.0, 17.0] | [366, 363, 397] |
p02952 | u721425712 | 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(1, n+1):\n x = len(i)\n if x%2 == 1:\n ans += 1\n \nprint(ans)', 'n = int(input())\n \nans = 0\nfor i in range(1, n+1):\n x = len(str(i))\n if x%2 == 1:\n ans += 1\n \nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s313708170', 's106965163'] | [2940.0, 2940.0] | [18.0, 62.0] | [106, 112] |
p02952 | u732730677 | 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())\nkotae = 0\nif n == 100000:\n kotae = 90909\nelif n => 10000:\n kotae = 909 + (n - 10000 + 1)\nelif n => 1000:\n kotae = 909\nelif n => 100:\n kotae = 9 + (n- 100 +1)\nelif n => 10:\n kotae = 9\nelse:\n kotae = n', 'n = int(input())\nkotae = 0\nif n == 100000:\n kotae = 90909\nelif n => 10000:... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s139165582', 's358811992', 's186691905'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 18.0] | [222, 235, 235] |
p02952 | u736524428 | 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 <= 99:\n print(max(9,N))\n exit()\n\nif N <= 9999:\n print(min(N - 99 + 9, 999 - 99 + 9))\n exit()\n\nprint(min(N - 9999 + 909, 90909))', 'N = int(input())\n\nif N <= 99:\n print(min(9,N))\n exit()\n\nif N <= 9999:\n print(min(N - 99 + 9, 999 - 99 + 9))\n exit()\n\npri... | ['Wrong Answer', 'Accepted'] | ['s529639360', 's268974557'] | [3060.0, 2940.0] | [17.0, 17.0] | [162, 162] |
p02952 | u739959951 | 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())\nn1=len([i for i in str(n)])\n\nx=0\nif n1=1:\n x=n\nelif n1=2:\n x=9\nelif n1=3:\n x=9+(n-99)\nelif n1=4:\n x=9+90\nelif n1=5:\n x=9+900+(n-999)\nelif n1=6:\n x=9+900+90000\n \nprint(x)', 'n=int(input())\nn1=[int(i) for i in str(n)]\nn2=len(n1)\n\nx=0\nif n1=1:\n x=n\nelif n1=2:\n x=9\nelif n... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s540880962', 's696080389', 's793712568', 's851494302', 's582967183'] | [2940.0, 2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [191, 176, 43, 178, 113] |
p02952 | u743164083 | 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 = input()\nsd = int(s)\nsl = len(s)\nans = 0\nif sl <= 2:\n ans += sd\nif sl == 3:\n ans += sd - 99 + 9\nif sl == 4:\n ans += 900 + 9\nif sl == 5:\n ans += sd - 9999 + 900 + 9\nif sl == 6:\n ans += 90000 + 900 + 9\n\n\nprint(ans)\n', 'n = int(input())\ncnt = 0\nfor i in (range(1, n + 1)):\n if len... | ['Wrong Answer', 'Accepted'] | ['s309074638', 's251792498'] | [2940.0, 2940.0] | [17.0, 62.0] | [231, 110] |
p02952 | u743832841 | 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 A=N/2\nelse:\n A=(N+1)/2\nprint(A)', 'N=int(input())\nif N<10:\n A=N\nelif N<100:\n A=9\nelif N<1000:\n A=9+N-99\nelif N<10000:\n A=9+900\nelif N<100000:\n A=9+900+N-9999\nelse\n A=9+900+90000 \nprint(A)', 'N=int(input())\nif N<10:\n A=N\nelif N<100:\n A=9\nelif N<1000:\n ... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s376399952', 's631076352', 's508177326'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [64, 159, 160] |
p02952 | u747427153 | 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 = 0\nfor i in range(n+1):\n l = list(int(i))\n if len(l) % 2 == 1:\n s += 1\nprint(s)', 'n = input()\ns = 0\nfor i in range(n+1):\n l = list(i)\n if len(l) % 2 = 1:\n s += 1\nprint(s)', 'n = int(input())\ns = 0\nfor i in range(n+1):\n l = list(i)\n if len(l) % 2 == 1:\n s += 1\nprint(s)'... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s175779730', 's436281232', 's556079222', 's742967481', 's755714428', 's598052011'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 98.0, 99.0] | [99, 93, 99, 99, 104, 106] |
p02952 | u747515887 | 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). | ["\ndef fn(i):\n return (1 <= i and i <= 9) or (100 <= i and i <= 999) or (10000 <= i and i <= 99999)\n\n\ndef main():\n # n = int(input())\n n = 124\n x = range(n + 1)[1:]\n x = tuple(filter(fn, x))\n\n print(len(x))\n\n\nif __name__ == '__main__':\n main()\n", "\ndef fn(i):\n return (1 <= i an... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s012282912', 's605621965', 's721410306', 's978093364'] | [3064.0, 6900.0, 6900.0, 6712.0] | [17.0, 21.0, 21.0, 41.0] | [263, 249, 231, 249] |
p02952 | u747873993 | 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(1,N):\n if len(i)%2!=0:\n count+=1\nprint(count)', 'N=int(input())\ncount=0\nfor i in range(1,N):\n if len(i)%2!=0:\n count+=1\nprint(count)', 'N=int(input())\ncount=0\nfor i in range(1,N+1):\n if len(str(i))%2!=0:\n count+=1\nprint(count)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s476261659', 's930460510', 's770341461'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 62.0] | [82, 87, 94] |
p02952 | u748311048 | 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\n\nfor i in range(N):\n if len(str(i))%2!=0:\n C+=1\n \nprint(C)', 'N=int(input())\nC=0\n \nfor i in range(1,N+1):\n if len(str(i))%2!=0:\n C+=1\n \nprint(C)'] | ['Wrong Answer', 'Accepted'] | ['s084452268', 's331697152'] | [2940.0, 2940.0] | [57.0, 58.0] | [84, 89] |
p02952 | u755313517 | 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 x=n\nelif(n<100):\n x=9\nelif(n<1000):\n x=n-90\nelif(n<10000):\n x=\nelif(x<100000):\n x=n-90-9000', 'n=int(input())\nif(n<10):\n x=n\nelif(n<100):\n x=9\nelif(n<1000):\n x=n-90\nelif(n<10000):\n x=9+900\nelif(n<100000):\n x=n-90-9000\nelif(n==100000):\n x=90909\nprint(x)'] | ['Runtime Error', 'Accepted'] | ['s417939245', 's441238482'] | [2940.0, 2940.0] | [18.0, 18.0] | [122, 163] |
p02952 | u762469320 | 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\n100,000\n\nct = 0\n\nif n <= 9:\n\tct = n\nelif n <= 999 and n >= 10:\n\tct = 9 + (n - 99)\nelif n <= 99999 and n >= 1000:\n\tct = 9 + 900 + (n - 9999)\nelif n == 100000:\n\tct = 90909\n\t\nprint(ct)', 'n=int(input())\nct = 0\n\nif n <= 9:\n\tct = n\nelif n <= 99:\n\tct = 9\nelif n <= 999:\n\tct = n... | ['Wrong Answer', 'Accepted'] | ['s179347331', 's070810324'] | [3060.0, 3060.0] | [18.0, 17.0] | [197, 197] |
p02952 | u763628696 | 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())\nnlen =len(str(n))\nans = 0\n\nif n <= 9:\n print(n)\nelse:\n for i in range(1,nlen+1):\n if i % 2 == 1:\n ans += 10 ** i -10 ** (i-1)\n if nlen % 2 == 0:\n ans = ans + (n - 10**(nlen-1) + 1)\n print(ans)', 'n = int(input())\nnlen =len(str(n))\nans = 0\n\nif n <= 9:\n print(n)\nelse:\... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s375071165', 's861068526', 's276222758'] | [9124.0, 9180.0, 9052.0] | [27.0, 30.0, 26.0] | [224, 272, 223] |
p02952 | u765590009 | 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()\nint_n = int(n)\n\nsum = 9\nfor i in range(1,len(n),1):\n print(i)\n if i%2 == 0:\n if i == (len(n)-1):\n sum += int_n - int("9"*i)\n else:\n sum += int("9"*(i+1)) - int("9"*i)\n \nprint(sum)', 'n = int(input())\n\nanswer = 0\nfor i in range(1,n+1):\n if len(str(i))%2 == 1:\n an... | ['Wrong Answer', 'Accepted'] | ['s982265909', 's215560223'] | [9044.0, 8884.0] | [29.0, 58.0] | [214, 113] |
p02952 | u767664985 | 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', 'def digit(n):\n \n return len(list(map(int, str(n))))\n\nN = int(input())\nprint(len([i for i in range(1, N+1) if digit(N)%2 == 1]))\n', 'def digit(n):\n \n return len(list(map(int, str(n))))\n... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s356122342', 's466761347', 's214877819'] | [2940.0, 7096.0, 3060.0] | [17.0, 171.0, 176.0] | [103, 151, 177] |
p02952 | u773440446 | 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 % 2 == 1:\n ans += 1\n \nprint(ans)\n ', '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)'] | ['Wrong Answer', 'Accepted'] | ['s895143706', 's941159114'] | [8920.0, 9028.0] | [35.0, 59.0] | [96, 101] |
p02952 | u774985302 | 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 and N<=99:\n print(9)\nelif N >=100 and N<=999:\n print(N-90)\nelif N >= 1000 and N<= 9999:\n print(900)\nelif N >= 10000 and N<= 99999:\n print(N-90-9000)\nelif N = 100000:\n print(9 + 900 + 90000)\nelse:\n print(N)', 'N =int(input())\nif N >=10 and N<=99:\n print(9)\nelif N >=100 a... | ['Runtime Error', 'Accepted'] | ['s792702415', 's206844846'] | [2940.0, 3060.0] | [17.0, 17.0] | [237, 242] |
p02952 | u782790173 | 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 >= 100 and n < 1000:\n #print(9 + (int(str(n)[-2:])) + 1)\n print(9 + (n-100) + 1)\n exit()\nif n >= 1000 and n < 10000:\n print(909 + (n-1000) + 1)\n exit()\nif n >= 10000 and n < 100000:\n print(909 + (n-10000) + 1)\n exit\nif n == 100000:\n print(90909)', 'n = int(input())\nif n < ... | ['Wrong Answer', 'Accepted'] | ['s631336744', 's387183637'] | [3060.0, 3060.0] | [17.0, 17.0] | [276, 336] |
p02952 | u796867346 | 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 -*-\na = int(input())\nif l <=9:\n print("{}".format(a));\n return\nif l <=99:\n print(\'9\')\n return;\nif l < 999:\n print("{}".format(9+a-99))\n return\nif l <= 9999:\n print(\'909\')\n return\nprint("{}".format(909+a-9999))', '# -*- coding: utf-8 -*-\na = int(input())\nif a <=9:\n pri... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s126429940', 's341853084', 's440388219', 's516788940', 's992108937'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 58.0] | [237, 213, 237, 237, 95] |
p02952 | u805552010 | 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 == 1:\n ans += 1\nprint(ans)\n', 'n = int(input())\n\nfor i in range(1,n+1):\n if len(str(i)) % 2 == 1:\n 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 += 1\nprint... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s040224979', 's276909974', 's784291800'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 61.0] | [97, 126, 105] |
p02952 | u806855121 | 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\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\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s627344256', 's006599531'] | [2940.0, 2940.0] | [59.0, 58.0] | [101, 106] |
p02952 | u809457879 | 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 res = 90909\nelif 10**4 <= N < 10**5:\n res = N-9089\nelif 10**3 <= N < 10**4:\n res = 910\nelif 10**2 <= N < 10**3:\n res = N-90\nelif 1 <= N < 10**2:\n res = N\nprint(res)\n', 'N = int(input())\nif N == 10**5:\n res = 90909\nelif 10**4 <= N < 10**5:\n res = N-9089\nelif 10*... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s062606358', 's174083944', 's267666708', 's638852252', 's510143397'] | [2940.0, 3060.0, 2940.0, 2940.0, 3060.0] | [17.0, 20.0, 17.0, 17.0, 17.0] | [203, 201, 194, 195, 231] |
p02952 | u809819902 | 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 i%2 == 1:\n res += 1\nprint(res)', 'n=int(input())\na = [str(i) for i in range(1,n+1)]\nres = 0\nfor i in a:\n if len(i)%2==1:\n res += 1\nprint(res)'] | ['Wrong Answer', 'Accepted'] | ['s425491943', 's833172165'] | [9148.0, 16204.0] | [38.0, 63.0] | [91, 117] |
p02952 | u812817085 | 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\nif 1<=N,N<=9:\n output=N\nelif 10<=N,N<=99:\n output=9\nelif 100<=N,N<=999:\n output=N-99+9\nelif 1000<=N,N<=9999:\n output=900+9\nelif 10000<=N,N<=99999:\n output=N-9999+900+9\nelse:\n output=90000+900+9\nprint(output)', 'N=input()\nN=int(N.split()[0])\n\nif 1<=N,N<=9:\n output=N\ne... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s128730491', 's560321325', 's863357132', 's118424968'] | [2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 17.0] | [236, 256, 220, 280] |
p02952 | u815767668 | 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(1,N+1):\n ks=len(str(i))\n if ks!=2 and ks!=4:\n count=count+1\nprint(count)\n \n \n \n', 'N=input()\ncount=0\nfor i in range(1,N+1):\n ks=len(str(i))\n if ks!=2 and ks!=4:\n count=count+1\nprint count\n \n \n ', 'N=int(input())\ncount=0\nfor i in range(1... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s126812128', 's165029454', 's434200531'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 63.0] | [126, 124, 141] |
p02952 | u820357030 | 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 count(start, end):\n return end - start + 1\n\nketa = 1\nwhile True:\n if 10**keta > N:\n break\n else:\n \tketa += 1\n\nnum = 0\nfor k in range(1, keta+1):\n if k % 2 == 1:\n\tnum += count(10**(k-1), min(N, 10**k)-1)\n \nprint(num)', 'N = int(input())\ndef count(start, end):\n ret... | ['Runtime Error', 'Accepted'] | ['s841856789', 's092046019'] | [2940.0, 3064.0] | [17.0, 17.0] | [248, 244] |
p02952 | u823585596 | 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(6):\n 10**i<=N<(i+1)\n n=i\nans=0\nfor i in range(1,n+1,2):\n ans+=10**i-10**(i-1)\nprint(ans)', 'N=int(input())\nans=0\nl=len(str(N))\nfor i in range(l+1):\n if i!=l and i%2!=0:\n ans+=(10**i)-(10**(i-1))\n if i==l and i%2!=0:\n ans+=(N-(10**(i-1))+1)\nprin... | ['Wrong Answer', 'Accepted'] | ['s420054176', 's524792766'] | [9120.0, 8996.0] | [28.0, 30.0] | [127, 178] |
p02952 | u825981710 | 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(N)\nn=int(n)\nnum=0\nnum1=1\nfor i in range(n):\n print(i)\n if(i%2==0):\n if(i>1):\n for k in range(i):\n num1=num1*10\n num+=9*num1\n\nprint(num)\n', 'N=input()\nn=len(N)\nn=int(n)\nnum=0\nnum1=1\nnum2=1\nfor i in range(n-1):\n if(i%2==0):\n i... | ['Wrong Answer', 'Accepted'] | ['s904699282', 's076646602'] | [2940.0, 3064.0] | [17.0, 17.0] | [198, 349] |
p02952 | u831752983 | 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())\nn=N\nc=0\nwhile n>0:\n n//=10\n c+=1\n\nprint(c)\nif c%2==0:\n print(int((10**c-1)/11))\nelse: \n print(int(N-10**(c-1)+1+(10**(c-1)-1)/11))\n', 'N = int(input())\n\nc=0\nwhile N>0:\n N//=10\n c+=1\n\nif c%2==0:\n print((10**c-1)/11)\nelse: \n print(N-10**(c-1)+1+(10**(c-1)-1)/11)', 'N = int... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s655990487', 's694457867', 's863922236'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [152, 129, 143] |
p02952 | u832871520 | 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\n\ndef II(): return int(sys.stdin.readline())\ndef MI(): return map(int, sys.stdin.readline().split())\ndef MI1(): return map(int1, sys.stdin.readline().split())\n\ndef LI(): return list(map(int, sys.stdin.readline().split()))\n\ndef LLI(rows_number): return [LI() for _ in range(rows_number)]\ndef SR(): ... | ['Runtime Error', 'Accepted'] | ['s174231273', 's436467018'] | [3064.0, 3064.0] | [17.0, 60.0] | [960, 964] |
p02952 | u833738197 | 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\nprint(ans)', 'n = int(input())\nif n<10:\n print(n)\nelif n<1000:\n print(n-90)\nelif n<100000: \n print(n-8990)\nelse:\n print(90909)', 'n =int(input())\nans = 0\nfor i in range(1,n+1):\n if len(str(i))%2 ==1:\n ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s068947420', 's842339191', 's010903513'] | [2940.0, 2940.0, 2940.0] | [60.0, 17.0, 65.0] | [94, 125, 98] |
p02952 | u835482198 | 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 str(i) % 2 == 1:\n cnt += 1\nprint(cnt)\n', 'n = int(input())\ncnt = 0\nfor i in range(1, n + 1):\n if len(str(i)) % 2 == 1:\n cnt += 1\nprint(cnt)\n'] | ['Runtime Error', 'Accepted'] | ['s429203628', 's423388047'] | [2940.0, 2940.0] | [17.0, 65.0] | [103, 108] |
p02952 | u840958781 | 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=str(n)\nminus1=10**(len(m)-2)*9\nminus=minus1\nif len(m)==1:\n print(n)\nif len(m)%2==0:\n for i in range(len(m)//2):\n minus1+=minus//(100**(len(m)//2-i))\n print(minus1)\nelse:\n for i in range(len(m)//2):\n minus1+=minus//(100**(len(m)//2-i)\n print(minus1//10... | ['Runtime Error', 'Accepted'] | ['s722456688', 's212207593'] | [3064.0, 3064.0] | [17.0, 18.0] | [323, 320] |
p02952 | u841793789 | 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\nfor n in range(int(input())):\n result += len(n+1)%2\nprint(result)', 'result = 0\nfor n in range(int(input())):\n result += len(str(n+1))%2\nprint(result)'] | ['Runtime Error', 'Accepted'] | ['s916568299', 's161410856'] | [2940.0, 3064.0] | [17.0, 58.0] | [79, 84] |
p02952 | u842388336 | 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(N+1):\n i = str(i)\n if len(i)%2==1:\n cnt+=1\n \nprint(cnt)', 'N = int(input())\ncnt = 0\n\nfor i in range(1,N+1):\n i = str(i)\n if len(i)%2==1:\n cnt+=1\n \nprint(cnt)'] | ['Wrong Answer', 'Accepted'] | ['s273256412', 's423818884'] | [2940.0, 2940.0] | [66.0, 65.0] | [104, 106] |
p02952 | u842703105 | 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\ncnt = 0\n\nfor i in range(1,10):\n\tcnt += 1\n\tif i < a :\n\t\tprint (cnt)\n\t\texit()\n\nfor j in range(100,1000):\n\tcnt += 1\n\tif i < a :\n\t\tprint (cnt)\n\t\texit()\n\nfor k in range(10000,100000):\n\tcnt += 1\n\tif i < a :\n\t\tprint (cnt)\n\t\texit()\n\n', 'import sys\n\na = int(input())\... | ['Wrong Answer', 'Accepted'] | ['s701123672', 's991261193'] | [3060.0, 3064.0] | [29.0, 30.0] | [243, 396] |
p02952 | u845427284 | 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())\ndigit = len(str(n))\n\na = 0\nif digit % 2 == 0:\n while digit > 0:\n if digit % 2 != 0:\n a += 10 ** digit - 10 ** (digit-1) \n print(a)\n digit -= 1\nelse:\n digit -= 1\n a += n - 10 ** (digit) + 1\n print(a)\n while digit > 0:\n if digit % 2 != 0:\n a += 10 ** digit -... | ['Wrong Answer', 'Accepted'] | ['s668308223', 's039511344'] | [3060.0, 2940.0] | [17.0, 18.0] | [344, 317] |
p02952 | u847165882 | 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=input("N:")\ncount=0\n\n\nfor i in range(1,int(num)+1,1):\n if len(str(i))%2==1:\n count+=1\n \nprint(count)\n', 'num=input("")\ncount=0\n\n\nfor i in range(1,int(num)+1,1):\n if len(str(i))%2==1:\n count+=1\n \nprint(count)'] | ['Wrong Answer', 'Accepted'] | ['s323856972', 's063132908'] | [2940.0, 3060.0] | [64.0, 63.0] | [122, 119] |
p02952 | u847497464 | 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). | ['m = input()\n\nif n < 10:\n print(n)\nelif 10 <= n < 100:\n print(9)\nelif 100 <= n <1000:\n print(n-90)\nelif 1000 <= n < 10000:\n print(909)\nelif 10000 <= n < 100000:\n print(n-9090)\nelif 100000<= n < 1000000:\n print(90909)\n\n', 'if n >= 100000:\n print(90909)\nelif n >= 10000:\n print(n... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s412512159', 's829878481', 's928256187'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [235, 156, 193] |
p02952 | u854239812 | 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 \ni=1\nx = 0\n \nwhile True:\n m = 10 ** i - 1\n if N <= m:\n x += (N - (10 ** (i-1) - 1))\n break\n\tx += m\n i += 1\nprint(x)', 'N = int(input())\n\ni=1\nx = 0\n\nwhile True:\n m = 10 ** i - 1\n if N <= m:\n x += (N - (10 ** (i-1) - 1))\n break\n\tx += m\nprint(... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s065311707', 's773590073', 's200836990'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [152, 139, 173] |
p02952 | u854685063 | 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(i))%2 == 0:\n cnt += 1\nprint(cnt)\n', 'n = int(input())\ncnt = 0\nfor i in range(1,n+1):\n if len(str(i)%2 == 0):\n cnt += 1\nprint(cnt)', 'n = int(input())\ncnt = 0\nfor i in range(1,n+1):\n if len(str(i))%2 != 0:\n cnt += 1\nprint(cnt)\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s524967413', 's750651956', 's287477747'] | [2940.0, 2940.0, 2940.0] | [50.0, 17.0, 62.0] | [97, 96, 97] |
p02952 | u857673087 | 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(i)%2 == 1:\n count+=1\nprint(count)', 'N = int(input())\ncount = 0\n\nfor i in range(1,N+1):\n if len(str(i))%2 == 1:\n count+=1\nprint(count)'] | ['Runtime Error', 'Accepted'] | ['s816277836', 's387283671'] | [2940.0, 2940.0] | [17.0, 62.0] | [96, 101] |
p02952 | u860478135 | 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 n1 < 10:\n print(n1)\nelif n1 <= 99:\n print(9)\nelif n1 < 1000:\n print(9 + (n1 - 99))\nelif n1 <= 9999:\n print(909)\nelif n1 < 100000:\n print(909 + (n1 - 999))\nelse:\n print(90909)', 'n1 = int(input())\n\nif n1 < 10:\n print(n1)\nelif n1 <= 99:\n print(9)\nelif n1 < 1000:\n print(9 ... | ['Runtime Error', 'Accepted'] | ['s803918200', 's056538317'] | [2940.0, 3060.0] | [17.0, 17.0] | [195, 215] |
p02952 | u861038878 | 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())\nif n / 10000 >= 1:\n print(9 + 900 + n - 10000 + 1)\nelse if n / 100 >= 1:\n print(9 + n - 100 + 1)\nelse if n / 10 >= 1:\n print(9)\nelse if n < 10:\n print(n)', '# -*- coding: utf-8 -*-\n \nn = int(input())\nif n == 100000:\n print(90909)\nelif n / 10000 >= 1:\n p... | ['Runtime Error', 'Accepted'] | ['s354590227', 's586809799'] | [2940.0, 3060.0] | [17.0, 17.0] | [200, 257] |
p02952 | u861886710 | 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 len(str(N)) % 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)'] | ['Wrong Answer', 'Accepted'] | ['s237871020', 's678062946'] | [2940.0, 2940.0] | [62.0, 62.0] | [99, 99] |
p02952 | u868237899 | 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(str(i)) % 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\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s533356316', 's033615172'] | [2940.0, 2940.0] | [17.0, 56.0] | [105, 105] |
p02952 | u868982936 | 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 i % 2 != 0:\n ans += 1\n \nprint("%d"%(ans)) \n', 'N = int(input())\nans = 0\n\nfor i in range(N+1):\n if i % 2 != 0:\n ans += 1\n else:\n ans += 0\nprint("%d"%(ans)) \n', 'N = int(input())\nans = 0\n\nfor i in N:\n if i % 2 == 1:\n ans +... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s835335499', 's875628522', 's974808704', 's201537807'] | [2940.0, 2940.0, 2940.0, 2940.0] | [34.0, 37.0, 17.0, 57.0] | [104, 120, 87, 118] |
p02952 | u870906509 | 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 = len(str(n))\nb = 0\nj = 2*i\nif a%2 == 0:\n for j in range(a//2):\n b += 10**(2*j+1)-10**(2*j)\n print(b)\nelse:\n for j in range(a//2):\n b += 10**(2*j+1)\n print(n-10**(a-1)+b)', 'n = int(input())\na = len(str(n))\nb = 0\nc = a//2\n\nif a%2 == 0:\n for j in range(c... | ['Runtime Error', 'Accepted'] | ['s522711890', 's436807643'] | [3060.0, 3060.0] | [18.0, 17.0] | [215, 197] |
p02952 | u872923967 | 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\nintCount = 0\n\nfor idx in range(1, n+1):\n if len(str(idx) % 2 == 1:\n intCount += 1\n\nprint(intCount)', 'intCount = 0\n\nfor idx in range(1, n+1):\n if len(str(idx) % 2 == 1:\n intCount += 1\n\nprint(intCount)', 'n = int(input())\n\nintCount = 0\nfor idx in range(1, n+1):\n ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s602105181', 's952489766', 's689230448'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 61.0] | [126, 108, 126] |
p02952 | u875028418 | 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\nif n.len()==1:\n count=int(n)\nelse:\n count+=9\n if n.len()==3:\n count+=(int(n)//100)*100+int(n)%100+1\n else:\n count+=900\n if n.len()==5:\n count+=(int(n)//10000)*10000+int(n)%10000+1\n', 'n=input()\ncount=0\nif len(n)==1:\n count=int(n)\nif len(n)==2:\n count+=9\nif len(n... | ['Runtime Error', 'Accepted'] | ['s559640661', 's604083238'] | [2940.0, 3064.0] | [17.0, 17.0] | [216, 273] |
p02952 | u875855656 | 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<100:\n print(n)\nelif 100 <= n < 10000:\n print(n-90)\nelif 10000 <= n < 100000:\n print(n-9090)\nelif n==100000:\n print(90909)', 'n=int(input())\nif n<10:\n print(n)\nif 10<=n<100:\n print(9)\nelif 100 <= n < 1000:\n print(n-90)\nelif 1000 <= n < 10000:\n print(909)\nelif 10000 <= n < 1... | ['Wrong Answer', 'Accepted'] | ['s616173819', 's822673629'] | [2940.0, 3060.0] | [17.0, 18.0] | [145, 205] |
p02952 | u880480312 | 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). | ['#<B>\nN = input()\nans = 0\nfor i in range(1, int(N + 1)):\n if len(str(i)) % 2 != 0:\n ans += 1\n\nprint(ans)', '#<B>\nN = int(input())\nans = 0\nfor i in range(1, N + 1):\n if len(str(i)) % 2 == 1:\n ans += 1\n\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s967450542', 's953552980'] | [8964.0, 9168.0] | [22.0, 61.0] | [113, 113] |
p02952 | u880646180 | 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\nif a < 10:\n print(a)\nelif a < 100:\n print(9)\nelif a < 1000:\n print(a - 90)\nelif a < 10000:\n print(910)\nelif a < 100000:\n print(a - 90 - 9000)\nelif a = 100000:\n print(90909)', 'a = int(input())\n\nif a < 10:\n print(a)\nelif a < 100:\n print(9)\nelif a < 1000:\n print(a - 90)\ne... | ['Runtime Error', 'Accepted'] | ['s057219304', 's993355260'] | [2940.0, 2940.0] | [18.0, 17.0] | [196, 198] |
p02952 | u882389182 | 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 len(list(str(i))) % 2 != 0:\n c += 1\n\nprint(c)', 'n = int(input())\nc = 0\nfor i in range(1, n+1):\n if len(list(str(i))) % 2 != 0:\n c += 1\n\nprint(c)\n'] | ['Runtime Error', 'Accepted'] | ['s754098562', 's905029387'] | [2940.0, 2940.0] | [17.0, 99.0] | [98, 101] |
p02952 | u884323674 | 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()\ndigit = len(N)\nnum = int(N)\n\nans = 0\nfor i in range(1, digit, 2):\n ans += 9 * (10**i)\n\nif digit % 2 == 1:\n ans += num - 10 ** (digit - 1) +1\n\nprint(ans)', 'N = input()\ndigit = len(N)\nnum = int(N)\n\nans = 0\nfor i in range(1, digit, 2):\n ans += 9 * (10**(i-1))\n\nif digit % ... | ['Wrong Answer', 'Accepted'] | ['s038247055', 's971616747'] | [3060.0, 3060.0] | [18.0, 17.0] | [174, 178] |
p02952 | u884601206 | 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). | ['m=int(input())\nans=0\nfor i in range(m+1):\n if len(str(i))%2==1:\n ans+=1\nprint(ans)\n\n', 'm=int(input())\nans=0\nfor i in range(n+1):\n if len(str(i))%2==1:\n ans+=1\nprint(ans)\n\n', 'm=int(input())\nans=0\nfor i in range(1,m+1):\n if len(str(i))%2==1:\n ans+=1\nprint(ans)\n\n\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s074993513', 's461652959', 's537394635'] | [2940.0, 2940.0, 2940.0] | [61.0, 18.0, 68.0] | [88, 88, 91] |
p02952 | u888337853 | 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\nimport copy\nfrom copy import deepcopy\nimport sys\nimport fractions\n# import numpy as np\nfrom functools import reduce\n# import statistics\nimport decimal\nimport heapq\nimport collections\nimport itertools\nfrom operator import mul\n\nsys.setrecursionlimit(100001)\n\n\n# input = sys.stdin.readline\n\... | ['Wrong Answer', 'Accepted'] | ['s638566277', 's731946482'] | [5120.0, 5120.0] | [77.0, 83.0] | [1128, 1134] |
p02952 | u891634961 | 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 Nstr = str(N)\n if len(Nstr) % 2 == 1:\n \tcount += 1\nprint(count)\n', 'N = int(input())\n\ncount = 0\nfor i in range(1,N+1):\n istr = str(i)\n if len(istr) % 2 == 1:\n \tcount += 1\nprint(count)\n'] | ['Wrong Answer', 'Accepted'] | ['s352140741', 's701660421'] | [2940.0, 2940.0] | [59.0, 65.0] | [119, 119] |
p02952 | u894471318 | 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()\ndigit = len(str(n))\n\ncount = -1\nfor i in range(digit - 1):\n if (i + 1) % 2 == 1:\n count += 10 ** i\n\nif digit % 2 == 1:\n count += n - 10 ** (digit - 1)\n\nprint(count)', 'n = int(input())\ndigit = len(str(n))\n\ncount = 0\nfor i in range(digit - 1):\n if (i + 1) % 2 == 1:\n count += 10 **... | ['Runtime Error', 'Accepted'] | ['s152921057', 's443826713'] | [2940.0, 3060.0] | [17.0, 17.0] | [181, 207] |
p02952 | u898080410 | 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 \n \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 \n \n'] | ['Wrong Answer', 'Accepted'] | ['s150727742', 's029830202'] | [3060.0, 2940.0] | [60.0, 64.0] | [106, 106] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.