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
u453068434
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()\nk-=1\nprint(s[:k]+s[k:k+1].lower()+s[k+1])', 'n,k=map(int,input().split())\ns=input()\nk-=1\nprint(s[:k]+s[k:k+1].lower()+s[k+1:])']
['Runtime Error', 'Accepted']
['s189398356', 's828470096']
[2940.0, 2940.0]
[17.0, 17.0]
[80, 81]
p03041
u457460736
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()\ntmp=list(S)\ntmp[K]=tmp[K].lower()\nprint(tmp)', 'N,K=map(int,input().split())\nS=input()\ntmp=list(S)\ntmp[K-1]=tmp[K-1].lower()\nprint("".join(tmp))\n']
['Runtime Error', 'Accepted']
['s365446740', 's805656470']
[9104.0, 9160.0]
[24.0, 27.0]
[83, 97]
p03041
u458824538
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\nif (s[k - 1] == 'A'):\n x = s[0:k - 2] + 'a' + s[k:n - 1]\nelif (s[k - 1] == 'B'):\n x = s[0:k - 2] + 'b' + s[k:n - 1]\nelse:\n x = s[0:k - 2] + 'c' + s[k:n - 1]\n", "n, k = map(int, input().split())\ns = input()\n\nif (s[k - 1] == 'A'):\n x = s[0:k - 1] + ...
['Wrong Answer', 'Accepted']
['s563155602', 's546733544']
[2940.0, 3060.0]
[17.0, 17.0]
[212, 209]
p03041
u464912173
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.replace('s[k-1]', ''s[k-1]'.lower()')", 'N,K = map(int,input().split())\ns = list(input())\ns[K-1] = s[K-1].lower()\n \nprint("".join(s))']
['Runtime Error', 'Accepted']
['s850221092', 's222540728']
[2940.0, 2940.0]
[17.0, 17.0]
[91, 96]
p03041
u468972478
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())\nt = input()\nprint(t.replace(t[b-1], t[b-1].upper()))', 'a, b = map(int, input().split())\nt = input()\nprint(t.replace(t[a-1], t[a-1].upper()))', 'a, b = map(int, input().split())\nt = input()\nprint(t[:b-1] + t[b-1].lower() + t[b:])']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s020846666', 's506172883', 's256159709']
[9160.0, 8976.0, 9044.0]
[28.0, 28.0, 27.0]
[85, 85, 84]
p03041
u471181540
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())\ns = input()\ns[k] = s[k].lower()\nprint(s)', 'm,k = map(int, input().split())\ns = input()\ns = s[:k] + s[k].lower() + s[k+1:]\nprint(s)', 'm,k = map(int, input().split())\ns = input()\ni = k-1\ns = s[:i] + s[i].lower() + s[i+1:]\nprint(s)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s680415622', 's778819455', 's037576976']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[72, 87, 95]
p03041
u471499397
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\nimport math\n \na,b=map(int, input().split())\n \nprobablity = 0.0\n \nfor i in range(a + 1):\n ceil = math.ceil(math.log2(b / (i + 1)))\n if(ceil < 0):\n ceil = 0\n elif(ceil < 1):\n ceil = 1\n \n probablity = probablity + 1 / (a * 2 ** ceil)\n \nprint(probablity)\nimport sys\nimport math\n...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s071341688', 's331135592', 's452148461', 's565009761', 's572173006', 's709748918', 's913000858', 's932887867', 's793433113']
[3064.0, 3064.0, 3060.0, 3060.0, 3064.0, 3064.0, 3064.0, 3060.0, 3064.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[521, 351, 348, 280, 482, 289, 451, 287, 424]
p03041
u473887606
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(S)\nS[K-1] = S[K-1].lower()\nfor c in S:\n\tprint(c, end="")\nprint()', 'N, K = map(int, input().split())\nS = list(input())\nS[K-1] = S[K-1].lower()\nfor c in S:\n\tprint(c, end="")\nprint()']
['Wrong Answer', 'Accepted']
['s840735905', 's067706222']
[2940.0, 3064.0]
[17.0, 17.0]
[121, 112]
p03041
u474423089
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=list(input())\ns_str=""\ns[k-1]=s[k-2].lower()\nfor i in s:\n s_str +=s[i]\nprint(s_str)\n', 'n,k=list(map(int,input().split(" ")))\ns=list(input())\ns_str=""\ns[k-1]=s[k-2].lower()\nfor i in s:\n s_str +=s[i]\nprint(s_str)', 'n,k=list(map(int,input().split(" ")))\ns=list(...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s096061443', 's134752493', 's216113713', 's372043416', 's482199788', 's985954048', 's226649000']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0]
[17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[127, 124, 127, 124, 125, 147, 198]
p03041
u474514603
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.
['from collections import defaultdict\nimport sys\nimport math\nfrom datetime import datetime\n\ndef sol(n, k, S):\n return S[:k-1]+S[k-1].lower()+S[k:]\n\n\ndo_submit = True\n\n\ndef input_parse(input_str):\n lines = [x.strip() for x in input_str.split("\\n") if x.strip()]\n parsed_lines = [list(map(str, line...
['Runtime Error', 'Accepted']
['s746985844', 's593458753']
[3820.0, 3820.0]
[33.0, 27.0]
[809, 812]
p03041
u481026841
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()\nt = s.lower()\nprint(s[:(k-2)] + t[k-1] + s[k:])\n', 'n,k = map(int,input().split())\ns = input()\nt = s[k-1].lower()\nprint(s[:(k-2)] + t + s[k:])\n', "n,k = map(int,input().split())\ns = input('')\nt = s[k-1].lower()\nprint(t)", "n,k = map(int,input().split())\ns = input...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s058406108', 's061756246', 's467558161', 's588581411', 's342285996']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 20.0, 17.0]
[91, 91, 72, 72, 138]
p03041
u482157295
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,loc = map(int,input().split())\ndummy = ["" for i in range(num)]\nmoj = input()\ncount = 0\nfor j in moj:\n dummy[count] = j\n count = count + 1\nS = dummy[loc-1]\nW = S.swapcase()\ndummy[loc-1] = W\nprint(dummy)', 'num,loc = map(int,input().split())\ndummy = ["" for i in range(num)]\nmoj = input()\ncount = 0\n...
['Wrong Answer', 'Accepted']
['s615208708', 's958496892']
[3060.0, 3060.0]
[18.0, 17.0]
[208, 247]
p03041
u486094752
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()\nif(S[K-1] = 'A'):\n S[K-1] = 'a'\nelif(S[K-1] = 'B'):\n S[K-1] = 'b'\nelif(S[K-1] = 'C'):\n S[K-1] = 'c'", 'S = list(input())\na = S[0] + S[1]\nb = S[2] + S[3]\nA = int(a)\nB = int(b)\n\nif (0 < A < 13 and 0 < B < 13):\n print("AMBIGUOUS")\nelif (0 < A < 13 and 12 < B ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s029315660', 's599394953', 's831217704', 's848739769', 's674639942']
[8908.0, 9204.0, 8940.0, 9052.0, 9128.0]
[23.0, 29.0, 25.0, 23.0, 25.0]
[145, 345, 135, 273, 256]
p03041
u487044104
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.
["from math import log2\n\ndef prob(num, dice, K):\n\ttimes = int(log2(K/num) + 1)\n\tbase = 1/dice\n\tif times < 0:\n\t\ttimes = 0\n\tp = base * pow(0.5,times)\n\treturn p\n\ndef sum_prob(dice, K):\n\tprobabilty = 0\n\tfor i in range(1,dice+1):\n\t\tprobabilty += prob(i, dice, K)\n\treturn probabilty\n\n\ninputs = li...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s304962893', 's600522288', 's767797374', 's890030790', 's957491773', 's968907920', 's597412656']
[3064.0, 3188.0, 3188.0, 3064.0, 3064.0, 3064.0, 3060.0]
[17.0, 19.0, 19.0, 18.0, 17.0, 17.0, 17.0]
[404, 448, 406, 406, 406, 406, 233]
p03041
u489124637
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\nimport math\nAns = 0\n\nif K < N:\n for X in range(1, K+1):\n R = math.log(K/X, 2)\n S = math.ceil(R)\n Ans = Ans + (0.5**S / N)\n Ans = Ans + (N-K)/N\n print(Ans)\n\nif K == N:\n for X in range(1, K+1):\n R = math.log(K/X, 2)\n S = mat...
['Wrong Answer', 'Accepted']
['s329456155', 's449052855']
[3064.0, 3060.0]
[18.0, 18.0]
[523, 121]
p03041
u489762173
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]=chr(ord(s[k])+32)\n\nprint(*s,sep='')", "n,k=map(int,input().split())\ns=list(input())\ns[k-1]=chr(ord(s[k-1])+32)\n \nprint(*s,sep='')"]
['Runtime Error', 'Accepted']
['s874025416', 's844519717']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 90]
p03041
u491539020
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()\n\n\n\nd=a-b+1\nc = list(c)\nprint(c)\nd = c[b-1]\nc[b-1] = d.lower()\n\nc = "".join(c)\nprint(c)', 'a,b=map(int,input().split())\nc = input()\n\n\n\nd=a-b+1\nc = list(c)\nd = c[b-1]\nc[b-1] = d.lower()\n\nc = "".join(c)\nprint(c)']
['Wrong Answer', 'Accepted']
['s689258043', 's873120013']
[2940.0, 2940.0]
[17.0, 17.0]
[127, 118]
p03041
u491762407
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-1]+s[k-1].lower+s[k:])', 'n,k = map(int,input().split())\ns = input()\nprint(s[:k-1]+s[k-1].lower+s[k:])', 'n,k = map(int,input().split())\ns = input()\nprint(s[:k-1]+s[k-1].lower()+s[k:])']
['Runtime Error', 'Runtime Error', 'Accepted']
['s407248141', 's761251971', 's727472907']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[76, 76, 78]
p03041
u494439372
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().split()\nc = list(input()) \nc[int(n[1] - 1)] = c[int(n[1]) - 1].lower()\nprint("".join(c))\n', 'n = input().split()\nc = list(input()) \nc[int(n[1])] = c[int(n[1])].lower()\nprint("".join(c))\n', 'n = input().split()\nc = list(input()) \nc[int(n[1]) - 1] = c[int(n[1]) - 1].lower()\nprint("".join(c))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s294049042', 's572500792', 's282996335']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[101, 93, 101]
p03041
u494514222
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 = s[:k] + s[k].lower() + s[k+1:]\nprint(s)', 'n,k = map(int, input().split())\ns = input()\n\ns = s[:k-1] + s[k-1].lower() + s[k:]\nprint(s)']
['Runtime Error', 'Accepted']
['s551550960', 's468978033']
[2940.0, 2940.0]
[17.0, 19.0]
[88, 90]
p03041
u500897254
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\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'\n\nprint(''.join(s))", "n, k = map(int, input().split())\ns = list(input())\n\nif s[k-1] == 'A':\n s[k-1] = 'a'\nelif s[k-1] == 'B':\n s[k-1] = 'b'\nelse:\n ...
['Runtime Error', 'Accepted']
['s943882546', 's706120235']
[2940.0, 3060.0]
[17.0, 17.0]
[164, 165]
p03041
u501503190
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] = s[k].lower()\nprint(s)', '#!/usr/bin/env python\nimport bisect\nfrom collections import defaultdict\n\ndef main():\n N, K = map(int, input().split())\n S = list(input().strip())\n\n S[K-1] = S[K-1].lower()\n print("".join(S))\n\n\nif __name__ == \'__ma...
['Runtime Error', 'Accepted']
['s069525021', 's581702209']
[2940.0, 3316.0]
[17.0, 20.0]
[73, 243]
p03041
u501952592
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\nfor i in range(N):\n if 2**i > N:\n a = i-1\n b = N - 2**a\n break\nfor j in range(K):\n if 2**j > K:\n c = j-1\n d = K - 2**c\n break\n\nif N <= K:\n print((2**(2*a-c+1)+2**(-c)+3*2**(a-c+1)*b)/3*N)\nelse:\n print((2**(c+1)+2**...
['Runtime Error', 'Accepted']
['s617042592', 's945270125']
[3060.0, 2940.0]
[17.0, 17.0]
[330, 186]
p03041
u505420467
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.
['input();a=sorted(map(int,input().split()));print("{} {} {}".format(a[0],a[-1],sum(a)))', 'n,k = map(int, input().split())\ns = list(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\'\n\nprint("".join(s))\n']
['Runtime Error', 'Accepted']
['s925229537', 's058571861']
[2940.0, 2940.0]
[17.0, 18.0]
[86, 164]
p03041
u505893372
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-1].lower()+S[k:])', 'N,K = map(int,input().split())\nS = input()\n\nif S[K] = A :\n\tS[K] = a\nelif S[K] = B :\n\tS[K] = b\nelif S[K] = C :\n\tS[K] = c\n\nprint(S)', 'N,K = map(int,input().split())\nS = input()\n\nprint(S[:K-1]+S[K-1].lower()+S[K:])\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s537668129', 's728173773', 's457246208']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[79, 129, 80]
p03041
u506587641
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\nif s[k-1] == 'A':\n print(s[:k-1]\u3000+ 'a' + s[k:])\n\nelif s[k-1] == 'B':\n print(s[:k-1] + 'b' + s[k:])\n\nelse:\n print(s[:k-1] + 'c' + s[k:])", "n, k = map(int, input().split())\ns = str(input())\n\nif s[k-1] == 'A':\n s[k-1] = 'a'\n\nelif s[k-1] == '...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s171420909', 's271565722', 's584010613', 's603552638', 's740513398', 's810238228', 's892312736', 's152971638']
[2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0]
[192, 161, 175, 96, 197, 101, 101, 195]
p03041
u508355671
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 = int(s[:2]) > 13\nb = int(s[2:]) > 13\nif a and b:\n print("AMBIGUOUS")\nif not a and not b:\n print("NA")\nif not a and b:\n print("MMYY")\nif a and not b:\n print("YYMM")\n ', 'n, k = map(int,input().split())\ns = input()\nprint("".join([s[i].lower() if i == k-1 else s[i] for i in range(n)]...
['Wrong Answer', 'Accepted']
['s750531137', 's750660613']
[2940.0, 2940.0]
[17.0, 17.0]
[189, 115]
p03041
u513822685
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.
['li = input().split()\nstr = input()\n\n\nfor i in range(0,int(li[0])):\n if i==int(li[1]):\n print(str[i].lower(),end="")\n else:\n print(str[i],end="")', 'li = input().split()\nstr = input()\n\n\nfor i in range(0,int(li[0])):\n if i==int(li[1]):\n print(str[i].lower(),end="")\n else:...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s424332605', 's607812053', 's735032316']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[164, 164, 84]
p03041
u514894322
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 = ''\nfor i in range(len(s)):\n if i == k:\n ans = ans + s[i].lower()\n else:\n ans = ans + s[i]\nprint (ans)", "n,k = map(int,input().split())\ns = str(input())\nans = ''\nfor i in range(len(s)):\n if i == k-1:\n ans = ans + s[i].lower()\n else:\n ...
['Wrong Answer', 'Accepted']
['s789178306', 's568522017']
[2940.0, 2940.0]
[17.0, 17.0]
[163, 165]
p03041
u516554284
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-1]+s[k-1]+s[k:])', 'n,k=map(int,input().split())\ns=input()\nprint(s[:k-1]+s[k-1].lower()+s[k:])\n']
['Wrong Answer', 'Accepted']
['s570974521', 's695410699']
[2940.0, 2940.0]
[17.0, 17.0]
[66, 75]
p03041
u517411077
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\nimport os\n\nN,K = map(int,input().split())\n\n\ncount=[0]*N\n\nprint(count)\nKK=K\ni=0\nwhile KK >= 1:\n i=i+1\n for j in range(KK):\n if j<N:\n count[j]=count[j]+1\n print(j)\n print(count)\n KK=int(KK/2)\n print(i)\n\nsum=0\nfor l in range(N):\n sum=sum +...
['Wrong Answer', 'Accepted']
['s443476975', 's699503135']
[3064.0, 2940.0]
[17.0, 18.0]
[331, 133]
p03041
u518375128
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.
["def main():\n N,K = map(int, input().split())\n S =\tinput()\n if K == 1:\n\tprint(S[0].lower() + S[1:])\n elif K == N:\n\tprint(S[:N-1] + S[N-1].lower())\n else:\n \tprint(S[0:K-1] + S[K-1].lower() + S[K:])\n\nif __name__ == '__main__':\n main()", "def main():\n N,K = map(int, input().split...
['Runtime Error', 'Accepted']
['s414116123', 's859433412']
[2940.0, 3060.0]
[17.0, 17.0]
[254, 270]
p03041
u522266410
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 = input()\nb=int(a[0:2])\nc=int(a[2:4])\nif 0<b<=12 & 0<c<=12:\n print('AMBIGUOUS')\nelif 0<b<=12 & (c>12 or c ==0) :\n print('MMYY') \nelif (b>12 or b==0) & 0<c<=12:\n print('YYMM')\nelse:\n print('NA')", "a = input()\nb=int(a[0:2])\nc=int(a[2:4])\nif 1<=b<=12 & 1<=c<=12:\n print('AMBIGUOUS')\nelif ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s572091470', 's657508683', 's084012677']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[207, 177, 76]
p03041
u522293645
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(s)', 'n,k = map(int,input().split())\ns = list(input())\n\ns[k-1] = s[k-1].lower()\n\nprint(str(s))', "n,k = map(int,input().split())\ns = list(input())\n\ns[k-1] = s[k-1].lower()\n\nprint(''.join(s))"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s826766107', 's928909905', 's614648117']
[2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[83, 88, 92]
p03041
u522949850
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 = list(map(int, input().split()))\nS = input()\n\nB = S[A[1]]\n\nif(B == "A"):\n B = "a"\nelse if(B == "B"):\n B = "b"\nelse:\n B = "c"\n\nS[A[1]] = B\nprint(S)', 'A = list(map(int, input().split()))\nS = input()\n\nC = A[1]\nD = A[0]\nans = ""\n\nB = S[C-1]\n\n\n\nif(B == "A"):\n B = "a"\nelif(B == "B"...
['Runtime Error', 'Accepted']
['s599238657', 's587562629']
[2940.0, 3064.0]
[17.0, 17.0]
[158, 297]
p03041
u524644593
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()\ndir = {'A':'a', 'B':'b', 'C':'c'}\n\nprint(S[0:K-1] + dir[S[K-1]]+ S[K::])\n", "N,K = map(int, input().split())\nS = input()\ndir = {'A':'a', 'B':'b', 'C':'c'}\n\nprint(S[0:K-1] + dir[S[K-1]]+ S[K::])\n"]
['Runtime Error', 'Accepted']
['s543464618', 's424524309']
[2940.0, 2940.0]
[17.0, 18.0]
[117, 117]
p03041
u524870111
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\n\nstdin = sys.stdin\n\nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nns = lambda: stdin.readline().rstrip()\n\n\ns = ns()\ns1 = int(s[:2])\ns2 = int(s[2:])\n\nif s1 == 0 and s2 > 12:\n ans = "NA"\nelif s1 > 12 and s2 == 0:\n ans = "NA"\nelif s1 == 0 and s2 == 0:\n ...
['Wrong Answer', 'Accepted']
['s753467553', 's615795672']
[3064.0, 2940.0]
[17.0, 17.0]
[517, 297]
p03041
u531674264
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())\na = ""\nfor i in range(n):\n if i == k:\n a += s[i].lower()\n else:\n a += s[i]\n\nprint(a)\n\n', 'n, k = list(map(int, input().split()))\ns = str(input())\na = ""\nfor i in range(n):\n if i == k-1:\n a += s[i].lower()\n else:\...
['Wrong Answer', 'Accepted']
['s853539556', 's941174086']
[2940.0, 2940.0]
[17.0, 17.0]
[162, 164]
p03041
u532514769
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,a=map(int,input().split())\nl=list(input())\nif l[a]=='A':\n l[a]='a'\nif l[a]=='B':\n l[a]='b'\nif l[a]=='C':\n l[a]='c'\nk=''.join(l)\nprint(k)", "n,a=map(int,input().split())\nl=list(input())\nif l[a-1]=='A':\n l[a-1]='a'\nif l[a-1]=='B':\n l[a-1]='b'\nif l[a-1]=='C':\n l[a-1]='c'\nk=''.join(l)\nprint(k)"]
['Runtime Error', 'Accepted']
['s688600130', 's201606661']
[3060.0, 3060.0]
[17.0, 17.0]
[141, 153]
p03041
u534308356
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, n = map(str, input().split())\nn = int(n)\ns = list(s)\ns[n] = s[n].lower()\nprint(*s, sep="")', 'hoge, n = map(int, input().split())\ns = list(input())\ns[n] = s[n].lower()\nprint(*s, sep="")', 'hoge, n = map(int, input().split())\ns = list(input())\ns[n-1] = s[n-1].lower()\nprint(*s, sep="")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s178993410', 's484157242', 's340893032']
[2940.0, 3060.0, 2940.0]
[18.0, 20.0, 17.0]
[93, 91, 95]
p03041
u534998883
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().strip().split()]\ns = input().strip()\ns[k-1] = s[k-1].lower()\nprint(s)', 'n, k = [int(x) for x in input().strip().split()]\ns = input().strip()\ns[k-1:k] = s[k-1].lower()\nprint(s[:k-1]+s[k-1].lower()+s[k:])', 'n, k = [int(x) for x in input().strip().split()]\ns = input().strip()\npr...
['Runtime Error', 'Runtime Error', 'Accepted']
['s127475707', 's135646729', 's700640483']
[3316.0, 2940.0, 3064.0]
[21.0, 17.0, 17.0]
[101, 130, 104]
p03041
u536685012
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 = input().split()\nn, k = int(n), int(k)\n\ns = input()\n\ns1 = s[:k - 1]\ns3 = s[:k - 2]\ns2 = s[k:]\n\nif s[k - 1] =='A':\n s3.append('a')\n print(s3 + s2)\nelif s[k - 1] == 'B':\n s3.append('b')\n print(s3 + s2)\nelif s[k - 1] == 'C':\n print(s3 + s2)", 'n,k=map(int, input().split())\nS=input()\ns=S.lowe...
['Runtime Error', 'Accepted']
['s554341225', 's435301881']
[3060.0, 2940.0]
[17.0, 17.0]
[248, 80]
p03041
u537905693
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.
["#!/usr/bin/env python\n# coding: utf-8\n\n\ndef main():\n n, k = list(map(int, input().split()))\n s = input()\n print(s[:k]+s[k].lower()+s[k+1:])\n\n\nif __name__ == '__main__':\n main()\n", '#!/usr/bin/env python\n# coding: utf-8\n\ndef ri():\n return int(input())\n\ndef rl():\n return list(input(...
['Runtime Error', 'Accepted']
['s089429509', 's256717488']
[2940.0, 3060.0]
[17.0, 17.0]
[189, 347]
p03041
u537926507
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\nprint(S)\n', 'N, K = map(int, input().split())\n\nS = list(input())\n\nS[K-1] = S[K-1].lower()\n\nprint("".join(S))\n']
['Wrong Answer', 'Accepted']
['s425722048', 's288689497']
[2940.0, 2940.0]
[17.0, 17.0]
[87, 96]
p03041
u538956308
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'\n elif S[K-1]=='B':\n S[K-1]='b'\n else:\n S[K-1]='c'\nprint(S)", "N,K = map(int,input().split())\nS = input()\nif S[K]=='A':\n S[K]='a'\nelif S[K]=='B':\n S[K]='b'\nelse:\n S[K]='c'\nprint(S)\n", 'N,K=map(int,input().split...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s253811085', 's330701014', 's615304513', 's806597160', 's931168821', 's071831381']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3316.0]
[17.0, 17.0, 17.0, 18.0, 17.0, 21.0]
[142, 126, 84, 135, 135, 172]
p03041
u540761833
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] = S[K-1].upper()\nprint(S)', 'N,K = map(int,input().split())\nS = input()\nS[K-1] = S[K-1].lower()\nprint(S)', 'N,K = map(int,input().split())\nS = input()\nS[K-1].lower()\nprint(S[:K-1]+ S[K-1].lower() + S[K:])\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s484476191', 's533466608', 's853246966']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[75, 75, 97]
p03041
u541610817
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()\nprint(s[:k-1]+s[k].lower()+s[k+1:])', 'n, k = [int(x) for x in input().split()]\ns = input()\nprint(s[:k-1]+s[k-1].lower()+s[k:])\n']
['Runtime Error', 'Accepted']
['s282968787', 's938613899']
[2940.0, 2940.0]
[17.0, 17.0]
[88, 89]
p03041
u543894008
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\ncnt = 0\nS = ""\nfor c in s:\n print(c)\n if cnt == k-1:\n S = S + c.lower()\n else:\n S = S + c\n cnt = cnt + 1\n\nprint(S)', 'n, k = map(int, input().split())\ns = input()\n\ncnt = 0\nS = ""\nfor c in s:\n if cnt == k-1:\n S = S + c.lower()\n else:\n ...
['Wrong Answer', 'Accepted']
['s731283134', 's600140975']
[2940.0, 2940.0]
[17.0, 17.0]
[170, 159]
p03041
u544050502
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]=S.lower()[K-1]\nprint(S)', 'N,K=map(int,input().split())\nS=input()\nS[K-1]=lower(S[K-1])\nprint(S)', 'N,K=map(int,input().split())\nS=list(input())\nS[K-1]=S[K-1].lower()\nS="".join(S)\nprint(S)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s619968671', 's971142895', 's285922124']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[69, 68, 88]
p03041
u546686251
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())\nif S[K - 1] == "A":\n S[K - 1] = "a"\n print("".join(S))\nelif S[K - 1] == "B":\n S[K - 1] = "b"\n print("".join(S))\nelse:\n S[K - 1] = "c"\n print("".join(S))\n', 'N, K = map(int, input().split())\nS = str(input())\nif S[K - 1] == "A":\n S[K -...
['Runtime Error', 'Runtime Error', 'Accepted']
['s243214892', 's367425517', 's375942732']
[3060.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0]
[221, 193, 222]
p03041
u552746936
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\nans = ""\n\nfor i in range(N):\n if i == K:\n ans += S[i].lower()\n else:\n ans += S[i]\n\nprint(ans)\n', 'N, K = map(int, input().split())\nS = input()\n\nans = ""\n\nfor i in range(N):\n if i == K-1:\n ans += S[i].lower()\n else:\n ...
['Wrong Answer', 'Accepted']
['s773263492', 's101819330']
[2940.0, 2940.0]
[18.0, 17.0]
[160, 162]
p03041
u555503067
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()\nret = ""\nfor i in range(len(S)):\n if i == K-1:\n ret += S[i].lower()\n else:\n ret += S[i]\nprint(ret)', 'N,K = map(int, input().split())\nS = input()\nret = ""\nfor i in range(len(S)):\n if i == K-1:\n ret += S[i].lower()\n else:\n ret += S[i]\nprint(ret)']
['Runtime Error', 'Accepted']
['s878340403', 's615690242']
[2940.0, 3060.0]
[17.0, 17.0]
[130, 162]
p03041
u556086333
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\ns_list = list(S)\nprint(s_list)\n\ntmp = s_list[K-1]\ns_list[K-1] = tmp.lower()\n\nS = ''.join(s_list)\n\nprint(S)\n", "N, K = map(int, input().split())\nS = str(input())\n\ns_list = list(S)\nprint(s_list)\n\ntmp = s_list[K-1]\ns_list[K-1] = tmp.lower()\n\nS = ''....
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s444678074', 's580539380', 's891479841', 's520902588']
[3064.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[158, 158, 159, 144]
p03041
u556371693
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], lower()\nprint("s")', 'n, k= map(int, input().split())\ns=input()\ns[k], lower()\nprint(s)', 'n,k=map(int,input().split())\ns=input()\nprint(s[:k-1]+s[k-1].lower()+s[k:])']
['Runtime Error', 'Runtime Error', 'Accepted']
['s519822729', 's530378801', 's063002423']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[66, 64, 74]
p03041
u556589653
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.
['from collections import deque\nN = int(input())\ng = [[] for i in range(N)]\nfor i in range(N-1):\n u,v,w = map(int,input().split())\n u -= 1\n v -= 1\n g[u].append([v,w])\n g[v].append([u,w])\nq = deque([])\nans = [-1] * N\nq.append(0)\nans[0] = 0\nwhile len(q) > 0:\n e = q.popleft()\n for i in g[e]:\n if ...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s011656930', 's882163203', 's033619895']
[9480.0, 2940.0, 3060.0]
[26.0, 17.0, 17.0]
[487, 66, 193]
p03041
u557494880
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] = S[K-1].lower()\nprint(S)', "N,K = map(int,input().split())\nS = input()\ns = []\nfor i in range(N):\n x = S[i]\n if i == K-1:\n if x == 'A':\n x = 'a'\n elif x == 'B':\n x = 'b'\n else:\n x = 'c'\n s.a...
['Runtime Error', 'Accepted']
['s444239774', 's703383540']
[2940.0, 3064.0]
[17.0, 17.0]
[75, 291]
p03041
u558059388
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=list(int(i) for i in input())\nS[K-1] = S[K-1].lower()\nprint(','.join(S))", "N,K=(int(x) for x in input().split())\nS=list(input())\nS[K-1] = S[K-1].lower()\nprint(' '.join(S))", "N,K=(int(x) for x in input().split())\nS=list(int(i) for i in input())\nS[K] = S[K].lower()\npri...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s138035244', 's416217651', 's713941599', 's946083358', 's238407073']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 17.0]
[112, 96, 108, 112, 95]
p03041
u561231954
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.
["from collections import deque,defaultdict\nn=int(input())\nroutes=[tuple(map(int,input().split())) for i in range(n-1)]\n\nedges=defaultdict(list)\nfor v1,v2,dist in routes:\n edges[v1-1].append([v2-1,dist])\n\nans=[0]*n\nq=deque([0])\nwhile q:\n v=q.popleft()\n if ans[v]==0:\n color=[0,1]\n else:\n color=[...
['Runtime Error', 'Accepted']
['s844219589', 's722875502']
[3316.0, 2940.0]
[21.0, 17.0]
[475, 142]
p03041
u561862393
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\nif k == 1:\n sTR = lower(s[0]) + s[1:]\nelse:\n sTR = s[:k-2] + lower(s[k-1]) + s[:k]\n\nprint(sTR)', 'n, k =map(int, input().split())\nSTR = input()\nstr = STR.lower()\n\nif k == 1:\n sTR = str[0] + STR[1:]\nelif k == n:\n sTR = STR[:n-1] + str[n-1]\nelse:\n sTR =...
['Runtime Error', 'Accepted']
['s047271306', 's099458996']
[3060.0, 2940.0]
[17.0, 17.0]
[141, 200]
p03041
u561992253
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 numpy as np\nwords = lambda t : list(map(t, input().split()))\n\n\n\ndef search(i, visited, ns, ans) :\n #print(i+1)\n visited[i] = True\n for next, weight in ns[i]:\n if visited[next] == False:\n if weight % 2 == 0:\n ans[next] = ans[i]\n else:\n ...
['Runtime Error', 'Accepted']
['s377714041', 's604536860']
[21332.0, 21480.0]
[305.0, 320.0]
[797, 163]
p03041
u562015767
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 = str(input())\nSA = list(S)\nD = ["a" , "b" , "c"]\n\nif SA[M] == "A":\n SA[M] = D[0]\nelif SA[M] == "B":\n SA[M] = D[1]\nelse:\n SA[M] = D[2]\n\nM = \'\'.join(SA)\n\nprint(M)', 'N,M = map(int,input().split())\nS = str(input())\nSA = list(S)\nD = ["a" , "b" , "c"]\n\nif SA[...
['Runtime Error', 'Runtime Error', 'Accepted']
['s041807758', 's289136362', 's080443338']
[3060.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[203, 215, 228]
p03041
u562400059
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\na = 0\n\nfor i in range(N):\n j = N - i\n b = 1\n\n while j < K:\n b /= 2\n j *= 2\n\n a += b\n\nprint(a / N)\n', "N, K = map(int, input().split())\nS = input()\n\ns = ''\n\nfor i in range(len(S)):\n if i + 1 == K:\n s += S[i].lower()\n else:\n s +=...
['Wrong Answer', 'Accepted']
['s842384682', 's007616224']
[2940.0, 2940.0]
[17.0, 17.0]
[145, 160]
p03041
u565436116
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_str = input().split(" ")\nS = input()\n\nN = int(num_str[0])\nK = int(num_str[1])\n\nif S[K-1] == "A":\n S[K-1] = "a"\nelif S[K-1] == "B":\n S[K-1] = "b"\nelif S[K-1] == "C":\n S[K-1] = "c"\n \nprint(S)', 'num = input()\nS = input()', 'num_str = input().split(" ")\nS = input()\n\nN = int(num_str[0])\nK = int(...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s267331142', 's477101994', 's499788035', 's621065198', 's664216786', 's690799486', 's842794479', 's960057796', 's264667111']
[3060.0, 2940.0, 3060.0, 2940.0, 2940.0, 3060.0, 3060.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 18.0, 17.0, 18.0, 17.0, 17.0, 17.0]
[197, 25, 219, 45, 84, 137, 215, 83, 223]
p03041
u571128069
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] + lower(s[k-1]) + s[k:])', 'n, k = map(int, input().split())\ns = input()\nprint(s[:k-1] + s[k-1].lower() + s[k:])']
['Runtime Error', 'Accepted']
['s039392827', 's935566759']
[2940.0, 2940.0]
[17.0, 17.0]
[84, 84]
p03041
u571199625
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] = S[k-1].lower()\nprint(S)', 'n, k = map(int,input().split())\nS = input()\nS[k-1] = S[k-1].lower\nprint(S)', 'n, k = map(int,input().split())\nS = input()\nS = S[:k-1] + S[k-1].lower() + S[k:]\nprint(S)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s456889171', 's627020629', 's101629995']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[76, 74, 89]
p03041
u577138895
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\nS[K + 1] = S[K + 1].lower()\nprint(S)', 'N, K = map(int, input().split())\nS = str(input())\n \nprint(S[0 : K - 1] + S.lower()[K - 1 : K] + S[K : ])']
['Runtime Error', 'Accepted']
['s505765412', 's913290683']
[2940.0, 2940.0]
[17.0, 17.0]
[87, 104]
p03041
u578572722
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, N = map(int, input().split())\nS[N-1] = S[N-1].lower()\nprint(S)', 'S, N = map(int, input().split())\nS[N-1] = S[N-1].lower()\nprint()', 'N, K = map(int, input().split())\nS = input()\nprint(S[:K-1] + S[K-1].lower() + S[K:])\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s178764741', 's200291031', 's881038147']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[65, 64, 85]
p03041
u578953945
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]+S[K].lower()+S[-K:])', 'N,K=map(int,input().split())\nS=input()\nK=K-1\nprint(S[0:K]+S[K].lower()+S[K+1:])']
['Runtime Error', 'Accepted']
['s048734620', 's867068134']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 79]
p03041
u579508806
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)=list(map(int, input().split()))\nprint(''.join([c if i!=b-1 else c.lower() for i,c in enumerate(s:=input())]))", "(a,b)=list(map(int, input().split()))\ns=input()\nprint(''.join([c if i!=b-1 else c.lower() for i,c in enumerate(s)]))"]
['Runtime Error', 'Accepted']
['s127715996', 's886050552']
[9100.0, 9172.0]
[23.0, 25.0]
[115, 116]
p03041
u580236524
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.replace(s[k-1], s[k-1].lower())\n\nprint(s)', 'n,k = [int(x) for x in input().split()]\ns = input()\n\nprint(s[:k-1] + s[k-1].lower + s[K:])', 'n,k = [int(x) for x in input().split()]\ns = input()\n\ns[k].lower()\n\nprint(s)', 'n,k = [int(x) for x in input().s...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s034710951', 's640231767', 's760727493', 's935575492', 's077076702']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0]
[96, 90, 75, 77, 92]
p03041
u582084082
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 re\na = input()\nb = input()\nc = re.search('(\\d+)\\s(\\d+)', a)\nd = int(c.group(1))\ne = int(c.group(2))\nresult = ''\nfor n in range(d):\n if n == d - 1:\n r = str(b[n]).lower()\n result += r\n else:\n result += b[n]\nprint(result)\n", "import re\na = input()\nb = input()\nc = re...
['Wrong Answer', 'Accepted']
['s220777308', 's027749555']
[3316.0, 3188.0]
[22.0, 21.0]
[254, 254]
p03041
u587425560
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())\nt=chr(ord(s[k-1])+32)\ns[k-1]=t\nprint(s)', "n,k=map(int,input().split())\ns=list(input())\nt=chr(ord(s[k-1])+32)\ns[k-1]=t\nprint(''.join(s))"]
['Wrong Answer', 'Accepted']
['s356644734', 's435865539']
[2940.0, 2940.0]
[17.0, 17.0]
[84, 93]
p03041
u589432040
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\nans = ""\nfor i in range(N):\n if i == K:\n ans += S[i].lower()\n else:\n ans += S[i]\nprint(ans)', 'N, K = map(int, input().split())\nS = input()\n\nans = ""\nfor i in range(N):\n if i == K-1:\n ans += S[i].lower()\n else:\n ans += S[i]\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s868575183', 's084968385']
[2940.0, 2940.0]
[17.0, 17.0]
[145, 148]
p03041
u591016708
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())\nfor i in range(N):\n S[i] = S[i].lower()\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']
['s579777890', 's413154261']
[2940.0, 2940.0]
[17.0, 17.0]
[111, 92]
p03041
u591293973
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().strip().split()\nK = int(M)\nS = input()\nif K <= int(N):\n print(S[K-1].lower())', 'N,M = input().strip().split()\nK = int(M)\nS = input()\nif K <= int(N):\n print(S[:K-1]+S[K-1].lower()+S[K:])']
['Wrong Answer', 'Accepted']
['s292669174', 's513472501']
[2940.0, 2940.0]
[18.0, 17.0]
[92, 106]
p03041
u591411772
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())\nstring=list(input())\nresult=[]\nfor i in range(n):\n if i==k-1:\n result.append(chr(ord(string[i])+32))\n else:\n result.append(string[i])\n print(''.join(result)) ", "n,k=map(int , input().split())\nstring=list(input())\nresult=[]\nfor i in range(n):\n if i==k-1:\n result...
['Runtime Error', 'Accepted']
['s166707323', 's667902412']
[2940.0, 3060.0]
[17.0, 18.0]
[197, 195]
p03041
u594803920
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()\nk -= 1\nif s[k] == 'A':\n s[k] = 'a'\nelif s[k] == 'B':\n s[k] = 'b'\nelse:\n s[k] = 'c'\nprint(s)", "n, k = map(int, input().split())\ns = list(input())\nk -= 1\nif s[k] == 'A':\n s[k] = 'a'\nelif s[k] == 'B':\n s[k] = 'b'\nelse:\n s[k] = 'c'\nans = ''\nfor i in s...
['Runtime Error', 'Accepted']
['s493065683', 's134155791']
[2940.0, 3060.0]
[17.0, 17.0]
[139, 180]
p03041
u596297663
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()\n\nSL = list(S)\nSL[K] = SL[K].lower()\nans = "".join(SL)\n\nprint(ans)\n\n', 'N, K = map(int,input().split())\n\nS = input()\n\nSL = list(S)\nSL[K] = SL[K].lower()\nans = "".join(SL)\n\nprint(ans)', 'N, K = map(int,input().split())\n\nS = input()\n\nSL = list(S)\nSL[K-1...
['Runtime Error', 'Runtime Error', 'Accepted']
['s825235402', 's996574587', 's474843810']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[112, 110, 114]
p03041
u597017430
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_list = [c for c in S]\nprint(S_list)\n\nif S_list[K-1] == 'A':\n S_list[K-1] = 'a'\nelif S_list[K-1] == 'B':\n S_list[K-1] = 'b'\nelse:\n S_list[K-1] = 'c'\n\nprint ", "N, K = map(int, input().split())\nS = input()\n\nS_list = [c for c in S]\n#print(S_list)\n\nif...
['Wrong Answer', 'Accepted']
['s563408574', 's913784436']
[3060.0, 3064.0]
[17.0, 17.0]
[207, 225]
p03041
u597455618
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 int(s[0:2]) == 0 or int(s[2:4]) == 0:\n print("NA")\nelif 0 < int(s[0:2]) <= 12 and 0 < int(s[2:4]) <= 12 :\n print("AMBIGUOUS")\nelif int(s[2:4]) < 13:\n print("YYMM")\nelse:\n print("MMYY")\n ', 'n, k = map(int, input().split())\ns = input()\ns[k].lower\nprint(s)', 'n, k = map(int, input().spli...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s213016655', 's655617052', 's574336950']
[3060.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[206, 64, 144]
p03041
u598720217
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.
['H,W = map(int,input().split(\' \'))\nN = list(input())\nN[W] = N[W].lower()\nprint("".join(N))', 'H,W = map(int,input().split(\' \'))\nN = list(input())\nN[W-1] = N[W-1].lower()\nprint("".join(N))']
['Runtime Error', 'Accepted']
['s166653002', 's991173112']
[2940.0, 2940.0]
[17.0, 17.0]
[89, 93]
p03041
u599925824
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 = input().split()\ns = list(input())\ns[int(k)] = s[int(k)].lower()\nprint(''.join(s))", "n,k = input().split()\ns = list(input())\ns[int(k)-1] = s[int(k)-1].lower()\nprint(''.join(s))"]
['Runtime Error', 'Accepted']
['s659629692', 's914554242']
[2940.0, 2940.0]
[17.0, 18.0]
[87, 91]
p03041
u600717568
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(str(input()))\nS[K-1]=S[K-1].lower()\n\nm=",".join(S)\nprint(m)', 'N,K=map(int,input().split())\nS=list(str(input()))\nS[K-1]=S[K-1].lower()\nm="".join(S)\nprint(m)\n']
['Wrong Answer', 'Accepted']
['s775949365', 's431423147']
[2940.0, 2940.0]
[17.0, 17.0]
[95, 94]
p03041
u603324902
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\na = 10*int(S[0])+int(S[1])\nb = 10*int(S[2])+int(S[3])\n\nif a>12 and b>12:\n print('NA')\nelif a>12 and 1<=b<=12:\n print('YYMM')\nelif 1<=a<=12 and b>12:\n print('MMYY')\nelse:\n print('AMBIGUOUS')\n", 'n, k = map(int,input().split())\n\np = input()\n\nprint(p[:k-1] + p[k-1].lower() + p[k...
['Runtime Error', 'Accepted']
['s436249835', 's886538056']
[3060.0, 2940.0]
[18.0, 17.0]
[215, 85]
p03041
u606090886
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()\nmae = int(s[:2])\nusiro = int(s[2:])\nif 12 >= mae:\n if 12 >= usiro:\n print("AMBIGUOUS")\n else:\n print("MMYY")\nelif 12 >= usiro:\n print("YYMM")\nelse:\n print("NA")', 's = input()\nif s[0] == 0:\n mae = int(s[1])\nelse:\n mae = int(s[:2])\nif s[2] == 0:\n usiro = ...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s415501091', 's579246423', 's941012572', 's347741324']
[3060.0, 3060.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[198, 289, 65, 215]
p03041
u606523772
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(ord(S[K-1]))\nS[K-1] = chr(ord(S[K-1])+32)\nprint("".join(S))', 'N, K = map(int, input().split())\nS = list(input())\nS[K-1] = chr(ord(S[K-1])+32)\nprint("".join(S))']
['Wrong Answer', 'Accepted']
['s809673583', 's239212402']
[2940.0, 2940.0]
[17.0, 17.0]
[116, 97]
p03041
u606878291
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 -= 1\n\nprint(S[:K] + S[K].lower() + S[K:])\n", "N, K = map(int, input().split(' '))\nS = input()\n\nK -= 1\n\nprint(S[:K] + S[K].lower() + S[K + 1:])\n"]
['Wrong Answer', 'Accepted']
['s057237247', 's959920255']
[2940.0, 2940.0]
[17.0, 16.0]
[93, 97]
p03041
u607075479
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] = str.lower(S[k])\nprint(S)', 'N, K = map(int, input().split())\nS = input()\nS[K-1] = S[K-1].lower()\nprint(S)', 'N, K = map(int, input().split())\nS = input()\nprint(S[0:K-1] + S[K-1].lower() + S[K:])']
['Runtime Error', 'Runtime Error', 'Accepted']
['s215115788', 's401795438', 's046084144']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[76, 77, 85]
p03041
u607729897
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 if i != K else s.lower() for i in range(N)])\n', "N,K = map(int, input().split())\nS = input()\nprint(''.join([S[i]if i+1 != K else S[i].lower() for i in range(N)]))\n"]
['Runtime Error', 'Accepted']
['s290260877', 's299982231']
[2940.0, 2940.0]
[18.0, 17.0]
[99, 114]
p03041
u609255576
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.
['inputstr1 = input().split()\nn = inputstr1[0]\nk = inputstr1[1]\ns = input()\nprint("N:"+n)\nprint("K:"+k)\nprint("S:"+s)\ns_list = list(s)\ns_list[int(k) - 1] = s_list[int(k)-1].lower()\ns = "".join(s_list)\nprint("S:"+s)\n', 'inputstr1 = input().split()\nn = inputstr1[0]\nk = inputstr1[1]\ns = input()\ns_list = lis...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s256641419', 's489265290', 's606487207']
[3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[213, 171, 166]
p03041
u609814378
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\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(str, input().split())\nS = int(input())\n\n\n\n\nnumber = (K-1)\n\nif S[number] == "A":\n S[number] = "a"\nelif S[number] == "B":\n S[n...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s057879074', 's260431396', 's277624595', 's409803466', 's733849928', 's737363786', 's999099844', 's812344610']
[2940.0, 3064.0, 3060.0, 2940.0, 3060.0, 3064.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 18.0, 17.0]
[152, 282, 173, 273, 173, 127, 161, 174]
p03041
u610473220
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] == "A":\n ans = S[:K] + "a" + S[K+1:]\nelif S[K] == "B":\n ans = S[:K] + "b" + S[K+1:]\nelse:\n ans = S[:K] + "c" + S[K+1:]\nprint(ans)', 'N, K = map(int, input().split())\nS=input()\nif S[K-1] == "A":\n ans = S[:K-1] + "a" + S[K:]\nelif S[K-1] == "B":\...
['Runtime Error', 'Accepted']
['s136066461', 's590943281']
[3060.0, 3060.0]
[17.0, 17.0]
[189, 193]
p03041
u615850856
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()\nprint ''.join(x for i,x in enumerate(s) if i != K-1 else x.lower())", "N,K = (int(x) for x in input().split())\ns = input()\nprint(''.join([x if i != K-1 else x.lower() for i,x in enumerate(s) ]))"]
['Runtime Error', 'Accepted']
['s765119942', 's254631306']
[2940.0, 2940.0]
[17.0, 17.0]
[119, 123]
p03041
u616117610
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 = range(m)\ny = range(m)\nn, m = list(map(int, input().split()))\nfor i in range(m):\n x[i], y[i] = list(map(int, input().split()))\n\nz = x.extend(y)\nN = range(n)\nfor i in range(n):\n N[i] = z.count(i+1)\n\nans = 0\nfor i in range(n):\n ans = ans + N.count(i)/(2**i)\nprint(ans)\n', 'n, k = list(map(int, ...
['Runtime Error', 'Accepted']
['s849273222', 's887223300']
[3064.0, 3060.0]
[17.0, 17.0]
[278, 203]
p03041
u616169109
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 = list(input())\n\nif S[K - 1] == 'A':\n S[K - 1] = 'a'\nelif S[K - 1] == 'B':\n S[K - 1] = 'b'\nelse:\n S[K -...
['Runtime Error', 'Accepted']
['s945820446', 's580181083']
[2940.0, 3060.0]
[17.0, 17.0]
[151, 185]
p03041
u617037231
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'\nelif S[K-1] == 'C':\n S[K-1] = 'c'\nprint(S)", "N,K = map(int,input().split())\na = input()\nres = ''\nS = [el for el in a]\nif S[K-1] == 'A':\n S[K-1] = 'a'\nelif S[K-1] == 'B':\n S[K-1] = 'b'\neli...
['Runtime Error', 'Accepted']
['s607546401', 's463499238']
[2940.0, 3064.0]
[18.0, 17.0]
[154, 211]
p03041
u617225232
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# input\na, b = map(int, input().split())\ns = input()\nprint(s[:b-1]+s[b-1:b].lower()+s[b:a]', 'a, b = map(int, input().split())\ns = input()\nprint(s[:b-1]+s[b-1:b].lower()+s[b:a])']
['Runtime Error', 'Accepted']
['s576544802', 's485945114']
[2940.0, 2940.0]
[17.0, 17.0]
[114, 83]
p03041
u619785253
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()\nf = n[:2]\na = n[2:]\n#print(f,a)\nmonth = ['01','02','03','04','05','06','07','08','09','10','11','12']\n#print(type(f))\nif (f in month) & (a in month):\n print('AMBIGUOUS')\nelif (f in month):\n print('MMYY')\nelif (a in month):\n# a in month:\n print('YYMM')\nelse:\n print('NA')", "i = list(m...
['Wrong Answer', 'Accepted']
['s630672085', 's485372634']
[3060.0, 3060.0]
[17.0, 17.0]
[290, 228]
p03041
u623065116
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()\nYYMM, MMYY, ova = False, False, False\n\nif(1 <= int(s[:2]) <= 12):\n MMYY = True\nif(1 <= int(s[3:]) <= 12):\n YYMM = True\n\nif(MMYY and YYMM):\n ova = True\n\nif(ova):\n print(\'AMBIGUOUS\')\nelif(MMYY):\n print("MMYY")\nelif(YYMM):\n print(\'YYMM\')\nelse:\n print(\'NA\')', 'N, K...
['Runtime Error', 'Accepted']
['s410688253', 's947149494']
[3064.0, 2940.0]
[18.0, 17.0]
[286, 89]
p03041
u623687794
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())\nans = 0\nfor i in range(1,n+1):\n if i < k:\n c = i\n d=0\n while c<k:\n c = c*2\n d+=1\n ans -=float((2**d-1)/(n*(2**d)))\nprint(ans)\n', '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] ...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s083106902', 's498697437', 's706402450']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[194, 151, 107]