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 |
|---|---|---|---|---|---|---|---|---|---|---|
p03041 | u120485519 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['import math\n\nN, K = list(map(int, input().split()))\nP = 0\n\nfor i in range(1, N+1):\n if i >= K:\n P += (1/N)\n if i < K: \n n = (math.log(K, 10) + math.log(2, 10) - math.log(i, 10)) // math.log(2, 10)\n n = math.ceil(n)\n p = (1/N) * (1/2) ** n\n P += p\n\nprint(P)\n',... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s744195744', 's863692684', 's323132819'] | [3060.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [301, 129, 129] |
p03041 | u123745130 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k=int(input())\ns=input()\nprint(s[0:k-1]+s[k-1:k]+s[k:])', 'n,k=map(int,input().split()) \ns=input() \nprint(s[0:k-1]+s[k-1:k].lower()+s[k:])'] | ['Runtime Error', 'Accepted'] | ['s745312196', 's007475805'] | [2940.0, 2940.0] | [17.0, 17.0] | [57, 79] |
p03041 | u124212130 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['import math\nN, K = map(int, input().split())\n\nANS = 0\n\n\nfor i in range(1,N+1):\n if i < K:\n ANS += (1/N) * (0.5**(int(math.log(int(K/i),2)+1)))\n else:\n ANS += (1/N)*(N-K+1)\n break\n print(int(math.log((K/i),2)+1)+1)\n\nprint(ANS)', 'N, K = map(int, input().split())\nS = list(in... | ['Wrong Answer', 'Accepted'] | ['s326535457', 's972392178'] | [3316.0, 2940.0] | [22.0, 17.0] | [255, 190] |
p03041 | u124498235 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n, k = map(int, input().split())\ns = 0\nfor i in range(n):\n\ti += 1\n\tx = i\n\tcnt = 0\n\twhile x < k:\n\t\tx *= 2\n\t\tcnt += 1\n\tans = (2**cnt)*n \n\ts += 1/ans\nprint (s)', 'n, k =map(int, input().split())\ns = input()\nprint (s[:k-1] + s[k-1].lower() + s[k:])'] | ['Wrong Answer', 'Accepted'] | ['s300017655', 's875301467'] | [3060.0, 2940.0] | [18.0, 17.0] | [156, 84] |
p03041 | u126232616 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k = map(int, input().split())\n\ns = input()\ns[k+1].lower()\nprint(s)', 'n, k = map(int, input().split())\n\ns = input()\n\nprint(s[:k-1] + s[k-1].lower() + s[k:])'] | ['Runtime Error', 'Accepted'] | ['s542047773', 's369005738'] | [2940.0, 2940.0] | [17.0, 17.0] | [68, 86] |
p03041 | u126348486 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N, K = map(int, input().split())\nS = str(input())\n\ns1 = S[:K-1]\nsmid = S[K-1:K].lower()\ns1 = S[K:]\n\nprint(s0 + smid + s1)', 'N, K = map(int, input().split())\nS = str(input())\n\ns0 = S[:K-1]\nsmid = S[K-1:K].lower()\ns1 = S[K:]\n\nprint(s0 + smid + s1)'] | ['Runtime Error', 'Accepted'] | ['s550500579', 's595078086'] | [3060.0, 2940.0] | [17.0, 17.0] | [121, 121] |
p03041 | u127499732 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['a,b=map(int,input().split())\ns=str(input())\ns[b-1]=s[b-1].lower()\nprint(s)', 'a,b=map(int,input().split())\ns=list(input())\ns[b-1]=(s[b-1]).lower()\nprint("".join(s))'] | ['Runtime Error', 'Accepted'] | ['s153846488', 's310547159'] | [2940.0, 2940.0] | [17.0, 17.0] | [74, 86] |
p03041 | u128282559 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["s = input()\nif s == '0000' or (int(s[:2]) >= 13 and int(s[-2:]) >= 13):\n print('NA')\nelif 1 <= int(s[:2]) <= 12 and 1 <= int(s[-2:]) <= 12:\n print('AMBIGUOUS')\nelif 1 <= int(s[:2]) <= 12:\n print('MMYY')\nelif 1 <= int(s[-2:]) <= 12:\n print('YYMM')", "n, k = map(int, input().split())\ns = str(input(... | ['Wrong Answer', 'Accepted'] | ['s788426064', 's104069975'] | [8936.0, 9140.0] | [24.0, 29.0] | [258, 200] |
p03041 | u131666536 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n, k = [int(s) for s in input().split()]\ns = input()\n\nprint(s[:k-1] + lower(s[k-1]) + s[k:])\n', 'n, k = [int(s) for s in input().split()]\ns = input()\n\nprint(s[:k-1] + lower(s[k-1]) + s[k])\n', 'n, k = [int(s) for s in input().split()]\ns = input()\n\nprint(s[:k-1] + s[k-1].lower() + s[k:])\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s221053749', 's270104530', 's798119799'] | [2940.0, 3064.0, 2940.0] | [17.0, 18.0, 17.0] | [93, 92, 94] |
p03041 | u132892633 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["n = input()\na = int(n[0:2])\nb = int(n[2:])\nif 1 <= a <= 12 and 1 <= b <= 12:\n\tprint('AMBIGUOUS')\nelif 1 <= a <= 12 and b > 12:\n\tprint('MMYY')\nelif 1 <= b <= 12 and a > 12:\n\tprint('YYMM')\nelse:\nprint('NA')\n", '#!/usr/bin/env python3\nn,k = map(int, input().split())\nS = list(input())\nS[k-1]= S[k-1].lowe... | ['Runtime Error', 'Accepted'] | ['s842411304', 's373778897'] | [2940.0, 2940.0] | [17.0, 17.0] | [205, 114] |
p03041 | u133134242 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["n,m = map(int,input().split())\na = list(input())\na[k-1] = chr(ord(a[k-1]) + ord(a)-ord('A'))\nprint(''.join(a))", "n,k = map(int,input().split())\na = list(input())\na[k-1] = chr(ord(a[k-1]) + ord('a') - ord('A'))\nprint(''.join(a))"] | ['Runtime Error', 'Accepted'] | ['s308055860', 's724214454'] | [2940.0, 2940.0] | [17.0, 17.0] | [110, 114] |
p03041 | u133356863 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["s=input()\nf=int(s[:2])\nb=int(s[2:4])\n\nif (b>=13 or b==0)and f>=13 :\n print('NA')\nelif (b>=13 or b==0)and f<=12 :\n print('MMYY')\nelif b<=12 and (f>=13 or f==0) :\n print('YYMM')\nelse:\n print('AMBIGUOUS') ", "s=input()\nf=int(s[:2])\nb=int(s[2:4])\n\nif (f>=13 or f==00)and b>=13 :\n print('NA')... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s062361254', 's084898789', 's157710307', 's325241697', 's503826343', 's999182901', 's527480317'] | [3060.0, 3060.0, 3060.0, 3064.0, 3060.0, 2940.0, 3060.0] | [29.0, 17.0, 17.0, 17.0, 17.0, 20.0, 17.0] | [214, 217, 213, 217, 220, 133, 134] |
p03041 | u135389999 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,x = map(int,input().split())\nb = str(input())\nans =""\nfor i in range(n):\n if i == x-1:\n ans += b[i].lower()\n print(ans)\n else:\n ans += b[i]\nprint(ans)', 'n,x = map(int,input().split())\nb = str(input())\nans =""\nfor i in range(n):\n if i == x-1:\n ans += b[i].lower()\n... | ['Wrong Answer', 'Accepted'] | ['s160580428', 's567910573'] | [2940.0, 2940.0] | [17.0, 17.0] | [179, 160] |
p03041 | u140680196 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n, k = map(int, input().split())\ns = input()\n\nprint(s[:k] + s[k].lower() + s[k+1:])', 'n, k = map(int, input().split())\ns = input()\n\nprint(s[:k-1] + s[k-1].lower() + s[k:])'] | ['Runtime Error', 'Accepted'] | ['s322951671', 's510223488'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 85] |
p03041 | u143509139 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["n,k=map(int,input().split())\ns=list(input())\ns[k-1]=chr(ord(s[k-1])+26)\nprint(''.join(s))", "n, k = map(int, input().split())\ns = list(input())\ns[k - 1] = chr(ord(s[k - 1]) + ord('a') - ord('A'))\nprint(''.join(s))\n"] | ['Wrong Answer', 'Accepted'] | ['s554483521', 's217001321'] | [2940.0, 8980.0] | [17.0, 28.0] | [89, 121] |
p03041 | u146066372 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k=map(int,input().split())\ns=list(input())\ns[k-1]=s[k-1].lower()\nprint(s)\nprint("".join(s))', 'n,k=map(int,input().split())\ns=list(input())\ns[k-1]=s[k-1].lower()\nprint("".join(s))'] | ['Wrong Answer', 'Accepted'] | ['s011469812', 's843741502'] | [8916.0, 9100.0] | [22.0, 25.0] | [93, 84] |
p03041 | u148540382 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['num = input()\nnum1 = int(num[0] + num[1])\nnum2 = int(num[2] + num[3])\n\nif(num1 < 13) and (num1 > 0):\n if(num2 < 13) and (num2 > 0):\n print("AMBIGUOUS")\n else:\n print("MMYY")\nelse:\n if(num2 < 13) and (num2 > 0):\n print("YYMM")\n else:\n print("NA")\n', 'inputstr1 = in... | ['Runtime Error', 'Accepted'] | ['s903655672', 's536672132'] | [2940.0, 2940.0] | [17.0, 17.0] | [286, 141] |
p03041 | u149752754 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['import sys\nsys.setrecursionlimit(10000000)\nN = int(input())\nJU = [-1] * N\n\nLI = [[] for _ in range(N)]\nfor _ in range(N-1):\n u,v,w = map(int,input().split())\n W = w%2\n LI[u-1].append([v-1,W])\n LI[v-1].append([u-1,W])\ndef dfs(x):\n for i in range(len(LI[x])):\n j = LI[x][i][0]\n ... | ['Runtime Error', 'Accepted'] | ['s287719469', 's503415936'] | [3064.0, 3060.0] | [18.0, 17.0] | [824, 168] |
p03041 | u150664457 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['import math\n\nN, K = map(int, input().split())\n\nk = []\nn = N\ntmp = K\ni = 0\nwhile tmp >= 2:\n k.append(tmp)\n tmp = tmp / 2\nk.append(tmp)\nk.append(1)\n \nans = 0\nfor i in range(len(k)):\n if n >= k[i]:\n ans += math.floor(n + 1 - k[i]) / (2 ** i)\n n -= math.floor(n + 1 - k[i])\... | ['Wrong Answer', 'Accepted'] | ['s099142147', 's679998337'] | [3064.0, 2940.0] | [19.0, 17.0] | [340, 104] |
p03041 | u153419200 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["n,k=map(int,input().split())\ns=input()\nif s[k-1]==A:\n s=s[:k-1]+'a'+s[k:]\nelif s[k-1]==B:\n s=s[:k-1]+'b'+s[k:]\nelse:\n s=s[:k-1]+'c'+s[k:]\nprint(s)", "n,k=map(int,input().split())\ns=input()\nif s[k-1]=='A':\n s=s[:k-1]+'a'+s[k:]\nelif s[k-1]=='B':\n s=s[:k-1]+'b'+s[k:]\nelse:\n s=s[:k-1]+'c'+s[k:]\nprin... | ['Runtime Error', 'Accepted'] | ['s234710180', 's355424374'] | [3060.0, 3060.0] | [17.0, 18.0] | [149, 154] |
p03041 | u156302018 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['inputS = input()\ns = inputS\n\nif int(s[-2:]) == 0 or int(s[:2]) == 0:\n print("NA")\nelif int(s[-2:]) <= 12 and int(s[:2]) <= 12:\n print("AMBIGUOUS")\nelif int(s[:2]) > 12 and int(s[-2:]) <= 12:\n print("YYMM")\nelif int(s[:2]) <= 12 and int(s[-2:]) > 12:\n print("MMYY")\nelif int(s[:2]) > 12 and int(s... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s442872244', 's764240029', 's452045553'] | [3188.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [334, 299, 191] |
p03041 | u159281848 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['\u200blist1=input().split(" ")\nnum1=int(list1[0])\nnum2=int(list1[1])\nlist2=input()\nstrings=""\nfor i in range(num1):\n\tif i==num2:\n\t\tstrings+=list2[i].lower() \n\telse:\n\t\tstrings+=list2[i]\nprint(strings)', '# coding: utf-8\n# Your code here!\n# coding: utf-8\n# Your code here!\nlist=input().split(" ")\... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s481238260', 's626571298', 's952909328'] | [2940.0, 14740.0, 3060.0] | [17.0, 2104.0, 17.0] | [199, 406, 198] |
p03041 | u162787900 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | [" 1 N, K = input().split()\n 2 S = input()\n 3 K = int(K)\n 4 li = list(S)\n 5 li[K-1] = chr(ord(S[K-1])+32)\n 6 print(''.join(li))", "N, K = input().split()\nS = input()\nK = int(K)\nli = list(S)\nli[K-1] = chr(ord(S[K-1])+32)\nprint(''.join(li))\n"] | ['Runtime Error', 'Accepted'] | ['s330072162', 's491063618'] | [2940.0, 2940.0] | [17.0, 17.0] | [131, 108] |
p03041 | u168416324 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k=map(int,input().split())\ns=input()\nprint(s[:k]+s[k].lower()+s[k+1:])', 'n,k=map(int,input().split())\nk-=1\ns=input()\nprint(s[:k]+s[k].lower()+s[k+1:])\n'] | ['Runtime Error', 'Accepted'] | ['s049243998', 's194743095'] | [8924.0, 8936.0] | [22.0, 25.0] | [72, 78] |
p03041 | u168787173 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["N, K = map(int, input().split())\nS = list(input())\n\nS[K - 1] = S[K - 1].lower()\n\nprint(''.json(S))", "\nN, K = map(int, input().split())\n\nS = list(input())\n\nS[K - 1] = S[K - 1].lower()\n\nprint(''.json(S))", "N, K = map(int, input().split())\nS = list(input())\n \nS[K - 1] = S[K - 1].lower()\n \nprint(''.joi... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s292508978', 's968732231', 's036836359'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [98, 266, 100] |
p03041 | u173720816 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N,K=map(int, input().split())\nS=list(input())\nS[K-1]=S[K-1].lower()\nprint(S)', 'N,K=map(int, input().split())\nS=list(input())\nS[K-1]=S[K-1].lower()\nprint("".join(S))\n'] | ['Wrong Answer', 'Accepted'] | ['s029106512', 's675209023'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 86] |
p03041 | u175590965 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k = map(int,input().split())\ns = input()\n\nprint(s[:k-1]+s.upper[k-1]+s[k:])', 'n,k = map(int,inoput().split())\ns = input()\n\nprint(s[:k-1]+s[k-1].lower+s[k:])', 'n,k = map(int,inoput().split())\ns = input()\n\nprint(s[:k-1]+lower.s[k]+s[k+1:])', 'n,k = map(int,inoput().split())\ns = input()\n\nprint(s[:k-1]+s[... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s150401107', 's566113360', 's643465289', 's862155227', 's995007767', 's601630609'] | [9060.0, 3064.0, 2940.0, 2940.0, 9164.0, 9032.0] | [23.0, 18.0, 17.0, 17.0, 23.0, 27.0] | [77, 78, 78, 80, 79, 79] |
p03041 | u179539980 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k=[int(i) for i in input().split()];s=input()\nprint(s[0:k]+s[k].lower()+s[k+1:])', 'n,k=[int(i) for i in input().split()];s=input()\nprint(s[0:k-1]+s[k-1].lower()+s[k:])'] | ['Runtime Error', 'Accepted'] | ['s630186524', 's699844623'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 84] |
p03041 | u181215519 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['K = map( int, input().split() )\nS = list( input() )\nS[ K - 1 ] = S[ K - 1 ].lower\nprint( "".join(S) )', 'N, K = map( int, input().split() )\nS = str( input() )\nS[ K - 1 ] = S[ K - 1 ].lower()\nprint( S )', 'N, K = map( int, input().split() )\nS = str( input() )\nS[ K - 1 ] = S[ K - 1 ].lower\nprint( S )', 'N, K =... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s024182794', 's490566607', 's702971101', 's708943669'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [101, 96, 94, 106] |
p03041 | u183754334 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["N, K = map(int, input().split(' '))\nS = list(input().rstrip())\n\nS[K-1] = S[K-1].lower()\nprint(S)", "N, K = map(int, input().split(' '))\nS = list(input().rstrip())\n\nS[K-1] = S[K-1].lower()\nresult = ''.join(S)\nprint(result)"] | ['Wrong Answer', 'Accepted'] | ['s479152762', 's288070406'] | [2940.0, 2940.0] | [19.0, 17.0] | [96, 121] |
p03041 | u186967328 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['import math\nN,K = map(int,input().split())\nif N > 10000:\n raise IndexError\ncnt = 0\nfor n in range(1,N+1):\n if K/n <= 1:\n x = 0\n elif math.log(K/n)%math.log(2)<=0.00001:\n x = (math.log(K)-math.log(n))//math.log(2)\n else:\n x = (math.log(K)-math.log(n))//math.log(2)+1\n cnt +... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s090463705', 's097297250', 's230758447', 's778472834', 's999856729', 's043226936'] | [3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 2940.0] | [18.0, 18.0, 17.0, 17.0, 17.0, 17.0] | [331, 331, 330, 330, 331, 80] |
p03041 | u188244611 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["# ABC 126 C\nn, k = [int(el) for el in input().split(' ')]\nH = []\nfor i in range(1, n+1):\n h = 0\n while i < k:\n i = 2*i\n h += 1\n H.append(h)\n\ntotal = 1/n * sum([(1/2)**h for h in H])\nprint(total)\n", "n, k = [int(el) for el in input().split(' ')]\ns = input()\nprint(s[:k-1] + s[k-1].l... | ['Wrong Answer', 'Accepted'] | ['s084727805', 's155825370'] | [3316.0, 2940.0] | [22.0, 17.0] | [218, 99] |
p03041 | u190406011 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N, K = [int(i) for i in input().split()]\nS = input()\nS[K] = S[K].lower()\nprint(S)', 'N, K = [int(i) for i in input().split()]\nS = input()\nS[K-1] = S[K-1].lower()\nprint(S)', 'N, K = [int(i) for i in input().split()]\nS = input()\nS = S[:K-1] + S[K-1].lower() + S[K:]\nprint(S)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s379807006', 's745103802', 's618902906'] | [2940.0, 2940.0, 3316.0] | [17.0, 18.0, 19.0] | [81, 85, 98] |
p03041 | u194440952 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['# -*- coding: utf-8 -*-\n\nn, k = map(int, input().split())\n\ns = input()\nnews = ""\nfor i in range(0, n):\n\n if i == k:\n news += s[i].lower()\n else:\n news += s[i]\nprint(news)', '# -*- coding: utf-8 -*-\n\nn, k = map(int, input().split())\n\ns = input()\nnews = ""\nfor i in range(0, n):\n\n... | ['Wrong Answer', 'Accepted'] | ['s864033757', 's656560829'] | [2940.0, 2940.0] | [17.0, 17.0] | [251, 253] |
p03041 | u197300773 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['m,k=map(int,input().split())\nif k>=2**m:\n print(-1)\nelif m==1:\n if k==0: print(0,0,1,1)\n else: print(-1)\nelse:\n tmp=k\n for i in range(1,2**m):\n tmp^=i\n ans=[i for i in range(2**m) if i!=k]+[k]+[i for i in range(2**m-1,-1,-1) if i!=k]+[k]\n print(*ans)\n', 'N,K=map(int,input().spl... | ['Wrong Answer', 'Accepted'] | ['s405887286', 's885587942'] | [141196.0, 2940.0] | [2104.0, 17.0] | [279, 78] |
p03041 | u199272404 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N, K = map(int, input().split())\nS = list(input())\n\nprint(S)\ns_l = S[K].lower()\nS[K] = s_l\nprint("".join(S))', 'N, K = map(int, input().split())\nS = list(input())\ns_l = S[K].lower()\nS[K] = s_l\nprint("".join(S))', 'N, K = map(int, input().split())\nS = list(input())\ns_l = S[K-1].lower()\nS[K-1] = s_l\nprint... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s107006926', 's328755580', 's478772927'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [108, 98, 103] |
p03041 | u201082459 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k = map(int,input().split())\ns = str(input())\nans = s[:k-2] + s[k-1].lower() + s[k:]\nprint(ans)', "n,k = map(int,input().split())\ns = list(str(input()))\ns[k-1] = s[k-1].lower()\nprint(''.join(s))"] | ['Wrong Answer', 'Accepted'] | ['s524185329', 's879400972'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 95] |
p03041 | u204616996 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["d={'A':'a','B':'b','C':'c'}\nN,K=map(input().split())\nS=input()\nprint(S[:K-1]+d[S[K-1]]+S[K:])", "d={'A':'a','B':'b','C':'c'}\nN,K=map(int,input().split())\nS=input()\nprint(S[:K-1]+d[S[K-1]]+S[K:])"] | ['Runtime Error', 'Accepted'] | ['s666052783', 's259798853'] | [3060.0, 3060.0] | [17.0, 17.0] | [93, 97] |
p03041 | u205087376 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k = map(int,input().split())\ns = str(input())\ns = s.lower(k)\nprint(str(s))', 'n,k = map(int,input().split())\ns = str(input())\nprint(str(s[:k-1]+s[k-1].lower()+s[k:]))'] | ['Runtime Error', 'Accepted'] | ['s729548521', 's491866500'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 88] |
p03041 | u208713671 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['istNK = list(map(int,input().split()))\nS = list(input())\n\nif S[listNK[1]-1]=="A":\n S[listNK[1]-1] = "a"\nif S[listNK[1]-1]=="B":\n S[listNK[1]-1] = "b"\nif S[listNK[1]-1]=="C":\n S[listNK[1]-1] = "c"\n\noutput = ""\nfor i in range(listNK[0]):\n output = output + S[i]\n\nprint(output)', 'listNK = list(... | ['Runtime Error', 'Accepted'] | ['s432405795', 's463640539'] | [3064.0, 3064.0] | [17.0, 17.0] | [286, 287] |
p03041 | u208983435 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["# -*- coding: utf-8 -*-\n\ndef main():\n _, K = map(int, input().split(' '))\n S = input()\n\n S[K - 1] = S[K - 1].lower()\n\n print(S)\n\n\nif __name__ == '__main__':\n main()\n", "# -*- coding: utf-8 -*-\n\ndef main():\n _, K = map(int, input().split(' '))\n S = input()\n\n print(S[:K - 1] +... | ['Runtime Error', 'Accepted'] | ['s201072546', 's800135808'] | [2940.0, 2940.0] | [17.0, 17.0] | [180, 182] |
p03041 | u213401801 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k=map(int,input().split())\ns=input()\nprint(s[0:k-1]+s[k-1]+s[k:])', 'n,k=map(int,input().split())\ns=input()\nprint(s[0:k-1]+s[k-1].lower()+s[:k])', 'n,k=map(int,input().split())\nfor i in range(n):\n s=list(map(int,input().split()))\ns[k].lower()\nfor i in range(n):\n print(s[i],end="")', 'n,k=map(int,input().... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s129078969', 's161095742', 's392960855', 's563048622', 's563339517'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [67, 75, 135, 67, 75] |
p03041 | u220462658 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["nk_str = input()\nstring = input()\nnk_list = nk_str.split()\nk = int(nk_list[-1])\nstring_list = string.split()\nstring_list[k - 1] = string_list[k - 1].lower()\nstring = ''.join(string_list)\nprint(string)", "nk_str = input()\nstring = input()\nnk_list = nk_str.split()\nk = int(nk_list[-1])\nchar_list = [c for c in... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s390659113', 's489569641', 's751741879', 's568681456'] | [3060.0, 2940.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0, 17.0] | [200, 198, 333, 205] |
p03041 | u222207357 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['S = input()\n\nS1 = 10*int(S[0]) + int(S[1])\nS2 = 10*int(S[2]) + int(S[3])\nSepS = [S1, S2]\nMM = [True,True]\n\nfor i in range(2):\n if SepS[i] < 1 or SepS[i] > 12:\n MM[i] = False\n\nif MM[0] and MM[1]:\n print("AMBIGUOUS")\nelif MM[0]:\n print("MMYY")\nelif MM[1]:\n print("YYMM")\nelse:\n print("NA")', 'N... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s676587432', 's810001231', 's979715667'] | [3064.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [295, 159, 163] |
p03041 | u223555291 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["a,b=map(int,input().split())\nc=list(input())\nif c[b-1]=='A':\n \n c[b-1]='a'\nelif c[b-1]=='B':\n c[b-1]='b'\nelse:\n c[b-1]='c'\nprint(c)", "a,b=map(int,input().split())\nc=list(input())\nif c[b-1]=='A':\n c[b-1]='a'\nelif c[b-1]=='B':\n c[b-1]='b'\nelse:\n c[b-1]='c'\nd=''\nfor i in range(a):\n d+=c[i]\np... | ['Wrong Answer', 'Accepted'] | ['s086604696', 's821668381'] | [2940.0, 2940.0] | [16.0, 16.0] | [135, 166] |
p03041 | u223646582 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N, K = map(int, input().split())\nS = input()\n \nS[K+1] = S[K+1].lower()\n \nprint(S)', 'N, K = map(int, input().split())\nS = input()\n\nS[N+1] = S[N+1].lower()\n\nprint(S)', 'N, K = map(int, input().split())\nS = input()\n \nprint(S[:K-1] + S[K-1].lower() + S[K:])'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s069337727', 's460266846', 's902924154'] | [2940.0, 2940.0, 3064.0] | [17.0, 17.0, 17.0] | [81, 79, 86] |
p03041 | u224119985 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k=map(int,input().split())\ns=input()\ns[k-1] = chr(ord(s[k-1]) - ord(\'A\') + ord(\'a\'))\nfor c in s:\n\tprint(c, end="")', 'n,k=map(int,input().split())\ns=list(input())\ns[k-1]=s[k-1].lower()\nprint("".join(s))'] | ['Runtime Error', 'Accepted'] | ['s374447250', 's023913161'] | [9164.0, 9108.0] | [26.0, 28.0] | [116, 84] |
p03041 | u224554402 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['p,q = input().split()\nq_ = int(q) -1 \nn = input()\nn.replace(n[q_], n[q_].lower(), 1)\n\n', 'p,q = input().split()\nq_ = int(q) \nn = input()\n\nprint(n[:q_-1] + n[q_-1].lower() + n[q_:])\n\n\n'] | ['Wrong Answer', 'Accepted'] | ['s960232603', 's391755262'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 93] |
p03041 | u229518917 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["S=input()\nF=int(S[:2])\nL=int(S[2:])\n\nif 0<F<=12:\n if 0<L<=12:\n print('AMBIGUOUS')\n else:\n print('MMYY')\nelif 0<L<=12:\n print('YYMM')\nelse:\n print('NA')", 'N,K=map(int,input().split())\nS=list(input())\nS[K-1]=S[K-1].lower()\nprint("".join(S))'] | ['Wrong Answer', 'Accepted'] | ['s696231683', 's975113097'] | [2940.0, 2940.0] | [17.0, 17.0] | [177, 84] |
p03041 | u229621546 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['S = input()\na,b = int(S[0:2]),int(S[2:])\nif 0 < a and a < 13 and (13 <= b or b == 0):\n print("MMYY")\nelif (13 <= a or a == 0) and 0 < b and b < 13:\n print("YYMM")\nelif a < 13 and b < 13 and a != 0 and b != 0:\n print("AMBIGUOUS")\nelse:\n print("NA")', 'N,K = map(int,input().split())\nS = input()\nT = S.low... | ['Wrong Answer', 'Accepted'] | ['s429292452', 's848956556'] | [3064.0, 3316.0] | [17.0, 23.0] | [251, 93] |
p03041 | u230416699 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N ,K = map(int, input().split())\nS = input()\n\nK = K-1\n\ns=list(S)\n\nif s[K]=="A":\n s[K]=\'a\'\nelif s[K]==\'B\':\n s[K]=\'b\'\nelif s[K]==\'C\':\n s[K]=\'c\'\n\nprint(s)', 'N ,K = map(int, input().split())\nS = input()\n\ns=list(S)\nif s[K]=="A":\n s[K]=\'a\'\nelif s[K]==\'B\':\n s[K]=\'b\'\nelif... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s388087943', 's480785753', 's580933991', 's753160621', 's326160961'] | [3060.0, 3060.0, 3060.0, 3060.0, 3060.0] | [18.0, 17.0, 17.0, 17.0, 17.0] | [160, 149, 149, 157, 167] |
p03041 | u233183615 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k=map(int,input().split())\nstrs=input()\nstrs=strs.replace(strs[k],strs[k].lower())\nprint(strs)', "n,k=map(int,input().split())\nstrs=list(input())\nstrs[k-1]=strs[k-1].lower()\nprint(*strs, sep='')"] | ['Runtime Error', 'Accepted'] | ['s954412935', 's939737817'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 96] |
p03041 | u234189749 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N, K =map(int,input().split())\nS = input()\nprint(type(S))\nprint(S[:K-1]+S[K-1].lower() + S[K:])\n', 'N, K =map(int,input().split())\nS = input()\nprint(S[:K-1]+S[K-1].lower() + S[K:])\n'] | ['Wrong Answer', 'Accepted'] | ['s989005120', 's680446646'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 81] |
p03041 | u235066013 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k=[int(i)for i in input().split()]\ns=str(input())\nprint(s.replace(s[k-1],s[k-1].lower))', "n,k=[int(i)for i in input().split()]\ns=str(input())\nS=list(s)\nS[k-1]=S[k-1].lower\nA=''.join(S)\nprint(A)", 'n,k=[int(i)for i in input().split()]\ns=str(input())\nprint(s.replace(s[k],s[k].lower))', 'n,k=[int(i)for i in ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s529993467', 's617617223', 's683526565', 's898679402', 's665675407'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [89, 103, 85, 94, 87] |
p03041 | u237889597 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['c=0\ndef doublet(n,f):\n global c\n if n<f:\n c=c+1\n return doublet(2*n,f)\n else:\n return c\nnum=int(input())\nk=int(input())\nif (num>=1 and num<=10**5) and (k>=1 and k<=10**5):\n sum_power=0.0\n for i in range(1,(num+1),1):\n count=doublet(i,k)\n p=pow(2,count)*n... | ['Runtime Error', 'Accepted'] | ['s729756701', 's433836489'] | [3064.0, 2940.0] | [17.0, 17.0] | [381, 92] |
p03041 | u238948075 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n, k = map(int, input().split())\n\ns = list(input())\n\ns[k - 1].lower()\nprint(s)\n\nfor i in range(n):\n print(s[i], end = "")\n\nprint()', 'n, k = map(int, input().split())\n\ns = list(input())\n\n\nfor i in range(n):\n if i != k - 1:\n print(s[i], end = "")\n else:\n print(s[i].lower(), en... | ['Wrong Answer', 'Accepted'] | ['s578546773', 's990628271'] | [2940.0, 2940.0] | [17.0, 17.0] | [133, 178] |
p03041 | u239301277 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k=map(int,input().split())\ns=input()\nnew=s[k]\nnews=new.lower()\nprint(s[:k-1]+news+s[k:])', 'n,k=int(input().split())\ns=input()\ns[k-1]=s[k-1].lower()\nprint(s)', "n,k=int(input().split())\ns=input()\nprint('s[:k-1]'+'s.replace(s[k-1], s[k-1].lower())'+'s[k:]')\n", 'n,k=map(int,input().split())\ns=input()\nprin... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s296883433', 's367809792', 's511275924', 's533440488', 's636634482', 's974718457'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [90, 65, 96, 93, 89, 94] |
p03041 | u242031676 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n, k = map(int, input().split())\ns = list(input())\ns[k] = s[k].lower()\nprint("".join(s))', 'n, k = map(int, input().split())\ns = list(input())\ns[k-1] = s[k-1].lower()\nprint("".join(s))'] | ['Runtime Error', 'Accepted'] | ['s759003588', 's032107140'] | [3316.0, 2940.0] | [22.0, 17.0] | [88, 92] |
p03041 | u242870549 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n, k = list(map(int, input().split()))\n\ns = input()\n\nprint(s[:k - 1] + s[k -1].lower + s[k:])\n', 'n, k = map(int, input().split())\n\ns = input()\n\nprint(s[:k - 1] + s[k -1].lower + s[k:])\n', 'n, k = map(int, input().split())\n\ns = input()\n\ns2 = list(s[:k-1] + s[k-1].lower + s[k:])\nprint(s2)\n', 'n, k = li... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s064821017', 's130672794', 's512801559', 's753366101', 's776070489', 's914158373', 's569917478'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 18.0, 17.0, 17.0] | [94, 88, 99, 107, 108, 87, 79] |
p03041 | u243159381 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['a,b=map(int,input().split())\ns=input()\nprint(s[:k-1]+s[k-1].lower()+s[k:])', 'a,b=map(int,input().split())\ns=input()\nprint(s[:k-1]+s[k-1].lower+s[k:])', 'a,b=map(int,input().split())\ns=input()\nprint(s[:b-1]+s[b-1].lower()+s[b:])'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s664402106', 's868848292', 's649008150'] | [8956.0, 9100.0, 9100.0] | [30.0, 23.0, 30.0] | [74, 72, 74] |
p03041 | u243549769 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N, K = map(int, input().split())\n\nS = list(input())\n\nS[K-1] = S[K-1].lower()\n\nfor i in S:\n s_new += i\n \nprint(s_new)', 'N, K = map(int, input().split())\n\nS = list(input())\n\nS[K-1] = S[K-1].lower()\n\nfor i in S:\n s_new += i\n \nprint(s_new)', 'N,K = map(int, input().split())\n\nS = list(input(... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s017777333', 's147743355', 's698034643', 's736877944', 's785171075', 's829520674', 's894377428', 's972701464', 's041302023'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0] | [120, 122, 107, 70, 128, 83, 130, 120, 141] |
p03041 | u244416763 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['import math\nn,k = map(int,input().split())\nans = 0\nfor i in range(1,n+1,1):\n temp = i\n count = 0\n while (temp < k):\n temp *= 2\n count += 1\n #print("1/{} * (1/2)^{}".format(n,count))\n ans += min(1,(math.pow((1/2),count)))\nprint("{:1.9f}".format(ans/n))', 'n,k = map(int,input().split())\ns = s... | ['Wrong Answer', 'Accepted'] | ['s259217507', 's825735125'] | [3060.0, 2940.0] | [17.0, 17.0] | [266, 166] |
p03041 | u244836567 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['a,b=input().split()\na=int(a)\nb=int(b)\nc=input()\nh,i,j=c[:(a-2)],c[a-2],c[a-1:]\nif i=="A":\n i="a"\nif i=="B":\n i="b"\nif i=="C":\n i="c"\nprint(h+i+j)', 'a,b=input().split()\na=int(a)\nb=int(b)\nc=input()\nh,i,j=c[:(a-2)],c[a-2],c[a-1:]\nif i=="A":\n i="a"\nif i=="B":\n i=="b"\nif i=="C":\n i=="c"\nprint(... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s780286177', 's865578530', 's552254050'] | [9120.0, 8988.0, 9052.0] | [29.0, 30.0, 25.0] | [148, 150, 148] |
p03041 | u245870380 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N ,K = map(int, input().split())\n\nS = str(input())\n\nS = S[:K] + (S[K]).lower() + S[K+1:]\n\nprint(S)\n', 'N ,K = map(int, input().split())\n\nS = str(input())\n\nS = S[:K-1] + S[K].swapcase() + S[K+1:]\n\nprint(S)\n', 'N ,K = map(int, input().split())\n\nS = str(input())\n\nS = S[:K-1] + (S[K-1]).lower() + S[K:]\... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s471998990', 's838892549', 's963779158'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [99, 102, 101] |
p03041 | u246401133 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n, k = map(int,input().split())\ns = input()\nl = s[k - 1]\nif l == "A":\n x = s[:(k - 1)] + "a" + s[(k + 1):]\nelif l == "B":\n x = s[:(k - 1)] + "b" + s[(k + 1):]\nprint(x)', 'n, k = map(int,input().split())\ns = input()\nl = s[k - 1]\nif l == "A":\n x = s[:(k - 1)] + "a" + s[k:]\nelif l == "B":\n x = s... | ['Runtime Error', 'Accepted'] | ['s046732062', 's888309671'] | [8896.0, 9180.0] | [22.0, 28.0] | [173, 201] |
p03041 | u247922466 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N, K = map(int, input().split())\ns = list(input())\nprint("".join(s[:K]+ list(s[K].lower()) + s[K + 1:]))', 'N, K = map(int, input().split())\ns = list(input())\nprint("".join(s[:K-1]+ list(s[K-1].lower()) + s[K:]))'] | ['Runtime Error', 'Accepted'] | ['s828191010', 's157735578'] | [2940.0, 2940.0] | [17.0, 17.0] | [104, 104] |
p03041 | u248670337 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N, K = map(int, input().split())\nS = list(input())\nS[K] = S[K].lower()\nprint(S[i] for i in range(N))', 'N, K = map(int, input().split())\nS = input()\nS[K] = S[K].lower():\nprint(S)', "N, K = map(int, input().split())\nS = list(input())\nS[K -1] = S[K - 1].lower()\nprint(''.join(S))"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s230008735', 's565574202', 's544495998'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [100, 74, 95] |
p03041 | u249987458 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k = map(int, input().split())\ns = list(map(str, input().split()))\nk = k-1\n\nfor i in range(n):\n if i != k:\n print(s[i],end="")\n else:\n x = s[i].lower()\n print(x,end="")\n', 'n,k = map(int, input().split())\ns = list(map(str, input().split()))\nk = k-1\n\nfor i in range(n):\n if i != k:\n prin... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s027467603', 's448524870', 's753165912', 's107923046'] | [8952.0, 9032.0, 9104.0, 9144.0] | [28.0, 23.0, 21.0, 26.0] | [181, 180, 180, 93] |
p03041 | u250828304 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N,K = map(int,input().split())\n\nS = list(input())\n\nS[K-1] = chr(ord(S[K-1])+32)\nprint(str(S))', 'N,K = map(int,input().split())\n\nS = list(input())\n\nS[K-1] = chr(ord(S[K-1])+32)\nprint("".join(map(str,S)))'] | ['Wrong Answer', 'Accepted'] | ['s240392196', 's009214700'] | [2940.0, 2940.0] | [17.0, 18.0] | [93, 106] |
p03041 | u251075661 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["n, k = map(int, input().split())\n\nletters = ''\nfor i, l in enumerate(input().split()):\n if i + 1 == k:\n letters += l.lower()\n else:\n letters += l\nprint(letters)", "n, k = map(int, input().split())\n\nletters = ''\nfor i, l in enumerate(input()):\n if i + 1 == k:\n letters += l.lower()\n else:\n ... | ['Wrong Answer', 'Accepted'] | ['s068260829', 's196258995'] | [2940.0, 2940.0] | [18.0, 17.0] | [168, 160] |
p03041 | u253681061 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n, k = [int(x) for x in input().split()]\ns = input()\n\ns[k-1] = s[k-1].lower()\n\nprint(s)', 'n, k = [int(x) for x in input().split()]\ns = list(input())\n\ns[k-1] = s[k-1].lower()\n\nprint(*s ,sep="")'] | ['Runtime Error', 'Accepted'] | ['s727770568', 's211721340'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 102] |
p03041 | u253722898 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k = list(map(int,input().split()))\nS = input()\nprint(S.replace(S[k], S[k].lower()))', 'n,k = list(map(int,input().split()))\nS = input()\nprint( S[:k-1]+S[k-1].lower()+ S[k:])'] | ['Runtime Error', 'Accepted'] | ['s814329191', 's689209543'] | [9160.0, 9152.0] | [26.0, 33.0] | [85, 86] |
p03041 | u256710795 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['x=input()\naa=x[:2]\nbb=x[3:]\naa=int(aa)\nbb=int(bb)\nif 0<aa<=12 and 0==bb:\n\tprint("MMYY")\nelif 0==aa and 0<bb<=12:\n\tprint("YYMM")\nelif 0<aa<=12 and 0<bb<=12:\n\tprint("AMBIGUOUS")\nelif 0<aa<=12:\n\tprint("MMYY")\nelif 0<bb<=12:\n\tprint("YYMM")\nelse:\n\tprint("NA")', 'x=input()\naa=x[:2]\nbb=x[3:]\naa=int(... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s216500343', 's563071948', 's871902364', 's250375640'] | [3060.0, 3064.0, 3064.0, 3316.0] | [17.0, 17.0, 17.0, 21.0] | [254, 254, 250, 118] |
p03041 | u257265865 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N,K=map(int,input().split())\nS=input()\nif S[K-1]=A:\n S[K-1]=a\nif S[K-1]=B:\n S[K-1]=b\nelse:\n S[K-1]=c\nprint(S)', 'N,K=map(int,input().split())\nS=input()\nprint(S[:K-1]+S[K-1]+S[K:N+1])\n', 'N,K=map(int,input().split())\nS=input()\nprint(S[:K-1]+S[K-1]+S[:N+1])\n', 'N,K=map(int,input().split())\nS=input()\n... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s268127355', 's496451713', 's709676460', 's572361976'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [112, 70, 69, 78] |
p03041 | u258808501 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N,K=map(int,input().split())\nS=input()\nS[K-1].lower()\nprint (S)', 'a=""\nN,K=map(int,input().split())\nS=input()\nl=[]\nfor i,x in enumerate (S):\n if i==K-1:\n x=x.lower()\n l.append(x)\nfor i in range(N):\n a+=l[i]\nprint (a)'] | ['Wrong Answer', 'Accepted'] | ['s346277078', 's397926852'] | [2940.0, 3060.0] | [17.0, 18.0] | [63, 166] |
p03041 | u261843559 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["n,m=map(int,input().split())\ns=input()\ns=s[:m]+chr(ord(s[m])-ord('A')+ord('a'))+s[m+1:]\nprint(s)", "n,m=map(int,input().split())\ns=input()\ns=s[:m-1]+chr(ord(s[m-1])-ord('A')+ord('a'))+s[m:]\nprint(s)"] | ['Runtime Error', 'Accepted'] | ['s245584537', 's869001689'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 98] |
p03041 | u262084284 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['# coding: utf-8\n\nn,k = map(int, input().split())\ns = input()\n\nlow = s[k].lower()\nprint(s[:k]+low+s[k+1:])', '# coding: utf-8\n\nn,k = map(int, input().split())\ns = input()\n\nlow = s[k-1].lower()\nprint(s[:k-1]+low+s[k:])'] | ['Runtime Error', 'Accepted'] | ['s835022926', 's125346829'] | [2940.0, 2940.0] | [17.0, 17.0] | [105, 107] |
p03041 | u262585821 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['i = int(input().split()[1])\ns = input()\nprint("{}{}{}".format(s[:i], s[i].lower(), s[i+1:]))', 'i = int(input().split()[1]) - 1\ns = input()\nprint("{}{}{}".format(s[:i], s[i].lower(), s[i+1:]))'] | ['Runtime Error', 'Accepted'] | ['s275236733', 's743636366'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 96] |
p03041 | u263483399 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N , K= list(map(int,input().split()))\nS = input()\nK-=1\nans = str.lower(S[K])\nprint(ans)', 'N , K= list(map(int,input().split()))\nS = input()\n\nafter=str.lower(S[K-1])\n\nans = S[:K-1] + after + S[K:]\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s401298567', 's969979980'] | [9004.0, 9088.0] | [27.0, 26.0] | [87, 116] |
p03041 | u263830634 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["N, K = map(int, input().split())\n\nS = list(input())\n\na = str(S[K-1]).lower()\n\nS[K-1] = a\nprint (S)\nfor i in range(N):\n print (S[i], end='')\nprint ()", "N, K = map(int, input().split())\n\nS = list(input())\n\na = str(S[K-1]).lower()\n\nS[K-1] = a\n#print (S)\nfor i in range(N):\n print (S[i], end='')\... | ['Wrong Answer', 'Accepted'] | ['s910069951', 's601608605'] | [2940.0, 2940.0] | [17.0, 17.0] | [151, 156] |
p03041 | u264265458 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['a,b=map(int,input().split())\nc=input()\nc[b]=c[b].lower()\nprint(c)', 'a,b=map(int,input().split())\nc=list(input())\nc[b-1]=c[b-1].lower()\nprint(*c,sep="")'] | ['Runtime Error', 'Accepted'] | ['s721750539', 's412236977'] | [2940.0, 2940.0] | [17.0, 17.0] | [65, 83] |
p03041 | u266964556 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N,M = input().split()\nN = int(N)\nM = int(M)\nlist = []\nA_list = []\n\nfor i in range(M):\n x,y,z = input().split()\n x,y,z = int(x),int(y),int(z)\n list.append([x,y,z])\n\nA_list.append([list[0][0]])\nfor data in list:\n check = 0\n for A_data in A_list:\n if data[0] in A_data:\n A... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s396393639', 's819708647', 's735044958'] | [3064.0, 3064.0, 2940.0] | [17.0, 18.0, 17.0] | [593, 593, 137] |
p03041 | u268792407 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k=map(int,input().split())\ns=input()\nif s[k-1]==A:\n s[k-1]=a\nelif s[k-1]==B:\n s[k-1]=b\nelse:\n s[k-1]=c\nprint(s)', "n,k=map(int,input().split())\ns=input()\nif s[k-1]=='A':\n s[k-1]='a'\nelif s[k-1]=='B':\n s[k-1]='b'\nelse:\n s[k-1]='c'\nprint(s)", 'n,k=map(int,input().split())\ns=input()\nif s[k-1]==... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s006142536', 's757027230', 's282083749'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [116, 126, 167] |
p03041 | u269318751 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['#python 3.5.2\n\nprint ("Hello, world!")\nN, K = [int(i) for i in input().split()]\nS = input()\nres = ""\nfor i,ch in enumerate(S):\n if i == K - 1:\n res += ch.lower()\n else:\n res += ch\nprint(res)', '\nN, K = [int(i) for i in input().split()]\nS = input()\nres = ""\nfor i,ch in enumerate(S):\... | ['Wrong Answer', 'Accepted'] | ['s680346319', 's784667384'] | [2940.0, 2940.0] | [18.0, 17.0] | [210, 172] |
p03041 | u271752821 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["s = list(input())\nhead = int(s[0] + s[1])\ntail = int(s[2] + s[3])\n\nif (0 < head < 13) and (0 < tail < 13):\n print('AMBIGUOUS')\nelif 0 < tail < 13:\n print('YYMM')\nelif 0 < head < 13:\n print('MMYY')\nelse:\n print('NA')", "s = list(input())\nhead = int(s[0] + s[1])\ntail = int(s[2] + s[3])\nif (hea... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s027288912', 's940106715', 's459696780'] | [3060.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [227, 318, 152] |
p03041 | u273186459 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k=map(int,input().split())\ns=list(input())\n\ns[k-1]=s[k-1].lower()\nprint(s)\n', 'n,k=map(int,input().split())\ns=input()\ns_list=list(s)\ns_list[k-1]=s_list[k-1].lower()\ns="".join(s_list)\nprint(s)'] | ['Wrong Answer', 'Accepted'] | ['s550883870', 's612221540'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 112] |
p03041 | u275899124 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["s = (input())\na= s[0:2]\nb= s[2:4]\na = int(a)\nb= int(b)\nif a == 0 or b == 0:\n if b!= 0 and b<13:\n print('YYMM')\n elif a!= 0 and a<13:\n print('MMYY')\n else:\n print('NA')\nelif a<13 or b<13:\n if a>12:\n print('YYMM')\n elif b>12:\n print('MMYY')\n else:\n print('AMBIGUOUS')\nelse:\n ... | ['Wrong Answer', 'Accepted'] | ['s787665004', 's327751938'] | [3064.0, 3064.0] | [18.0, 17.0] | [309, 179] |
p03041 | u276229014 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N,K = map(int,input().split())\nS = list(input())\nif S[K] == "A":\n S[K] = "a"\n STR = "".join(S)\n print(STR)\nelif S[K] == "B":\n S[K] = "b"\n STR = "".join(S)\n print(STR)\nelse:\n S[K] = "c"\n STR = "".join(S)\n print(STR)', 'N,K = map(int,input().split())\nS = list(input())\nif S[K-1] == "A":\n S[K-1]... | ['Runtime Error', 'Accepted'] | ['s490262365', 's122547753'] | [3060.0, 3064.0] | [17.0, 17.0] | [223, 233] |
p03041 | u281733053 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['a,b=map(int, input().split())\nc=input()\nif c[b-1]=="A":\n c[b-1]="a"\nelif c[b-1]=="B":\n c[b-1]="b"\nelse:\n c[b-1]="c"\nprint(\'\'.join(c))', 'n,k = map(int,input().split())\n\nimport math\n\n\np = 0\n\nfor i in range(n+1):\n if i>0:\n if i>=k:\n p += 1\n else:\n p ... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s162255159', 's430356786', 's786031765'] | [3316.0, 3060.0, 3060.0] | [23.0, 17.0, 17.0] | [142, 194, 186] |
p03041 | u282335165 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n=int(input())\nk=int(input())\ns=str(input())\nif k == n:\n r=s[0:(k-1)] + s[k].lower()\nelif k == 0:\n r=s[0:(k-1)].lower() + s[k]\nelse:\n r=s[0:(k-1)] + s[k-1].lower() + s[k]\nprint(r)', 'n, k = (int(i) for i in input().split()) \ns=str(input())\nif k == n:\n r=s[0:(k-1)] + s[k].lower()\nelif k == 0:... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s193596422', 's529583947', 's156784366'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [188, 201, 201] |
p03041 | u283751459 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k = map(int,input().split())\ns = input()\nls = list(s)\nls[k] = ls[k].lower()\nprint("".join(ls))', 'n,k = map(int,input().split())\ns = input()\nls = list(s)\nls[k] = ls[k-1].lower()\nprint("".join(ls))\n', 'n,k = map(int,input().split())\ns = input()\nls = list(s)\nls[k-1] = ls[k-1].lower()\nprint("".join(ls))\n... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s721719614', 's862600915', 's674705782'] | [9020.0, 8948.0, 8892.0] | [26.0, 26.0, 24.0] | [96, 99, 101] |
p03041 | u287431190 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['n,k = map(int, input().split())\ns = input()\nfor i in range(n):\n if i == (k-1):\n a = a + s.lower[i]\n else:\n a = a + s[i]\n\nprint(a) ', 'n,k = map(int,input().split())\ns = input()\nss = s.lower()\nif k == 1:\n print(ss[0]+s[1:n])\nelif k == n:\n print(s[0:n-1]+ss[n-1])\nelse:\n print(s[0:k-1]+ss[k... | ['Runtime Error', 'Accepted'] | ['s876101589', 's450287292'] | [2940.0, 3060.0] | [17.0, 17.0] | [141, 168] |
p03041 | u292229841 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["\n\n\nbefore_str = input()\n\nstr_list = list(before_str)\nstr_list[K-1] = str_list[K-1].swapcase()\n\nafter_str = ''.join(str_list)\n\nprint(after_str)", "N,K = map(int, input().split())\nbefore_str = input()\n\nstr_list = list(before_str)\nstr_list[K-1] = str_list[K-1].swapcase()\n\nafter_str = ''.join(str_list)\n\... | ['Runtime Error', 'Accepted'] | ['s934011845', 's266724956'] | [2940.0, 2940.0] | [17.0, 17.0] | [332, 171] |
p03041 | u294385082 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['lst = list(input())\nlst1 = []\nlst1.append(lst[0]+lst[1])\nlst1.append(lst[2]+lst[3])\n\nif (int(lst1[0]) >=13 and int(lst1[1]) >=13) or (int(lst1[0]) >=13 and lst1[1] =="00") or (lst1[0] =="00" and int(lst1[1]) >=13) or (lst1[0] =="00" and lst1[1] == "00"):\n print("NA")\n \nelif (0<int(lst1[0])<=12 and 0<int(lst... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s706241253', 's787886014', 's483479095'] | [3064.0, 3064.0, 3060.0] | [17.0, 17.0, 18.0] | [486, 441, 187] |
p03041 | u296518383 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N,K=map(int,input().split())\nS=list(input())\nS[K-1]=S[K-1].lower()\nprint(S)', 'N,K=map(int,input().split())\nS=input()\nprint(S[:K-1]+S[K-1].lower()+S[K:])'] | ['Wrong Answer', 'Accepted'] | ['s940348084', 's307788817'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 74] |
p03041 | u297046168 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N,K = list(map(int, input().split()))\nS = str(input())\ns = (S[K-1].lower)\nprint(s)', "N,K = list(map(int, input().split()))\nS = str(input())\ns = [S[i] for i in range(len(S))]\nans = (s[K-1].lower)\nprint(''.join(ans))", 'N,K = list(map(int, input().split()))\nS = str(input())\ns = [S[i] for i in range(len(S))]\n... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s002031209', 's158224918', 's172702149', 's291487236', 's915831746', 's198253252'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [82, 129, 126, 132, 120, 135] |
p03041 | u298297089 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N, K = map(int, input().split())\nS = input()\nprint(S[:K]+S[K].lower()+S[K+1:])', 'N, K = map(int, input().split())\nS = input()\nprint(S[:K-1]+S[K-1].lower()+S[K:])'] | ['Runtime Error', 'Accepted'] | ['s143982475', 's266250372'] | [2940.0, 3064.0] | [17.0, 17.0] | [78, 80] |
p03041 | u298975656 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ["s = input()\nif 0 < int(s[0:2]) <= 12 and 0 < int(s[2:4]) <= 12:\n print('AMBIGUOUS')\nelif int(s[0:2]) > 12 and int(s[2:4]) > 12 or int(s[0:2]) == 0 or int(s[2:4]) == 0:\n print('NA')\nelif 0 < int(s[0:2]) <= 12 and int(s[2:4]) > 12:\n print('MMYY')\nelse:\n print('YYMM')", 'n, k = map(int, input().split... | ['Wrong Answer', 'Accepted'] | ['s225970007', 's159090690'] | [3064.0, 2940.0] | [17.0, 17.0] | [277, 108] |
p03041 | u301387419 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['N , K = map(int, input().split())\ns = input()\n\nprint(s[:K-1]+s[K].lower()+s[K:])\n', 'N , K = map(int, input().split())\ns = input()\no = []\nfor i in range(N):\n if i == K - 1:\n o.append(s[i].lower())\n else:\n o.append(s[i])\n\nprint("".join(o))'] | ['Runtime Error', 'Accepted'] | ['s424526694', 's806849192'] | [2940.0, 2940.0] | [17.0, 18.0] | [81, 161] |
p03041 | u301870186 | 2,000 | 1,048,576 | You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it. | ['\ninp = input()\ninp = inp.split()\nn = int(inp[0])\nk = int(inp[1])\ns = input()\n\nprint(s[:k-1] + s[k-1].upper() + s[k:])', '\ns = input()\ns1 = int(s[:2])\ns2 = int(s[2:])\n\n# if (s1 <= 0) and (s2 > 12): # 0013\n# print("NA")\n# elif (s2 <= 0) and (s1 > 12): # 1300\n# print("NA")\n# elif (s1 <= 0) and (... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s303558155', 's680435154', 's728090936', 's682918963'] | [2940.0, 2940.0, 3192.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [117, 434, 475, 117] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.