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 | u780675733 | 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 = input()\nS[:K-1] + S[K-1].lower() + S[K:]', '_, K = map(int, input().split())\nS = input()\n\nprint(S[:K-1] + S[K-1].lower() + S[K:])'] | ['Wrong Answer', 'Accepted'] | ['s709711823', 's526868519'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 85] |
p03041 | u780962115 | 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-even relation\n\n\nn=int(input())\nvisitedlist=[-1 for i in range(n)]\nlists=[tuple(map(int,input().split())) for i in range(n-1)]\nkilist=[[] for i in range(n)]\nfor i in lists:\n kilist[i[0]-1].append(i[1:])\n kilist[i[1]-1].append(i[0:3:2])\nvisitedlist[0]=1\nanslist=[0 for i in range(n)]\n\n\ndef search... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s421593097', 's737715411', 's341861622'] | [3064.0, 3064.0, 2940.0] | [17.0, 18.0, 17.0] | [994, 791, 84] |
p03041 | u784612287 | 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())\n\ndef check_xor(m):\n c = 0\n for x in range(2**m):\n if x ^ x == k:\n c += 1\n else:\n break\n \n if c == 2**m:\n return True\n \n else:\n return False\n\nif check_xor(m) and k<2**m:\n L = ''.join([str(i)*... | ['Wrong Answer', 'Accepted'] | ['s160747824', 's575359063'] | [3060.0, 2940.0] | [17.0, 17.0] | [370, 112] |
p03041 | u788023488 | 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. | ['4 3\nCABA', 'a,b=map(int,input().split())\nb=b-1\ns=input()\nprint(s[0:b].upper()+s[b].lower()+s[b+1:].upper())'] | ['Runtime Error', 'Accepted'] | ['s621550346', 's994648386'] | [2940.0, 2940.0] | [17.0, 17.0] | [8, 95] |
p03041 | u788856752 | 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())\n\nn1 = int(N / 100 % 100)\nn2 = N % 100\n\nif n1 == 0 or n2 == 0:\n print("NA")\nelif n1 > 12:\n print("YYMM")\nelif n2 > 12:\n print("MMYY")\nelif n1 < 12:\n print("AMBIGUOUS")\n', 'N = int(input())\n\nn1 = int(N / 100 % 100)\nn2 = N % 100\n\nif n1 > 12 and n2 > 0:\n print("YYMM")\ne... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s162772191', 's721606614', 's576774750'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [196, 211, 181] |
p03041 | u795323188 | 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 = int(s[:2])\nb = int(s[2:])\nif 1<= a <=12 and 1<=b<=12:\n\tprint("AMBIGUOUS")\nelif 1<=a<=12 and (b ==0 or b>=13):\n\tprint("MMYY")\nelif (a == 0 or a>=13) and 1<=b<=12:\n\tprint("YYMM")\nelse:\n\tprint("NA")', 's = input()\n\na = int(s[:2])\nb = int(s[2:])\nif 1<= a <=12 and 1<=b<=12:\n\tprint("A... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s474084064', 's726090126', 's821147381', 's873346613'] | [3060.0, 3060.0, 3060.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [213, 215, 214, 80] |
p03041 | u796789068 | 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 1<=int(S[:2])<=12 and 13<=int(S[2:]) or int(S[2:])==0:\n print("MMYY")\nelif 1<=int(S[2:])<=12 and (13<=int(S[:2]) or int(S[:2])==0):\n print("YYMM")\nelif 1<=int(S[2:])<=12 and 1<=int(S[:2])<=12:\n print("AMBIGUOUS")\nelif (13<=int(S[2:]) or int(S[2:]))==0 and (13<=int(S[:2]) or int(S[:])==0):... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Time Limit Exceeded', 'Accepted'] | ['s015954084', 's122970752', 's124097923', 's130482985', 's079854680'] | [3064.0, 2940.0, 3316.0, 3060.0, 3064.0] | [17.0, 17.0, 21.0, 2104.0, 17.0] | [327, 322, 144, 222, 179] |
p03041 | u797016134 | 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())\nprint(input().replace(s[k-1], s[k-1].lower()))', 'n,k = map(int, input().split())\ns = input()\nprint(s[:k-1] + s[k-1].lower() + s[k:])'] | ['Runtime Error', 'Accepted'] | ['s136286579', 's021114455'] | [2940.0, 2940.0] | [17.0, 29.0] | [78, 83] |
p03041 | u798260206 | 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 = ord(s[k+1])\nC = chr(int(S)+26)\n\nprint(C)', 'N, K = map(int, input().split())\nS = input()\n \nprint(S[0:K-1] + S[K-1].lower() + S[K:N])'] | ['Runtime Error', 'Accepted'] | ['s339017857', 's246169308'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 88] |
p03041 | u800058906 | 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())\na=input()\nb=list(a)\n\nc=b[K-1]\nb[K-1]='c'.lower()\nprint(''.join(map(str,b)))", "N,K=map(int,input().split())\na=input()\nb=list(a)\n\nc=b[K-1]\nb[K-1]=c.lower()\nprint(''.join(map(str,b)))"] | ['Wrong Answer', 'Accepted'] | ['s370044196', 's347717382'] | [8960.0, 9156.0] | [23.0, 28.0] | [104, 102] |
p03041 | u802662134 | 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-2:])\n', 'N,K = map(int,input().split())\nS = input()\n\nS[K-1].lower()\nprint(S)', 'N,K = map(int,input().split())\nS = input()\nprint(S[:K-1] + S[K-1].lower() + S[K:])'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s556830449', 's852669742', 's167947384'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [85, 67, 82] |
p03041 | u802977614 | 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\nn,k=map(int,input().split())\ns=list(input())\ns[k]=s[k].lower()\nfor i in range(len(s)):\n print(s[i],end="")\n#print()', 'import numpy as np\nn,k=map(int,input().split())\ns=list(input())\ns[k]=s[k].lower()\nfor i in range(len(s)):\n print(s[i],end="")\nprint("")', 'n,k=map(int,input().split()... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s294416265', 's367866531', 's412945432', 's846495520', 's238285121'] | [21404.0, 21680.0, 2940.0, 2940.0, 2940.0] | [339.0, 1425.0, 17.0, 17.0, 17.0] | [135, 136, 119, 84, 88] |
p03041 | u807772568 | 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())\n\na[m] = a[m].remove("A","a").remove("B","b").remove("C","c")\nprint("".join(a))', 'n,m = map(int,input().split())\na = list(input())\n\na[m] = a[m].replace("A","a").replace("B","b").replace("C","c")\nprint("".join(a))\n', 'n,m = map(int,input().split())\na = list(in... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s194741638', 's586583793', 's199435473'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [127, 131, 135] |
p03041 | u809819902 | 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()\nans = [s[:k],s[k].lower(),s[k+1:]]\nprint(''.join(ans))\n\n\n", 'n,k=map(int,input().split())\ns=list(input())\ns[k-1]=s[k-1].lower()\nprint("".join(s))\n'] | ['Runtime Error', 'Accepted'] | ['s576969953', 's332323013'] | [9040.0, 9088.0] | [25.0, 27.0] | [101, 85] |
p03041 | u811132356 | 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=[c for c in s]\nfor i in range(n):\n if i==k and s[i]=='A':\n ls[i]='a'\n elif i==k and s[i]=='B':\n ls[i]='b'\n elif i==k and s[i]=='C':\n ls[i]='c'\nss = ''.join(ls)\nprint(ss)", "n,k=map(int,input().split())\ns=input()\nls=[c for c in s]\nfo... | ['Wrong Answer', 'Accepted'] | ['s764004812', 's616508601'] | [3064.0, 3064.0] | [17.0, 17.0] | [241, 247] |
p03041 | u814986259 | 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=input()\nS[K+1].swapcase()\nprint(S)', 'N,K=input().split()\nS=input()\nS[K].swapcase()\nprint(S)\n', 'N,K=input().split()\nS=input()\nS[K-1].swapcase()\nprint(S)\n', 'N,K=map(int,input().split())\nS=input()\nS[K-1].swapcase()\nprint(S)\n', 'N,K=map(int,input().split())\nS=input()\nS=S[:K-1]+S[... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s262705398', 's275218379', 's482354292', 's887805155', 's870931079'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0] | [56, 55, 57, 66, 83] |
p03041 | u815659544 | 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\nfrom math import log2, ceil\nfrom collections import defaultdict\n\ninput = sys.stdin.readline\n\nN, K = map(int, input().split())\n\nd = defaultdict(int)\n\n\nfor die in range(1,N+1):\n\n if die < K:\n d[ceil( log2( K/die ) )] += 1\n\n else:\n d[0] += 1\n\n\ncumulative = 0\n\nfor powe... | ['Wrong Answer', 'Accepted'] | ['s904293673', 's034553455'] | [3316.0, 2940.0] | [21.0, 17.0] | [468, 167] |
p03041 | u818805087 | 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[K-1])\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(\'\'.join(S))', '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]="... | ['Wrong Answer', 'Accepted'] | ['s608733258', 's495324808'] | [3060.0, 3060.0] | [17.0, 18.0] | [165, 151] |
p03041 | u821251381 | 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\nsa = ""\nfor i in range(len(S)):\n if S[i] == S[int(K)]:\n sa = sa + str(S[i].lower())\n else:\n sa = sa + str(S[i])\nprint(sa)', 'N,K= map(int,input().split())\nS = input()\ns=str("")\nfor i in range(len(S)):\n \n if i == K-1:\n #print(i,S[i].lower()... | ['Runtime Error', 'Accepted'] | ['s324184673', 's477911482'] | [3060.0, 2940.0] | [17.0, 17.0] | [172, 212] |
p03041 | u821262411 | 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=str(input())\na=int(s[:2])\nb=int(s[2:])\n\nif a==0 or b==0:\n print('NA')\nelif a>=1 and a<=12 and b>=1 and b<=12:\n print('AMBIGUOS')\nelif a>=1 and a<=12 and b>=13:\n print('MMYY')\nelif a>=13 and b>=1 and b<=12:\n print('YYMM')\n ", "s=str(input())\na=int(s[:2])\nb=int(s[2:])\n\nif (a==0 or a>=13... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s286123900', 's838084978', 's175918626'] | [3060.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [239, 273, 97] |
p03041 | u821989875 | 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 = list(input())\n\nfor i in range(n):\n if i == k:\n s[i] = s[i].lower()\n break\n \nprint("".join(s))', 'n, k = map(int, input().split())\ns = input()\nprint(s[:k-1] + s[k-1].lower() ... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s328340767', 's637600013', 's424538443'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [82, 140, 84] |
p03041 | u823587639 | 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. | ['\nn = input()\nk = input()\ns = input()\n\nword = s[k-1].lower()\n\nb = s[:k-1]\n\na = s[k:]\n\nnew_s = b + word + a\n\nprint(new_s)\n', '\nn = input()\nk = input()\ns = input()\n\nword = s[k-1].lower()\n\nb = s[:k-1]\n\na = s[k:]\n\nnew_s = b + word + a\n\nprint(new_s)', '\nn, k = input().split()\n#k = input()\ns = ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s644286150', 's777416867', 's920233489', 's391181198'] | [2940.0, 3060.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [120, 119, 132, 142] |
p03041 | u824988704 | 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())\n\ns[k-1] = s[k-1].lower()\nprint(s)', 'n,k = list(map(int, input().split()))\ns = list(str(input()))\n\ns[k-1] = s[k-1].lower()\nprint(s)', 'import functools\ndef a(c0, c1):\n return c0+c1\n\nn,k = list(map(int, input().split()))\ns = list(str(input()))\n\ns[... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s181612304', 's848264484', 's694435414'] | [2940.0, 2940.0, 3700.0] | [17.0, 17.0, 22.0] | [88, 94, 171] |
p03041 | u825378567 | 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=input()\nS[K-1]=S[K-1].lower()\nprint(S)', 'N,K=input().split()\nK=int(K)\nS=input()\nprint(S[:K-1]+S[K-1].lower()+S[K:])'] | ['Runtime Error', 'Accepted'] | ['s877519784', 's401874637'] | [2940.0, 2940.0] | [17.0, 17.0] | [60, 74] |
p03041 | u825440127 | 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()\n\nprint(s[:k-1] + s[k-1].lower() + s[k:])\n', 'a, b = map(int, input().split())\ns = input()\n\nprint(s[0:k-1] + s[k-1].lower() + s[k:a])\n', 'a, b = map(int, input().split())\ns = input()\n\nprint(s[0:k-1] + s[k-1].lower() + s[k, a])\n', 'a, b = map(int, input().split()... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s146405774', 's915804751', 's973984577', 's905000875'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [86, 88, 89, 86] |
p03041 | u825981710 | 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=list(input())\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)\n", 'S=int(input())\n\na=S/100\nb=S%100\n\nif(a>12 and b>12):\n print("NA")\n\nelif(a==0 and b==0):\n print("NA")\n\nelif((a>12 or a==0) ... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s132342751', 's327451653', 's816133900', 's772614078'] | [3060.0, 3060.0, 3316.0, 3060.0] | [17.0, 17.0, 19.0, 19.0] | [165, 301, 226, 182] |
p03041 | u826986938 | 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 sys import stdin\n\nN, K = [int(x) for x in stdin.readline().rstrip().split()]\ninput_str = stdin.readline().rstrip()\nstr = input_str[0]\nfor i in range(1,N):\n if(i==K):\n str = str + input_str[i].lower()\n else:\n str = str + input_str[i]\nprint(str)', 'from sys import stdin\n\nN, K = [int(x) for x in... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s519835974', 's958714292', 's006661822'] | [2940.0, 3060.0, 3316.0] | [17.0, 18.0, 21.0] | [256, 258, 335] |
p03041 | u827141374 | 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 = (int(x) for x in input().split())\nif A <= 5:\n print(0)\nelif A <= 12:\n print(int(B / 2))\nelse:\n print(B)', "N, K = [int(x) for x in input().split()]\nS = input()\nfor i in range(N):\n if i == (K-1):\n print(S[i].lower(), end='')\n else:\n print(S[i], end='')\nprint()"] | ['Wrong Answer', 'Accepted'] | ['s067401057', 's507539148'] | [2940.0, 2940.0] | [17.0, 17.0] | [119, 172] |
p03041 | u829203929 | 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()\nans = []\nfor i,char in enumerate(s):\n if i==k:\n char = char.lower()\n ans.append(char)\n\nprint("".join(ans))', 'n,k = map(int,input().split())\ns = list(input())\nfor i,char in enumerate(s):\n if i==k-1:\n s[i] = char.lower()\n#print(s)\nprint(""... | ['Wrong Answer', 'Accepted'] | ['s348628325', 's964246526'] | [2940.0, 2940.0] | [18.0, 17.0] | [162, 147] |
p03041 | u835482198 | 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', 'n, k = map(int, input().split())\ns = input()\nprint(s[:k-1] + s[k - 1].lower() + s[k:])\n'] | ['Runtime Error', 'Accepted'] | ['s255611980', 's124235519'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 87] |
p03041 | u840807329 | 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\ns = input()\ns = s[:4]\na = s[:2]\nb = s[2:]\n\nif (int(a) > 12 and int(b) > 12) or int(b) == 0 or int(a) == 0:\n\t\n\tprint("NA")\n\tsys.exit()\n\t\nif 0 < int(a) <= 12 and 0 < int(b) <= 12:\n\tprint("AMBIGUOUS")\n\n\t\nif int(a) > 12 and 0 < int(b) <= 12:\n\n\tprint("YYMM")\n\tsys.exit()\n\nif 0 <... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s093116325', 's152814520', 's440509658', 's422396601'] | [3064.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [363, 104, 133, 108] |
p03041 | u840958781 | 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())\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("".join(s))\n'] | ['Runtime Error', 'Accepted'] | ['s915164850', 's893819610'] | [2940.0, 2940.0] | [17.0, 17.0] | [132, 148] |
p03041 | u841021102 | 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().split(" ")\ncommand = x[1]\nN = x[0]\nN = command.lower(x[1])\nprint(N)', 'n,k=input().split()\ns = input()\n \ns = list(s)\ns[k - 1] = s[k-1].lower()\ns = "".join(s)\nprint(s)', 's = int(input())\na = s % 100\nb = ((s-a) % 100)\nif a <= 31 and b <= 12:\n print("YYMM")\nelif a <= 12 and b <= 31:\n print... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s514727131', 's616305081', 's644134166', 's683014974', 's442391538'] | [8860.0, 9092.0, 9056.0, 8904.0, 9004.0] | [24.0, 27.0, 23.0, 21.0, 28.0] | [79, 95, 224, 80, 104] |
p03041 | u842118372 | 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())\nss=s[k-1]\n\nss=ss.lower()\n#print(ss)\ns[k-1] = ss\nprint(s)', 'n,k=map(int,input().split())\ns=list(input())\nss=s[k-1]\n\nss=ss.lower()\n#print(ss)\ns[k-1] = ss\nprint("".join(s))'] | ['Wrong Answer', 'Accepted'] | ['s736671763', 's755899955'] | [2940.0, 2940.0] | [18.0, 17.0] | [101, 110] |
p03041 | u842878495 | 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(n) for n in input().split()]\nS = input()\nprint(S[:K]+S[K].lower()+S[K+1:])', 'N , K = [int(n) for n in input().split()]\nS = input()\nprint(S[:K]+S[k].lower()+S[K:])', 'N , K = [int(n) for n in input().split()]\nS = input()\nprint(S[:K-1]+S[K-1].lower()+S[K:])'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s973753467', 's996327938', 's025595659'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [87, 85, 89] |
p03041 | u847605090 | 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 n:\n\tif i==k:\n if i=='A':\n i='a'\n elif i=='B':\n i='b'\n elif i=='C':\n i='c' \nprint(i)\n ", "n,k=map(int,input().split())\nS=list(input())\ns=S[k-1].lower()\nS[k-1]=s\nlst=''.join(S)\nprint(lst)"] | ['Runtime Error', 'Accepted'] | ['s221101935', 's352191322'] | [2940.0, 2940.0] | [17.0, 18.0] | [197, 96] |
p03041 | u848263468 | 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(input())\na.remove(" ")\nn=int(a[0])\nk=int(a[1])\n\ns=list(input())\nstr=""\n\ns[k]=s[k].lower()\nprint(str.join(s))\n', 'a=list(input())\na.remove(" ")\nn=int(a[0])\nk=int(a[1])\nif(k>n):\n exit()\n#n=int(input())\n#k=int(input())\ns=list(input())\nstr=""\n\ns[k]=s[k].lower()\nprint(str.join(s))\n#print(s... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s177321698', 's416243264', 's846825538', 's101404836'] | [2940.0, 3064.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 16.0] | [116, 378, 189, 85] |
p03041 | u848874534 | 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\npat = r'[0-9]+'\n\nInput_num = input()\nInput_cou = input()\n\nnum_list = re.findall(pat, Input_num)\nnum = int(num_list[1])\n\nprint(Input_cou[:num] + Input_cou[num-1].lower() + Input_cou[num:])\n", 'Input_num = input().split()\nInput_cou = input()\n\nnum = int(Input_num[1])\n\nprint(Input_cou[:num-1] + I... | ['Wrong Answer', 'Accepted'] | ['s232465923', 's812873152'] | [3188.0, 2940.0] | [20.0, 17.0] | [198, 143] |
p03041 | u849433300 | 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())\t\nS = input()\nS = S.replace(S[K],S[K].lower(),1)\nprint(S)', 'N, K = map(int,input().split())\t\nSe = input()\n\nS = S.replace(S[K-1],S[K-1].lower())\nprint(S)', 'N, K = map(int,input().split())\t\nS = input()\n\n#print(S[K-1])\nS = (S[:K-2]+S[K-1].lower()+S[K:]\nprint(S)', 'N, K = m... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s017925006', 's572067675', 's698657180', 's996959761', 's584708088'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [88, 92, 103, 103, 108] |
p03041 | u849486571 | 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 s in range(len(S)):\n if s == K:\n print(S[s].lower(), end="")\n else:\n print(S[s], end="")\n\nprint("")\n', 'N,K = map(int, input().split())\nS = input()\nfor s in range(len(S)):\n if s == K-1:\n print(S[s].lower(), end="")\n else:\n... | ['Wrong Answer', 'Accepted'] | ['s990336889', 's387104894'] | [2940.0, 2940.0] | [17.0, 17.0] | [168, 170] |
p03041 | u850390157 | 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())\ngraph = {}\nroot = -1\nfor n in range(N-1):\n u, v, w = map(int, input().split())\n u -= 1\n v -= 1\n\n if root == -1:\n root = u\n if u not in graph:\n graph[u] = {}\n if v not in graph:\n graph[v] = {}\n graph[u][v] = w\n graph[v][u] = w \n\nanswer =... | ['Runtime Error', 'Accepted'] | ['s575499300', 's149861311'] | [3064.0, 2940.0] | [17.0, 17.0] | [569, 92] |
p03041 | u854229617 | 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()\ncount = 1\nfor x in S:\n if count == K :\n print(x.lower(),end="")\n continue\n print(x,end="")\n count += 1\nprint()\n', 'N,K = map(int,input().split())\nS = input()\ncount = 1\nfor x in S:\n if count == K :\n print(x.lower(),end="")\n ... | ['Wrong Answer', 'Accepted'] | ['s332982566', 's729611761'] | [2940.0, 2940.0] | [17.0, 17.0] | [177, 196] |
p03041 | u855665975 | 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 \nprint(c[:b-1] + c[b-1].lower() + c[b:]', 'a, b = map(int, input().split())\nc = input()\n \nprint(c[:b-1] + c[b-1].lower() + c[b:])'] | ['Runtime Error', 'Accepted'] | ['s950707790', 's597296235'] | [2940.0, 2940.0] | [16.0, 17.0] | [85, 86] |
p03041 | u859897687 | 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=input()\nans=""\nfor i in range(n):\n if k+1==i:\n ans+=str.lower(s[i])\n else:\n ans+=s[i]\nprint(ans)', 'n,k=map(int,input().split())\ns=input()\nans=""\nfor i in range(n):\n if k+1==i:\n ans+=str.lower(s[i])\n else:\n ans+=s[i]\nprint(ans)', 'n,k=map(int,input().split())\ns=i... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s290230607', 's479551856', 's997975412'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [126, 135, 135] |
p03041 | u861223045 | 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 YorM(x): \n #1...YorM ... | ['Wrong Answer', 'Accepted'] | ['s725361931', 's081611001'] | [3064.0, 2940.0] | [17.0, 17.0] | [4133, 419] |
p03041 | u861466636 | 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\n \nN, K = map(int, input().split())\n \ndef get_x(n, K):\n if n >= K:\n return 0\n else:\n x_raw = np.log2(K) - np.log2(n)\n return np.ceil(x_raw)\n\ndef get_prob(n, K):\n x = get_x(n, K)\n if x == 0:\n return 1\n else:\n return (1/2)**x\n \nans... | ['Wrong Answer', 'Accepted'] | ['s661368634', 's543758469'] | [21764.0, 2940.0] | [320.0, 17.0] | [364, 85] |
p03041 | u864276028 | 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 = 0\nwhile N<1 or N>50:\n\tN = int(input(\'N: \'))\n if N<1 or N>50:\n print(\'1 <= N <= 50\')\nK = 0\nwhile K<1 or K>N:\n K = int(input(\'K: \'))\n if K<1 or K>N:\n print(\'1 <= K <= N\')\nS = \'\'\nwhile len(S) != N:\n S = input(\'S: \')\n if len(S) != N:\n print("Length doesn\'t Match")\n for ... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s364918215', 's482312314', 's562957825', 's003114201'] | [2940.0, 3060.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [599, 290, 40, 112] |
p03041 | u867848444 | 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=list(S)\na=s[k-1]\na=a.lower()\ns[k-1]=a\nprint(s)\n', 'n,k=map(int,input().split())\ns=list(input())\na=s[k-1]\na=a.lower()\ns[k-1]=a\nprint(s)', "n,k=map(int,input().split())\ns=list(input())\n\ns[k-1]=s[k-1].lower()\nprint(*s,sep='')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s833313417', 's927636837', 's569941021'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [88, 83, 104] |
p03041 | u868628468 | 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()\na = S[K-1]\nS[K-1] = a.lower()\nprint(S)', 'N, K = map(int, input().split())\nS = input()\na = S[K-1].lower()\nA = S[0:K-1] + a + S[K:]\nprint(A)'] | ['Runtime Error', 'Accepted'] | ['s511655848', 's422417175'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 97] |
p03041 | u870062840 | 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\ndef check_YYMMorMMYY(str_date):\n str1=str_date[:2]\n str2=str_date[2:]\n num1=int(str1)\n num2=int(str2)\n # if 1<=num1<=12 and 1<=num2<=12: \n # print("AMBIGUOUS") \... | ['Wrong Answer', 'Accepted'] | ['s665507546', 's027823871'] | [3060.0, 3064.0] | [18.0, 17.0] | [1386, 447] |
p03041 | u870518235 | 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(sum(S))', 'N, K = map(int, input().split())\nS = list(input())\nS[K-1] = S[K-1].lower()\nprint("".join(S))'] | ['Runtime Error', 'Accepted'] | ['s676765406', 's509142843'] | [9052.0, 9040.0] | [23.0, 28.0] | [88, 92] |
p03041 | u875028418 | 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=s.pop(k-1)\ns.insert(k-1,t.lower())\nprint("".join(s)', 'a=int(input())\nif(0<a%100<13):\n if(0<a//100<13):\n print("AMBIGUOUS")\n else:\n print("MMYY")\nelse:\n if(0<a//100<13):\n print("YYMM")\n else:\n print("NA")\n', 'n,k=map(int,input().spl... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s022764970', 's238143370', 's610145417', 's710761551', 's775948763', 's954232857'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [16.0, 17.0, 17.0, 17.0, 17.0, 18.0] | [98, 174, 84, 76, 82, 99] |
p03041 | u879036323 | 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\nif s[k] is 'A':\n\to = s[:k] + 'a' +s[k:] \nelif s[k] is 'B':\n\to = s[:k] + 'b' +s[k:] \nelif s[k] is 'C':\n\to = s[:k] + 'c' +s[k:] \n\nprint(o)\n", "n, k = map(int, input().split())\n\ns = (input())\n\nif s[k-1] is 'A':\n\to = s[:k-1] + 'a' +s[k-1:] \nelif s[k-1... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s148742796', 's165567679', 's265258956', 's942204424', 's720747646'] | [3060.0, 3064.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [186, 203, 141, 137, 198] |
p03041 | u882370611 | 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.replace(s[k],s[k].lower()))\n', 'N,K = map(int,input().split())\nS = input()\nprint(S[:K-1] + S[K-1].lower() + S[K:])\n'] | ['Runtime Error', 'Accepted'] | ['s772430332', 's647791951'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 83] |
p03041 | u882858304 | 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()\nS1=int(S[0:2])\nS2=int(S[2:4])\n#print(S1,S2)\nif S1==0 and S2==0:print("NA");exit()\nif S1==0:print("YYMM");exit()\nif S2==0:print("MMYY");exit()\nif S1>12 and S2>12:print("NAa");exit()\nif S1>12:print("YYMM");exit()\nif S2>12:print("MMYY");exit()\nprint("AMBIGUOUS")', 'N,K=map(int,input().split())\nS=inp... | ['Wrong Answer', 'Accepted'] | ['s080340083', 's376267367'] | [3064.0, 2940.0] | [17.0, 17.0] | [269, 88] |
p03041 | u883040023 | 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())\nprint(input().replace(s[k-1],s[k-1].lower()))', 'S = int(input())\n\nif 0 < S // 100 <= 12 and 0 < S % 100<= 12:\n print("AMBIGUOUS")\nelif 0 < S // 100 <= 12:\n print("MMYY")\nelif 0 < S % 100 <= 12:\n print("YYMM")\nelse :\n print("NA")', 'N , K = map(int , input().split(... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s145650224', 's413347993', 's764773429'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [76, 192, 89] |
p03041 | u886902015 | 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'] | ['Runtime Error', 'Accepted'] | ['s383501058', 's590852216'] | [9132.0, 9036.0] | [20.0, 24.0] | [72, 75] |
p03041 | u888933875 | 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() ', "n,k=map(int,input().split())\ns=list(input())\ns[k-1]=s[k-1].lower() \nprint(''.join(s)) "] | ['Wrong Answer', 'Accepted'] | ['s263220516', 's164804542'] | [9144.0, 9132.0] | [28.0, 27.0] | [67, 86] |
p03041 | u889344512 | 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] == "A":\n s=s[0:k]+"a"+s[k+1:n]\nelif s[k] == "B":\n s=s[0:k]+"b"+s[k+1:n]\nelse:\n s=s[0:k]+"c"+s[k+1:n]\nprint(s)', 'n,k = map(int,input().split())\ns = input()\n \nif s[k-1] == "A":\n s=s[0:k-1]+"a"+s[k:n]\nelif s[k-1] == "B":\n s=s[0:k-1]+"b"+s[k:n]\nels... | ['Runtime Error', 'Accepted'] | ['s909971928', 's646260661'] | [3060.0, 3060.0] | [17.0, 17.0] | [164, 169] |
p03041 | u894953648 | 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 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())\nk-=1\n\nif s[k]=="A":\n s[k]="a"\nelif s[k]=="B":\n s[k]="b"\nelse:\n s[k]="c"\n\nprint("".join(s))'] | ['Runtime Error', 'Accepted'] | ['s615644081', 's010261206'] | [2940.0, 3060.0] | [17.0, 17.0] | [123, 144] |
p03041 | u898058223 | 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]+str.lower(s[k-1])+s[k:])', 'n,k=map(int,input().split())\ns=input()\nprint(s[:k-1]+str.lower(s[k-1])+s[k:])'] | ['Wrong Answer', 'Accepted'] | ['s706395564', 's266148039'] | [2940.0, 2940.0] | [17.0, 18.0] | [75, 77] |
p03041 | u898967808 | 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]= str.lower(s[k-1])\n"".join(s)uu', 'import math\nn,k = map(int,input().split())\n\npi = 0\nfor i in range(1,n+1):\n need = math.ceil(math.log(k/i,2)) \n if need > 0:\n pi += (1/2) ** need\n else :\n pi +=1 \nprint(pi/n) ', 'n,k = map(int,inpu... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s367411934', 's946250636', 's420902125'] | [2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [87, 192, 92] |
p03041 | u898999125 | 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)if s[k-1] == 'A':\n s[k-1] = '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 ... | ['Runtime Error', 'Accepted'] | ['s427591564', 's365730755'] | [2940.0, 3060.0] | [17.0, 17.0] | [172, 157] |
p03041 | u900688325 | 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 = input()\n\nmojiretu_list = [0 for _ in range(N)]\nfor i in range(N):\n mojiretu_list[i] = string[i]\n\nif mojiretu_list[k] == 'A':\n mojiretu_list[k] = 'a'\n\nif mojiretu_list[k] == 'B':\n mojiretu_list[k] = 'b'\n\nif mojiretu_list[k] == 'C':\n mojiretu_list[k] =... | ['Runtime Error', 'Accepted'] | ['s645479951', 's286707434'] | [3064.0, 3064.0] | [17.0, 17.0] | [377, 389] |
p03041 | u901850884 | 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. | ['\nn,k=(int(x) for x in input().split())\ns=list(input())\nfor i in range(n):\n if i==k:\n s[i]=s[i].lower()\nstr_s="".join(s)\nprint(str_s)\n\n \n \n ... | ['Wrong Answer', 'Accepted'] | ['s387547415', 's893233872'] | [9040.0, 9052.0] | [32.0, 26.0] | [428, 196] |
p03041 | u902462889 | 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. | ['\ninputstr1 = input().split()\nn = inputstr1[0]\nk = inputstr1[1]\ns = input()\n\nk = int(k)\nmoji = s[(k-1):k] \nmoji = str.lower(moji) \ns = s[:(k-1)] + moji + s[k:] \nk = str(k)\n\nprint("N:" + n)\nprint("K:" + k)\nprint("S:" + s)', '\ninputstr1 = input().split()\nn = inputstr1[0]\nk = input... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s094244553', 's885647175', 's126146739'] | [3064.0, 3064.0, 3060.0] | [17.0, 17.0, 17.0] | [330, 330, 291] |
p03041 | u905582793 | 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())\nk=int(input())\ns[k-1]=s[k-1].lower()\nprint(*s,sep="")', 'n,k=int(input())\ns=input()\ns[k-1]=s[k-1].lower()\nprint(*s,sep="")', 's=input()\nk=int(input())\nx=s[k-1]\ny=x.lower()\nprint(s.replace(x,y))', 'n,k=map(int,input().split())\ns=input()\ns[k-1]=s[k-1].lower()\nprint(*s,sep="")', 'n,k=map(int... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s595683118', 's752751603', 's787358133', 's859609660', 's202292094'] | [2940.0, 2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0, 19.0, 17.0] | [69, 65, 67, 77, 83] |
p03041 | u907529693 | 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. | ["try:\n s = input()\n\n f = int(s[:2])\n b = int(s[2:])\n\n if f != 0:\n if b != 0:\n if f > 12:\n print('YYMM')\n else:\n print('AMBIGUOUS')\n else:\n print('NA')\n else:\n print('NA')\n\nexcept EOFError:\n pass", "n... | ['Wrong Answer', 'Accepted'] | ['s154466321', 's388686843'] | [2940.0, 2940.0] | [17.0, 17.0] | [295, 104] |
p03041 | u912179452 | 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(S)\nprint(s[K+1].lower())\n', 'N, K = map(int, input().split())\nS = input()\n\ns = list(S)\nprint(s[K-1].lower())\n', "N, K = map(int, input().split())\nS = input()\n\ns = list(S)\ns[K-1] = s[K-1].lower()\nprint(''.join(s))\n"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s476559793', 's761975083', 's484777211'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [80, 80, 100] |
p03041 | u916787248 | 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#S[N-1] = S[N-1].lower\n\nprint(S)', "N, K = map(int, input().split())\nS = input()\n\nt = S.lower()\nanswer = ''\n\nfor i in range(N):\n if i == K-1:\n answer = answer + t[i]\n else:\n answer = answer + S[i]\n\nprint(answer)"] | ['Wrong Answer', 'Accepted'] | ['s995016916', 's073453958'] | [2940.0, 2940.0] | [17.0, 18.0] | [78, 183] |
p03041 | u919633157 | 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()\naa=int(s[:2])\nbb=int(s[3:])\nif 0<aa<=12 and 0<bb<=12: ans='AMBIGUOUS'\nelif 0<bb<=12: ans='YYMM'\nelif 0<aa<=12: ans='MMYY'\nelse: ans='NA'\nprint(ans)", "n,k=map(int,input().split())\ns=list(input())\ns[k-1]=s[k-1].lower()\nprint(''.join(s))"] | ['Runtime Error', 'Accepted'] | ['s218050086', 's391335272'] | [2940.0, 2940.0] | [17.0, 17.0] | [157, 84] |
p03041 | u920032768 | 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\nfrom functools import reduce\n\nN, K = map(int, input().split())\np = 0\ndnms = []\n\n\ndef calc_p(n, c):\n return 1/n * pow(1/2, c)\n\n\ndef calc_dnm(n, c):\n return n * 2 ** c\n\n\ndef calc_lcm(ns):\n return reduce(lcm, ns, 1)\n\n\ndef lcm(x, y):\n return (x * y) // math.gcd(x, y)\n\n\nfor ... | ['Runtime Error', 'Accepted'] | ['s178466383', 's489102176'] | [3668.0, 2940.0] | [23.0, 17.0] | [549, 92] |
p03041 | u920103253 | 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\nans=s[:k-1]+s[k-1].lower()+s[k:]', 'n,k=[int(x) for x in input().split()]\ns=input()\n \nans=s[:k-1]+s[k-1].lower()+s[k:]\n\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s680378079', 's541487997'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 94] |
p03041 | u921773161 | 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. | ["\u3000l = list(map(int,input().split()))\nN = l[0]\nK = l[1] \nS = input()\nlist_S = list(S)\nif list_S[K-1] == 'A':\n list_S[K-1] = 'a'\nelif list_S[K-1] == 'B':\n list_S[K-1] = 'b'\nif list_S[K-1] == 'C':\n list_S[K-1] = 'c'\nL = ''.join(list_S)\nprint(L)\n", 'N, M = map(int, input().split())\nX = [0] * M\... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s077472077', 's944207509', 's455950337'] | [3064.0, 3064.0, 3060.0] | [18.0, 17.0, 17.0] | [252, 470, 249] |
p03041 | u921811474 | 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 = [i for i in input()]\nS[K-1] = S[K].lower()\nprint("".join(S))', 'N, K = map(int,input().split())\nS = [i for i in input()]\nS[K] = S[K].lower()\nprint("".join(S))', 'N, K = map(int,input().split())\nS = [i for i in input()]\nS[K-1] = S[K-1].lower()\nprint("".join(S))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s427294713', 's720370684', 's024564983'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [96, 94, 98] |
p03041 | u924828749 | 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\nk -= 1\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 = [int(x) for x in input().split()]\ns = input()\n \nk -= 1\ns = list(s)\n\nif s[k] == "A":\n s[k] = "a"\nelif s[k] == "B":\n s[k] = "b... | ['Runtime Error', 'Accepted'] | ['s394146750', 's239549398'] | [8844.0, 9068.0] | [28.0, 26.0] | [161, 184] |
p03041 | u926393759 | 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:])'] | ['Runtime Error', 'Accepted'] | ['s245235169', 's586627835'] | [2940.0, 2940.0] | [18.0, 17.0] | [78, 80] |
p03041 | u931462344 | 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()\nans = s[:k-1] + s[k-1].lower() + s[k-1:]\nprint(ans)', 'n, k = map(int, input().split())\ns = input()\nans = s[:k-1] + s[k-1].lower() + s[:k-1]\nprint(ans)', 'n, k = map(int, input().split())\ns = input()\nans = s[:k-1] + s[k-1].lower() + s[k:]\nprint(ans)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s362407722', 's900784662', 's128009109'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [96, 96, 94] |
p03041 | u932719058 | 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 = list(S)\nS_list[K-1] = S_list[K-1].lower()\nprint(S_list)\n', "N, K = map(int,input().split())\nS = list(input())\nS[K-1] = S[K-1].lower()\nprint(''.join(S))\n"] | ['Wrong Answer', 'Accepted'] | ['s506985359', 's376540654'] | [2940.0, 2940.0] | [17.0, 17.0] | [110, 92] |
p03041 | u935984175 | 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\nfrom operator import itemgetter\n\n\ndef solve():\n N, M = map(int, input().split())\n xy_dict = defaultdict(int)\n xy = [[] for _ in range(N)]\n for _ in range(M):\n x, y, z = map(lambda j: int(j)-1, input().split())\n xy_dict[x] += 1\n xy_dict[y]... | ['Runtime Error', 'Accepted'] | ['s331426799', 's817110233'] | [3316.0, 3060.0] | [21.0, 17.0] | [948, 193] |
p03041 | u941284420 | 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())\nk-=1\nif s[k]=="A":\n s[k]="a"\nelif s[k]=="B":\n s[k]="b"\nelif s[k]=="C":\n s[k]="c"\nelse\nprint(s)', 'n,k=map(int,input().split())\ns=str(input())\nk-=1\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,... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s414340061', 's717546737', 's782284109', 's212304593'] | [2940.0, 3060.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 17.0] | [141, 137, 131, 152] |
p03041 | u943294442 | 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())\nmap=input()\n\ns = list(map)\n\n\nx=s[k-1].lower()\n\ns.pop(k-1)\ns.insert(k-1,x)\n\nprint(" ".join(s))', 'n,k=map(int,input().split())\nmap=input()\n\ns = list(map)\n\n\nx=s[k-1].lower()\n\ns.pop(k-1)\ns.insert(k-1,x)\n\nprint(" ".join(s))', 'n,k=map(int,input().split())\nmap=input()\n\... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s102369442', 's318434969', 's197763722'] | [3060.0, 3060.0, 3060.0] | [17.0, 18.0, 17.0] | [122, 122, 121] |
p03041 | u944404180 | 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()\nanswer = 0\nprint(type(S))\n\nif S[K-1] == 'A':\n S = S[:K-1] + 'a' + S[K:]\n print(S)\nelif S[K-1] == 'B':\n S = S[:K-1] + 'b' + S[K:]\n print(S)\nelif S[K-1] == 'C':\n S = S[:K-1] + 'c' + S[K:]\n print(S)", "N,K = map(int,input().split())\nS = input()\n... | ['Wrong Answer', 'Accepted'] | ['s650999471', 's524389282'] | [3064.0, 3064.0] | [18.0, 17.0] | [256, 242] |
p03041 | u945419374 | 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()\nfirst=int(s[0]+s[1])\nsecond=int(s[2]+s[3])\nif 1<=first<=12 and 1<=second<=12:\n\tprint("AMBIGUOUS")\nelif 1<=first<=12 and (second==0 or second>=13):\n\t\tprint("MMYY")\nelif (first==0 or first>=13) or 1<=second<=12:\n\t\tprint("YYMM")\nelse:\n\t\tprint("NA")', 'n,k=map(int,input().split())\ns=input()\ni... | ['Runtime Error', 'Accepted'] | ['s754280836', 's006949707'] | [3064.0, 3060.0] | [17.0, 17.0] | [255, 165] |
p03041 | u945761460 | 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())\nif s[b]=="A":\n s[b]=="a"\nif s[b]=="B":\n s[b]=="b"\nif s[b]=="C":\n s[b]=="c"\nprint(s)', 'a,b=map(int, input().split())\ns=str(input())\nb=b-1\nslist=list(s)\nif slist[b]=="A":\n slist[b]="a"\nif slist[b]=="B":\n slist[b]="b"\nif slist[b]=="C":\n slist[b]="c"\ns... | ['Runtime Error', 'Accepted'] | ['s241716461', 's206159851'] | [9144.0, 9152.0] | [28.0, 30.0] | [131, 189] |
p03041 | u947375463 | 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(''.join(S))\n", "N, K = map(int, input().split())\nS = list(input())\nS[K - 1] = S[K - 1].lower()\nprint(''.join(S))\n"] | ['Runtime Error', 'Accepted'] | ['s152218799', 's126546029'] | [2940.0, 2940.0] | [17.0, 17.0] | [98, 97] |
p03041 | u953020348 | 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. | ['Nstr,Kstr=input().split()\nS=input()\nN=int(Nstr)\nK=int(Kstr)-1\n#print(X)\nans=""\ni=0\nfor v in S:\n\tif(K==i):\n\t\tif (S[K]=="A"):\n\t\t\tprint(ans)\n\t\t\tans=ans+"a"\n\t\tif (S[K]=="B"):\n\t\t\tans=ans+"b"\n\t\tif (S[K]=="C"):\n\t\t\tans=ans+"c"\n\telse:\n\t\tans=ans+v\n\ti=i+1\nprint(ans)', 'Nstr,Kstr=input()... | ['Wrong Answer', 'Accepted'] | ['s886780861', 's466943440'] | [3064.0, 3064.0] | [17.0, 17.0] | [255, 241] |
p03041 | u957957759 | 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()\nx=s.replace(s[k-1],s[k-1].upper())\nprint(x)', 'n,k=input().split()\nk=int(k)\nx=n.replace(n[k-1],n[k-1].upper())\nprint(x)', 'n,k=map(int,input().split())\ns=input()\nprint(s.replace(s[k-1],s[k-1].upper()))', 'n,k=map(int,input().split())\ns=input()\ns=s[:k-1]+s[k-1].lower()+... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s360707204', 's439329343', 's791109307', 's250487902'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 16.0, 17.0] | [82, 72, 78, 78] |
p03041 | u959225525 | 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()\ns1=int(s[0:2])\ns2=int(s[2:4])\n\nif 0<s1<13 and 0<s2<13:\n print("AMBIGUOUS")\nelif 0<s1<13:\n print("MMYY")\nelif 0<s2<13:\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'] | ['s764735120', 's354550309'] | [3060.0, 2940.0] | [17.0, 17.0] | [173, 84] |
p03041 | u959421160 | 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 = list(S)\nS[K-1] = S[K-1].lower()\nprint(''.join(S)", 'N, K = input().split()\nN = list(N)\nN[int(K)] = N[int(K)].lower()\nprint(N)\n', 'N, K = input().split()\nN[K] = N[K].lower()\nprint(N)\n', 'N, K = input().split()\nN[int(K)] = N[int(K)].lower()\nprint(N)\n', 'N, K... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s013813017', 's103054709', 's109786748', 's224671393', 's294664047', 's507924244', 's552885751', 's825049060', 's361998485'] | [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, 19.0, 17.0, 17.0, 17.0] | [96, 74, 52, 62, 88, 83, 84, 79, 97] |
p03041 | u960653324 | 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 S = list(str(input()))\n\n S[K-1] = S[K-1].lower()\n print(''.join(S))", "N,K= map(int, input().split())\nS = list(str(input()))\n\nS[K-1] = S[K-1].lower()\nprint(''.join(S))"] | ['Runtime Error', 'Accepted'] | ['s699238441', 's928272047'] | [2940.0, 2940.0] | [17.0, 17.0] | [100, 96] |
p03041 | u962609087 | 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 = list(input())\n s[k - 1] = chr(ord(s[k]) + 32)\n t = ''\n for i in s:\n t = t + i\n print(t)\nmain()", "def main():\n n,k = map(int,input().split())\n s = list(input())\n s[k] = chr(ord(s[k]) + 32)\n t = ''\n for i in s:\n ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s554366500', 's639566363', 's176465040'] | [9112.0, 9072.0, 8996.0] | [32.0, 25.0, 24.0] | [168, 164, 172] |
p03041 | u963963908 | 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. | ['#ABC126 B\n\nS = list(map(int,input()))\nif 1 <= S[0]*10 + S[1] <= 12 and 1 <= S[2]*10 + S[3] <= 12:\n print("AMBIGUOUS")\nelif 1 <= S[0]*10 + S[1] <= 12 and (S[2]*10 + S[3] > 12 or S[2]*10 + S[3] == 0):\n print("MMYY")\nelif (S[0]*10 + S[1] > 12 or S[0]*10 + S[1] == 0) and 1 <= S[2]*10 + S[3] <= 12:\n pri... | ['Runtime Error', 'Accepted'] | ['s134682258', 's735350112'] | [9156.0, 9036.0] | [22.0, 24.0] | [436, 155] |
p03041 | u965033073 | 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()\nc=input()\nc[b-1]=c[b-1].upper()\nprint(c)\n', 'n,k=map(int,input().split())\ns=input()\nprint(s[:k-1]+s[k-1].lower()+s[k:])\n'] | ['Runtime Error', 'Accepted'] | ['s818588134', 's288952962'] | [2940.0, 2940.0] | [17.0, 17.0] | [61, 75] |
p03041 | u969211566 | 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. | ['\nn,k = map(int,input().split())\ns = input()\ncnt = 0\nans = []\nfor i in s:\n cnt += 1\n print(i.lower())\n if cnt == k:\n ans.append(i.lower())\n else:\n ans.append(i)\nprint("".join(ans))', '\nn,k = map(int,input().split())\ns = input()\ncnt = 0\nans = []\nfor i in s:\n cnt += 1\n\n if cnt == k:\n ... | ['Wrong Answer', 'Accepted'] | ['s163123039', 's903494390'] | [3060.0, 2940.0] | [18.0, 17.0] | [189, 171] |
p03041 | u972658925 | 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()\n#st = "".join(s)\n#print(st)\nprint(s)', 'n,k = map(int,input().split())\ns = list(input())\ns[k] = s[k].lower()\nst = "".join(s)\nprint(st)', 'n,k = map(int,input().split())\ns = list(input())\ns[k] = s[k].lower()\nst = "".join(s)\nprint(st)\n',... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s432137983', 's572418764', 's794156640', 's949533538', 's222748104'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 16.0, 17.0, 17.0, 17.0] | [105, 94, 95, 96, 98] |
p03041 | u972892985 | 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].lower())', 'n, k = map(int,input(),split())\nprint(n[k].lower())', 'n, k = map(int,input().split())\ns = list(input())\ns[k-1] = s[k-1].lower()\nprint("".join(s))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s088495390', 's763790921', 's815283704'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [63, 51, 91] |
p03041 | u973108807 | 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()', 'n, k = map(int, input().split())\ns = list(input())\ns[k-1] = s[k-1].lower()\nprint("".join(s))'] | ['Runtime Error', 'Accepted'] | ['s751195795', 's964789414'] | [2940.0, 2940.0] | [17.0, 17.0] | [64, 92] |
p03041 | u975300347 | 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()\nans = ''\nfor i in range(N):\n if i == K:\n if S[i] == 'A':\n ans += 'a'\n elif S[i] == 'B':\n ans += 'b'\n else:\n ans += 'c'\n else:\n ans += S[i]\nprint(ans)", "N, K = map(int, input().split())\nS = in... | ['Wrong Answer', 'Accepted'] | ['s182375719', 's515227237'] | [9020.0, 9156.0] | [27.0, 27.0] | [261, 263] |
p03041 | u977064967 | 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+1 == k:\n print(ans + s[i].lower())\n else:\n print(ans + s[i])\n\nprint(ans)', 'n, k = map(int, input().split())\ns = input()\n\nans = ""\nfor i in range(n):\n if (i+1 == k):\n ans = ans + s[k-1].lower(... | ['Wrong Answer', 'Accepted'] | ['s755438782', 's452846246'] | [2940.0, 2940.0] | [17.0, 17.0] | [172, 174] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.