description
stringlengths
329
4.12k
sample_inputs
stringlengths
2
411
sample_outputs
stringlengths
2
795
solutions
listlengths
1
7.88k
An English booklet has been created for publicizing Aizu to the world. When you read it carefully, you found a misnomer (an error in writing) on the last name of Masayuki Hoshina, the lord of the Aizu domain. The booklet says "Hoshino" not "Hoshina". Your task is to write a program which replace all the words "Hoshino" with "Hoshina". You can assume that the number of characters in a text is less than or equal to 1000. Input The input consists of several datasets. There will be the number of datasets n in the first line. There will be n lines. A line consisting of english texts will be given for each dataset. Output For each dataset, print the converted texts in a line. Example Input 3 Hoshino Hashino Masayuki Hoshino was the grandson of Ieyasu Tokugawa. Output Hoshina Hashino Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
3 Hoshino Hashino Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
Hoshina Hashino Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
[ { "original_code": "n=int(input())\nfor i in range(n):\n name=input()\n name2=name.replace('Hoshino','Hoshina')\n print(name2)", "cleaned_code": "n=int(input())\nfor i in range(n):\n name=input()\n name2=name.replace('Hoshino','Hoshina')\n print(name2)", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "n = int(input())\nkey = 'Hoshino'\nfor i in range(n):\n line = input()\n while (1):\n key_pos = line.find(key)\n if key_pos != -1:\n line = line[:key_pos] + 'Hoshina' + line[key_pos + len('Hoshina'):]\n else:\n break\n print(line)\n", "cleaned_code": "n = int(input())\nkey = 'Hoshino'\nfor i in range(n):\n line = input()\n while (1):\n key_pos = line.find(key)\n if key_pos != -1:\n line = line[:key_pos] + 'Hoshina' + line[key_pos + len('Hoshina'):]\n else:\n break\n print(line)\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR STRING FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR WHILE NUMBER ASSIGN VAR FUNC_CALL VAR VAR IF VAR NUMBER ASSIGN VAR BIN_OP BIN_OP VAR VAR STRING VAR BIN_OP VAR FUNC_CALL VAR STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "while (True):\n n=int(input())\n if n==0:\n break\n D=[]\n for k in range(1,int(n)+1):\n a=input()\n D.append(a)\n for i in D:\n A=i.replace('Hoshino','Hoshina')\n print (A)\n else:\n break\n", "cleaned_code": "while (True):\n n=int(input())\n if n==0:\n break\n D=[]\n for k in range(1,int(n)+1):\n a=input()\n D.append(a)\n for i in D:\n A=i.replace('Hoshino','Hoshina')\n print (A)\n else:\n break\n", "normalized_code": "WHILE NUMBER ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR IF VAR NUMBER ASSIGN VAR LIST FOR VAR FUNC_CALL VAR NUMBER BIN_OP FUNC_CALL VAR VAR NUMBER ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR VAR FOR VAR VAR ASSIGN VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "\nimport sys\nimport os\nn = int(input())\nfor i in range(n):\n s = input()\n s = s.replace('Hoshino', 'Hoshina')\n print(s)", "cleaned_code": "\nimport sys\nimport os\nn = int(input())\nfor i in range(n):\n s = input()\n s = s.replace('Hoshino', 'Hoshina')\n print(s)", "normalized_code": "IMPORT IMPORT ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "import re\nfor _ in [0]*int(input()):\n print(re.sub(r\"Hoshino\", \"Hoshina\", input()))\n", "cleaned_code": "import re\nfor _ in [0]*int(input()):\n print(re.sub(r\"Hoshino\", \"Hoshina\", input()))\n", "normalized_code": "IMPORT FOR VAR BIN_OP LIST NUMBER FUNC_CALL VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING FUNC_CALL VAR" }, { "original_code": "import string\nn=int(input())\nfor i in range(n):\n print(input().replace(\"Hoshino\", \"Hoshina\"))", "cleaned_code": "import string\nn=int(input())\nfor i in range(n):\n print(input().replace(\"Hoshino\", \"Hoshina\"))", "normalized_code": "IMPORT ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "n = int(input())\nfor i in range(n):\n s =input()\n print(s.replace(\"Hoshino\",\"Hoshina\"))\n", "cleaned_code": "n = int(input())\nfor i in range(n):\n s =input()\n print(s.replace(\"Hoshino\",\"Hoshina\"))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "if __name__ == '__main__':\n n = input()\n for line in range(int(n)):\n print(input().replace('Hoshino', 'Hoshina'))", "cleaned_code": "if __name__ == '__main__':\n n = input()\n for line in range(int(n)):\n print(input().replace('Hoshino', 'Hoshina'))", "normalized_code": "IF VAR STRING ASSIGN VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "words=[]\nnum=int(input())\nfor i in range(num):\n words.append(i)\n words[i]=input().replace('Hoshino','Hoshina')\nfor i in range(num):\n print(words[i])", "cleaned_code": "words=[]\nnum=int(input())\nfor i in range(num):\n words.append(i)\n words[i]=input().replace('Hoshino','Hoshina')\nfor i in range(num):\n print(words[i])", "normalized_code": "ASSIGN VAR LIST ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR VAR ASSIGN VAR VAR FUNC_CALL FUNC_CALL VAR STRING STRING FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR VAR VAR" }, { "original_code": "n = int(input())\nfor i in range(n):\n data = list(input())\n for a in range(len(data)):\n if a>=6:\n if data[a-6] == \"H\" and data[a-5]==\"o\" and data[a-4]==\"s\" and data[a-3]==\"h\" and data[a-2]==\"i\" and data[a-1]==\"n\" and data[a]==\"o\" :\n data[a] = \"a\"\n new = \"\".join(data)\n print(new)\n", "cleaned_code": "n = int(input())\nfor i in range(n):\n data = list(input())\n for a in range(len(data)):\n if a>=6:\n if data[a-6] == \"H\" and data[a-5]==\"o\" and data[a-4]==\"s\" and data[a-3]==\"h\" and data[a-2]==\"i\" and data[a-1]==\"n\" and data[a]==\"o\" :\n data[a] = \"a\"\n new = \"\".join(data)\n print(new)\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR FUNC_CALL VAR VAR IF VAR NUMBER IF VAR BIN_OP VAR NUMBER STRING VAR BIN_OP VAR NUMBER STRING VAR BIN_OP VAR NUMBER STRING VAR BIN_OP VAR NUMBER STRING VAR BIN_OP VAR NUMBER STRING VAR BIN_OP VAR NUMBER STRING VAR VAR STRING ASSIGN VAR VAR STRING ASSIGN VAR FUNC_CALL STRING VAR EXPR FUNC_CALL VAR VAR" }, { "original_code": "n = int(input())\nfor _ in range(n):\n s = input()\n print(s.replace(\"Hoshino\", \"Hoshina\"))\n", "cleaned_code": "n = int(input())\nfor _ in range(n):\n s = input()\n print(s.replace(\"Hoshino\", \"Hoshina\"))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "var1 = int(input())\nstr2 = \"Hoshino\"\nstr3 = \"Hoshina\"\nfor i in range(0, var1):\n str1 = input()\n if str1.find(str2) >= 0:\n str1 = str1.replace(str2, str3)\n print(str1)\n", "cleaned_code": "var1 = int(input())\nstr2 = \"Hoshino\"\nstr3 = \"Hoshina\"\nfor i in range(0, var1):\n str1 = input()\n if str1.find(str2) >= 0:\n str1 = str1.replace(str2, str3)\n print(str1)\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR STRING ASSIGN VAR STRING FOR VAR FUNC_CALL VAR NUMBER VAR ASSIGN VAR FUNC_CALL VAR IF FUNC_CALL VAR VAR NUMBER ASSIGN VAR FUNC_CALL VAR VAR VAR EXPR FUNC_CALL VAR VAR" }, { "original_code": "N = int(input())\nfor i in range(N):\n s = input()\n print(s.replace(\"Hoshino\",\"Hoshina\"))\n", "cleaned_code": "N = int(input())\nfor i in range(N):\n s = input()\n print(s.replace(\"Hoshino\",\"Hoshina\"))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "n=int(input())\ns=[input() for i in range(n)]\nfor i in range(n):\n if \"Hoshino\" in s[i]:\n s[i]=s[i].replace(\"Hoshino\",\"Hoshina\")\nfor i in s:\n print(i)", "cleaned_code": "n=int(input())\ns=[input() for i in range(n)]\nfor i in range(n):\n if \"Hoshino\" in s[i]:\n s[i]=s[i].replace(\"Hoshino\",\"Hoshina\")\nfor i in s:\n print(i)", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR VAR FUNC_CALL VAR VAR FOR VAR FUNC_CALL VAR VAR IF STRING VAR VAR ASSIGN VAR VAR FUNC_CALL VAR VAR STRING STRING FOR VAR VAR EXPR FUNC_CALL VAR VAR" }, { "original_code": "\nimport sys, math, os\nPYDEV = os.environ.get('PYDEV')\nif PYDEV==\"True\":\n sys.stdin = open(\"sample-input.txt\", \"rt\")\nN = int(input())\nfor _ in range(N):\n print(input().replace(\"Hoshino\", \"Hoshina\"))", "cleaned_code": "\nimport sys, math, os\nPYDEV = os.environ.get('PYDEV')\nif PYDEV==\"True\":\n sys.stdin = open(\"sample-input.txt\", \"rt\")\nN = int(input())\nfor _ in range(N):\n print(input().replace(\"Hoshino\", \"Hoshina\"))", "normalized_code": "IMPORT ASSIGN VAR FUNC_CALL VAR STRING IF VAR STRING ASSIGN VAR FUNC_CALL VAR STRING STRING ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "if __name__ == '__main__':\n n = (int)(input())\n for _ in range(n):\n tmp_txt = input()\n print(tmp_txt.replace(\"Hoshino\",\"Hoshina\"))", "cleaned_code": "if __name__ == '__main__':\n n = (int)(input())\n for _ in range(n):\n tmp_txt = input()\n print(tmp_txt.replace(\"Hoshino\",\"Hoshina\"))", "normalized_code": "IF VAR STRING ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "\nfor i in range(int(input())): \n textlist = []\n output = \"\"\n text = input()\n while 1:\n a = text.find(\"Hoshino\")\n if a == -1 :\n textlist.append(text[a+1:])\n break \n else:\n textlist.append(text[:a]) \n textlist.append(\"Hoshina\")\n text = text[(a+7):] \n for j in textlist:\n output += j\n print(output)\n", "cleaned_code": "\nfor i in range(int(input())): \n textlist = []\n output = \"\"\n text = input()\n while 1:\n a = text.find(\"Hoshino\")\n if a == -1 :\n textlist.append(text[a+1:])\n break \n else:\n textlist.append(text[:a]) \n textlist.append(\"Hoshina\")\n text = text[(a+7):] \n for j in textlist:\n output += j\n print(output)\n", "normalized_code": "FOR VAR FUNC_CALL VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR LIST ASSIGN VAR STRING ASSIGN VAR FUNC_CALL VAR WHILE NUMBER ASSIGN VAR FUNC_CALL VAR STRING IF VAR NUMBER EXPR FUNC_CALL VAR VAR BIN_OP VAR NUMBER EXPR FUNC_CALL VAR VAR VAR EXPR FUNC_CALL VAR STRING ASSIGN VAR VAR BIN_OP VAR NUMBER FOR VAR VAR VAR VAR EXPR FUNC_CALL VAR VAR" }, { "original_code": "N = int(input())\nfor i in range(N):\n\tchar = input()\n\tprint(char.replace('Hoshino', 'Hoshina'))\n", "cleaned_code": "N = int(input())\nfor i in range(N):\n\tchar = input()\n\tprint(char.replace('Hoshino', 'Hoshina'))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "n = int(input())\nfor _ in range(n):\n s = input()\n print(s.replace('Hoshino', 'Hoshina'))\n", "cleaned_code": "n = int(input())\nfor _ in range(n):\n s = input()\n print(s.replace('Hoshino', 'Hoshina'))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "for i in range(int(input())):\n s = input().replace(\"Hoshino\",\"Hoshina\")\n print(s)", "cleaned_code": "for i in range(int(input())):\n s = input().replace(\"Hoshino\",\"Hoshina\")\n print(s)", "normalized_code": "FOR VAR FUNC_CALL VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "n = int(input())\nt = []\nfor i in range(n):\n t.append(i)\n t[i] = input()\n t[i] = t[i].replace('Hoshino','Hoshina')\nfor i in range(n):\n print(t[i])\n", "cleaned_code": "n = int(input())\nt = []\nfor i in range(n):\n t.append(i)\n t[i] = input()\n t[i] = t[i].replace('Hoshino','Hoshina')\nfor i in range(n):\n print(t[i])\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR LIST FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR VAR ASSIGN VAR VAR FUNC_CALL VAR ASSIGN VAR VAR FUNC_CALL VAR VAR STRING STRING FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR VAR VAR" }, { "original_code": "def get_length(sentence):\n length = 0\n while True:\n try:\n if sentence[length] is not None:\n length += 1\n except:\n break\n return length\nn = int(input())\ntarget = \"Hoshino\"\ntarget_right = \"Hoshina\"\nlength_target = get_length(target)\nfor __ in range(n):\n sentence = input()\n length = get_length(sentence)\n for i in range(length - length_target +1):\n correct = True\n for j in range(length_target):\n if sentence[i+j] != target[j]:\n correct = False\n break\n if correct:\n after = \"\"\n for j in range(i):\n after += sentence[j]\n after += target_right\n for j in range(i+length_target, length):\n after += sentence[j]\n sentence = after\n print(sentence)\n", "cleaned_code": "def get_length(sentence):\n length = 0\n while True:\n try:\n if sentence[length] is not None:\n length += 1\n except:\n break\n return length\nn = int(input())\ntarget = \"Hoshino\"\ntarget_right = \"Hoshina\"\nlength_target = get_length(target)\nfor __ in range(n):\n sentence = input()\n length = get_length(sentence)\n for i in range(length - length_target +1):\n correct = True\n for j in range(length_target):\n if sentence[i+j] != target[j]:\n correct = False\n break\n if correct:\n after = \"\"\n for j in range(i):\n after += sentence[j]\n after += target_right\n for j in range(i+length_target, length):\n after += sentence[j]\n sentence = after\n print(sentence)\n", "normalized_code": "FUNC_DEF ASSIGN VAR NUMBER WHILE NUMBER IF VAR VAR NONE VAR NUMBER RETURN VAR ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR STRING ASSIGN VAR STRING ASSIGN VAR FUNC_CALL VAR VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR VAR FOR VAR FUNC_CALL VAR BIN_OP BIN_OP VAR VAR NUMBER ASSIGN VAR NUMBER FOR VAR FUNC_CALL VAR VAR IF VAR BIN_OP VAR VAR VAR VAR ASSIGN VAR NUMBER IF VAR ASSIGN VAR STRING FOR VAR FUNC_CALL VAR VAR VAR VAR VAR VAR VAR FOR VAR FUNC_CALL VAR BIN_OP VAR VAR VAR VAR VAR VAR ASSIGN VAR VAR EXPR FUNC_CALL VAR VAR" }, { "original_code": "num_data = int(input())\ncorrect_name = \"Hoshina\"\nwrong_name = \"Hoshino\"\nfor _ in range(num_data):\n print(input().replace(wrong_name,correct_name))\n", "cleaned_code": "num_data = int(input())\ncorrect_name = \"Hoshina\"\nwrong_name = \"Hoshino\"\nfor _ in range(num_data):\n print(input().replace(wrong_name,correct_name))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR STRING ASSIGN VAR STRING FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR VAR VAR" }, { "original_code": "n = int(input())\nfor __ in range(n):\n sentence = input()\n length = 0\n while True:\n try:\n sentence[length]\n length += 1\n except:\n break\n for i in range(length-6):\n if sentence[i] == \"H\":\n if sentence[i+1] == \"o\":\n if sentence[i+2] == \"s\":\n if sentence[i+3] == \"h\":\n if sentence[i+4] == \"i\":\n if sentence[i+5] == \"n\":\n if sentence[i+6] == \"o\":\n after = \"\"\n for j in range(i+6):\n after += sentence[j]\n after += \"a\"\n for j in range(i+7,length):\n after += sentence[j]\n sentence = after\n print(sentence)\n", "cleaned_code": "n = int(input())\nfor __ in range(n):\n sentence = input()\n length = 0\n while True:\n try:\n sentence[length]\n length += 1\n except:\n break\n for i in range(length-6):\n if sentence[i] == \"H\":\n if sentence[i+1] == \"o\":\n if sentence[i+2] == \"s\":\n if sentence[i+3] == \"h\":\n if sentence[i+4] == \"i\":\n if sentence[i+5] == \"n\":\n if sentence[i+6] == \"o\":\n after = \"\"\n for j in range(i+6):\n after += sentence[j]\n after += \"a\"\n for j in range(i+7,length):\n after += sentence[j]\n sentence = after\n print(sentence)\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR NUMBER WHILE NUMBER EXPR VAR VAR VAR NUMBER FOR VAR FUNC_CALL VAR BIN_OP VAR NUMBER IF VAR VAR STRING IF VAR BIN_OP VAR NUMBER STRING IF VAR BIN_OP VAR NUMBER STRING IF VAR BIN_OP VAR NUMBER STRING IF VAR BIN_OP VAR NUMBER STRING IF VAR BIN_OP VAR NUMBER STRING IF VAR BIN_OP VAR NUMBER STRING ASSIGN VAR STRING FOR VAR FUNC_CALL VAR BIN_OP VAR NUMBER VAR VAR VAR VAR STRING FOR VAR FUNC_CALL VAR BIN_OP VAR NUMBER VAR VAR VAR VAR ASSIGN VAR VAR EXPR FUNC_CALL VAR VAR" }, { "original_code": "\nn = int(input())\nfor i in range(n):\n\ts = input()\n\tprint(s.replace('Hoshino', 'Hoshina'))\n", "cleaned_code": "\nn = int(input())\nfor i in range(n):\n\ts = input()\n\tprint(s.replace('Hoshino', 'Hoshina'))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "n=int(input())\na=[print(input().replace(\"Hoshino\",\"Hoshina\")) for i in range(n)]\n", "cleaned_code": "n=int(input())\na=[print(input().replace(\"Hoshino\",\"Hoshina\")) for i in range(n)]\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING VAR FUNC_CALL VAR VAR" }, { "original_code": "n = int(input())\nfor i in range(0,n):\n print(input().replace(\"Hoshino\",\"Hoshina\"))\n", "cleaned_code": "n = int(input())\nfor i in range(0,n):\n print(input().replace(\"Hoshino\",\"Hoshina\"))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR NUMBER VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "for line in range(int(input())):\n print(input().replace('Hoshino', 'Hoshina'))", "cleaned_code": "for line in range(int(input())):\n print(input().replace('Hoshino', 'Hoshina'))", "normalized_code": "FOR VAR FUNC_CALL VAR FUNC_CALL VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "n = int(input())\nfor i in range(n):\n Sent = input()\n Sent = Sent.replace('Hoshino', 'Hoshina')\n print(Sent)", "cleaned_code": "n = int(input())\nfor i in range(n):\n Sent = input()\n Sent = Sent.replace('Hoshino', 'Hoshina')\n print(Sent)", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "\nn = int(input())\nfor i in range(n):\n print(input().replace('Hoshino', 'Hoshina'))\n", "cleaned_code": "\nn = int(input())\nfor i in range(n):\n print(input().replace('Hoshino', 'Hoshina'))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "n = int(input())\nfor i in range(n):\n sentence = input()\n true_sentence = sentence.replace(\"Hoshino\", \"Hoshina\")\n print(true_sentence)", "cleaned_code": "n = int(input())\nfor i in range(n):\n sentence = input()\n true_sentence = sentence.replace(\"Hoshino\", \"Hoshina\")\n print(true_sentence)", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "n = int(input())\nfor _ in range(n):\n sentence = input()\n result = sentence.replace('Hoshino', 'Hoshina')\n print(result)\n", "cleaned_code": "n = int(input())\nfor _ in range(n):\n sentence = input()\n result = sentence.replace('Hoshino', 'Hoshina')\n print(result)\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "n = int(input())\nfor i in range(n):\n data = input()\n cnv = data.replace('Hoshino', 'Hoshina')\n print(cnv)\n", "cleaned_code": "n = int(input())\nfor i in range(n):\n data = input()\n cnv = data.replace('Hoshino', 'Hoshina')\n print(cnv)\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "if __name__ == '__main__':\n\tn = int(input())\n\tfor i in range(n):\n\t\tprint(input().replace(\"Hoshino\",\"Hoshina\"))\n", "cleaned_code": "if __name__ == '__main__':\n\tn = int(input())\n\tfor i in range(n):\n\t\tprint(input().replace(\"Hoshino\",\"Hoshina\"))\n", "normalized_code": "IF VAR STRING ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "n=int(input())\nfor _ in range(n):\n\tprint(input().replace(\"Hoshino\",\"Hoshina\"))", "cleaned_code": "n=int(input())\nfor _ in range(n):\n\tprint(input().replace(\"Hoshino\",\"Hoshina\"))", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "n = int(input())\nfor i in range(n):\n tmp_string = input()\n print(tmp_string.replace('Hoshino', 'Hoshina'))\n", "cleaned_code": "n = int(input())\nfor i in range(n):\n tmp_string = input()\n print(tmp_string.replace('Hoshino', 'Hoshina'))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "num = int(input())\nfor _ in range(num):\n print(\n input().replace(\"Hoshino\",\"Hoshina\")\n )\n", "cleaned_code": "num = int(input())\nfor _ in range(num):\n print(\n input().replace(\"Hoshino\",\"Hoshina\")\n )\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "def Aizu_PR():\n for _ in range(int(input())):\n print(input().replace(\"Hoshino\",\"Hoshina\"))\nAizu_PR()\n", "cleaned_code": "def Aizu_PR():\n for _ in range(int(input())):\n print(input().replace(\"Hoshino\",\"Hoshina\"))\nAizu_PR()\n", "normalized_code": "FUNC_DEF FOR VAR FUNC_CALL VAR FUNC_CALL VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR" }, { "original_code": "\nfor i in range(int(input())): print(input().replace('Hoshino', 'Hoshina'))", "cleaned_code": "\nfor i in range(int(input())): print(input().replace('Hoshino', 'Hoshina'))", "normalized_code": "FOR VAR FUNC_CALL VAR FUNC_CALL VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "\n\"\"\"\nhttp://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0101&lang=jp\n\"\"\"\nimport sys\ndef solve(data):\n result = data.replace('Hoshino', 'Hoshina')\n return result\ndef main(args):\n num = int(input())\n for _ in range(num):\n data = input()\n result = solve(data)\n print(result)\nif __name__ == '__main__':\n main(sys.argv[1:])", "cleaned_code": "\nimport sys\ndef solve(data):\n result = data.replace('Hoshino', 'Hoshina')\n return result\ndef main(args):\n num = int(input())\n for _ in range(num):\n data = input()\n result = solve(data)\n print(result)\nif __name__ == '__main__':\n main(sys.argv[1:])", "normalized_code": "IMPORT FUNC_DEF ASSIGN VAR FUNC_CALL VAR STRING STRING RETURN VAR FUNC_DEF ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR VAR IF VAR STRING EXPR FUNC_CALL VAR VAR NUMBER" }, { "original_code": "n = int(input())\nfor i in range(n):\n print(input(). replace('Hoshino', 'Hoshina'))", "cleaned_code": "n = int(input())\nfor i in range(n):\n print(input(). replace('Hoshino', 'Hoshina'))", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "n = int(input())\nfor i in range(n):\n print(input().replace(\"Hoshino\",\"Hoshina\"))\n\"\"\" n = int(input())\nfor i in range(n):\n # 一度にlist(map(int,input().split()))しようとすると1単語時にエラー\n S = input()\n string = [t for t in S.split()]\n for word in string:\n if word==\"Hoshino\":\n word = \"Hoshina\"\n elif word==\"hoshino\":\n word = \"hoshina\"\n print(word,end=\" \")\n print(\"\") \"\"\"\n", "cleaned_code": "n = int(input())\nfor i in range(n):\n print(input().replace(\"Hoshino\",\"Hoshina\"))\n\"\"\" n = int(input())\nfor i in range(n):\n # 一度にlist(map(int,input().split()))しようとすると1単語時にエラー\n S = input()\n string = [t for t in S.split()]\n for word in string:\n if word==\"Hoshino\":\n word = \"Hoshina\"\n elif word==\"hoshino\":\n word = \"hoshina\"\n print(word,end=\" \")\n print(\"\") \"\"\"\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING EXPR STRING" }, { "original_code": "a = input()\nfor i in range(int(a)):\n b = input()\n print(b.replace('Hoshino','Hoshina'))", "cleaned_code": "a = input()\nfor i in range(int(a)):\n b = input()\n print(b.replace('Hoshino','Hoshina'))", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "n=int(input())\ns=[input() for i in range(n)]\nfor str in s:\n print(str.replace('Hoshino', 'Hoshina'))\n", "cleaned_code": "n=int(input())\ns=[input() for i in range(n)]\nfor str in s:\n print(str.replace('Hoshino', 'Hoshina'))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR VAR FUNC_CALL VAR VAR FOR VAR VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "[print(input().replace(\"Hoshino\",\"Hoshina\")) for i in range(int(input()))]\n", "cleaned_code": "[print(input().replace(\"Hoshino\",\"Hoshina\")) for i in range(int(input()))]\n", "normalized_code": "EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING VAR FUNC_CALL VAR FUNC_CALL VAR FUNC_CALL VAR" }, { "original_code": "import sys\nn = int(input())\nfor i in range(n):\n\tstring = input()\n\tif string.find('Hoshino') != -1:\n\t\tprint(string.replace('Hoshino','Hoshina'))\n\telse:\n\t\tprint(string)", "cleaned_code": "import sys\nn = int(input())\nfor i in range(n):\n\tstring = input()\n\tif string.find('Hoshino') != -1:\n\t\tprint(string.replace('Hoshino','Hoshina'))\n\telse:\n\t\tprint(string)", "normalized_code": "IMPORT ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR IF FUNC_CALL VAR STRING NUMBER EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "\nn = int(input())\nfor i in range(n):\n s = input()\n print(s.replace(\"Hoshino\", \"Hoshina\"))\n", "cleaned_code": "\nn = int(input())\nfor i in range(n):\n s = input()\n print(s.replace(\"Hoshino\", \"Hoshina\"))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "import sys\ninput()\nfor i in sys.stdin.readlines():\n print(i.replace('Hoshino', 'Hoshina'), end='')", "cleaned_code": "import sys\ninput()\nfor i in sys.stdin.readlines():\n print(i.replace('Hoshino', 'Hoshina'), end='')", "normalized_code": "IMPORT EXPR FUNC_CALL VAR FOR VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING STRING" }, { "original_code": "n=int(input())\npaper=[]\nfor i in range(n):\n paper.append(input().replace('Hoshino','Hoshina'))\nfor i in paper:\n print(i)", "cleaned_code": "n=int(input())\npaper=[]\nfor i in range(n):\n paper.append(input().replace('Hoshino','Hoshina'))\nfor i in paper:\n print(i)", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR LIST FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING FOR VAR VAR EXPR FUNC_CALL VAR VAR" }, { "original_code": "\ncount = int(input())\nfor i in range(count):\n print(input().replace(\"Hoshino\",\"Hoshina\"))", "cleaned_code": "\ncount = int(input())\nfor i in range(count):\n print(input().replace(\"Hoshino\",\"Hoshina\"))", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "n = int(input())\nfor i in range(n):\n s = input()\n print(s.replace('Hoshino', 'Hoshina'))\n", "cleaned_code": "n = int(input())\nfor i in range(n):\n s = input()\n print(s.replace('Hoshino', 'Hoshina'))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "for i in range(int(input())):\n print(input().replace(\"Hoshino\",\"Hoshina\"))\n", "cleaned_code": "for i in range(int(input())):\n print(input().replace(\"Hoshino\",\"Hoshina\"))\n", "normalized_code": "FOR VAR FUNC_CALL VAR FUNC_CALL VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "num = int(input())\nfor i in range(num):\n sent = input()\n ans = sent.replace(\"Hoshino\",\"Hoshina\")\n print(ans)\n", "cleaned_code": "num = int(input())\nfor i in range(num):\n sent = input()\n ans = sent.replace(\"Hoshino\",\"Hoshina\")\n print(ans)\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "\nN=int(input());\nL=[];\nfor i in range(N):\n\tL.append(input());\ndef calc(s):\n\ts_len=len(s);\n\tflag=0;\n\tcheck=\"Hoshino\"\n\thoshino_len=len(check);\n\tF=list(s);\n\tfor i in range(s_len-hoshino_len+1):\n\t\tflag=0;\n\t\tif F[i]=='H':\n\t\t\tflag=1;\n\t\t\tfor j in range(hoshino_len):\n\t\t\t\tif F[i+j]!=check[j]:\n\t\t\t\t\tflag=0;\n\t\t\t\t\tbreak;\n\t\t\tif flag==1:\n\t\t\t\tF[i+6]='a'\n\tF2=\"\".join(F);\n\tprint(F2);\nfor i in range(N):\n\tcalc(L[i]);\n", "cleaned_code": "\nN=int(input());\nL=[];\nfor i in range(N):\n\tL.append(input());\ndef calc(s):\n\ts_len=len(s);\n\tflag=0;\n\tcheck=\"Hoshino\"\n\thoshino_len=len(check);\n\tF=list(s);\n\tfor i in range(s_len-hoshino_len+1):\n\t\tflag=0;\n\t\tif F[i]=='H':\n\t\t\tflag=1;\n\t\t\tfor j in range(hoshino_len):\n\t\t\t\tif F[i+j]!=check[j]:\n\t\t\t\t\tflag=0;\n\t\t\t\t\tbreak;\n\t\t\tif flag==1:\n\t\t\t\tF[i+6]='a'\n\tF2=\"\".join(F);\n\tprint(F2);\nfor i in range(N):\n\tcalc(L[i]);\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR LIST FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL VAR FUNC_DEF ASSIGN VAR FUNC_CALL VAR VAR ASSIGN VAR NUMBER ASSIGN VAR STRING ASSIGN VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR VAR FOR VAR FUNC_CALL VAR BIN_OP BIN_OP VAR VAR NUMBER ASSIGN VAR NUMBER IF VAR VAR STRING ASSIGN VAR NUMBER FOR VAR FUNC_CALL VAR VAR IF VAR BIN_OP VAR VAR VAR VAR ASSIGN VAR NUMBER IF VAR NUMBER ASSIGN VAR BIN_OP VAR NUMBER STRING ASSIGN VAR FUNC_CALL STRING VAR EXPR FUNC_CALL VAR VAR FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR VAR VAR" }, { "original_code": "ans = []\nn = int(input())\nfor i in range(n):\n x = input(). replace('Hoshino', 'Hoshina')\n ans.append(x)\nfor i in ans:\n print(i)", "cleaned_code": "ans = []\nn = int(input())\nfor i in range(n):\n x = input(). replace('Hoshino', 'Hoshina')\n ans.append(x)\nfor i in ans:\n print(i)", "normalized_code": "ASSIGN VAR LIST ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR FOR VAR VAR EXPR FUNC_CALL VAR VAR" }, { "original_code": "\ninputCount = int(input())\nwhile 0 < inputCount:\n content = input().replace(\"Hoshino\", \"Hoshina\")\n print(content)\n inputCount -= 1\n", "cleaned_code": "\ninputCount = int(input())\nwhile 0 < inputCount:\n content = input().replace(\"Hoshino\", \"Hoshina\")\n print(content)\n inputCount -= 1\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR WHILE NUMBER VAR ASSIGN VAR FUNC_CALL FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR VAR NUMBER" }, { "original_code": "[print(input().replace('Hoshino', 'Hoshina')) for _ in range(int(input()))]", "cleaned_code": "[print(input().replace('Hoshino', 'Hoshina')) for _ in range(int(input()))]", "normalized_code": "EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING VAR FUNC_CALL VAR FUNC_CALL VAR FUNC_CALL VAR" }, { "original_code": "for _ in range(int(input())):\n print(input().replace('Hoshino','Hoshina'))", "cleaned_code": "for _ in range(int(input())):\n print(input().replace('Hoshino','Hoshina'))", "normalized_code": "FOR VAR FUNC_CALL VAR FUNC_CALL VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "n=int(input())\nfor i in range(n):\n\tprint(input().replace(\"Hoshino\",\"Hoshina\"))", "cleaned_code": "n=int(input())\nfor i in range(n):\n\tprint(input().replace(\"Hoshino\",\"Hoshina\"))", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "n = int(input())\nfor i in range(n):\n a = input()\n a = a.replace('Hoshino','Hoshina')\n print(a)", "cleaned_code": "n = int(input())\nfor i in range(n):\n a = input()\n a = a.replace('Hoshino','Hoshina')\n print(a)", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "for _ in[0]*int(input()):print(input().replace('Hoshino','Hoshina'))\n", "cleaned_code": "for _ in[0]*int(input()):print(input().replace('Hoshino','Hoshina'))\n", "normalized_code": "FOR VAR BIN_OP LIST NUMBER FUNC_CALL VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "for i in range(int(input())):\n text = input()\n print(text.replace(\"Hoshino\",\"Hoshina\"))", "cleaned_code": "for i in range(int(input())):\n text = input()\n print(text.replace(\"Hoshino\",\"Hoshina\"))", "normalized_code": "FOR VAR FUNC_CALL VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "n = int(input())\nfor i in range(n) :\n sentence = input()\n sentence = sentence.replace(\"Hoshino\", \"Hoshina\")\n print(sentence)\n", "cleaned_code": "n = int(input())\nfor i in range(n) :\n sentence = input()\n sentence = sentence.replace(\"Hoshino\", \"Hoshina\")\n print(sentence)\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "num = int(input())\nfor i in range(num):\n box = input()\n print(box.replace(\"Hoshino\", \"Hoshina\"))\n ", "cleaned_code": "num = int(input())\nfor i in range(num):\n box = input()\n print(box.replace(\"Hoshino\", \"Hoshina\"))\n ", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "for i in range(int(input())):\n print(input().replace('Hoshino', 'Hoshina'))\n", "cleaned_code": "for i in range(int(input())):\n print(input().replace('Hoshino', 'Hoshina'))\n", "normalized_code": "FOR VAR FUNC_CALL VAR FUNC_CALL VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "n = int(input()) \nD = []\nfor i in range(n):\n a=str( input())\n D.append(a)\n D_replace=[s.replace('Hoshino' , 'Hoshina') for s in D]\n print(D_replace[0])\n D=[]\n", "cleaned_code": "n = int(input()) \nD = []\nfor i in range(n):\n a=str( input())\n D.append(a)\n D_replace=[s.replace('Hoshino' , 'Hoshina') for s in D]\n print(D_replace[0])\n D=[]\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR LIST FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR EXPR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR STRING STRING VAR VAR EXPR FUNC_CALL VAR VAR NUMBER ASSIGN VAR LIST" }, { "original_code": "n = int(input())\ndataset = [input().replace(\"Hoshino\", \"Hoshina\") for _ in range(n)]\nprint(*dataset, sep=\"\\n\")\n", "cleaned_code": "n = int(input())\ndataset = [input().replace(\"Hoshino\", \"Hoshina\") for _ in range(n)]\nprint(*dataset, sep=\"\\n\")\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL FUNC_CALL VAR STRING STRING VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR VAR STRING" }, { "original_code": "[print(input().replace(\"Hoshino\",\"Hoshina\")) for __ in range(int(input()))]\n", "cleaned_code": "[print(input().replace(\"Hoshino\",\"Hoshina\")) for __ in range(int(input()))]\n", "normalized_code": "EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING VAR FUNC_CALL VAR FUNC_CALL VAR FUNC_CALL VAR" }, { "original_code": "n = int(input())\nfor i in range(n):\n s = input()\n s = s.replace('Hoshino', 'Hoshina')\n print(s)", "cleaned_code": "n = int(input())\nfor i in range(n):\n s = input()\n s = s.replace('Hoshino', 'Hoshina')\n print(s)", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "n = int(input())\nfor i in range(n):\n\tsentence = input()\n\tsentence = sentence.replace('Hoshino', 'Hoshina')\n\tprint(sentence)", "cleaned_code": "n = int(input())\nfor i in range(n):\n\tsentence = input()\n\tsentence = sentence.replace('Hoshino', 'Hoshina')\n\tprint(sentence)", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" }, { "original_code": "n=int(input())\nfor i in range(n):\n sent=input()\n print(sent.replace(\"Hoshino\", \"Hoshina\"))\n", "cleaned_code": "n=int(input())\nfor i in range(n):\n sent=input()\n print(sent.replace(\"Hoshino\", \"Hoshina\"))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "l=[input() for i in range(int(input()))]\n[print(i.replace(\"Hoshino\",\"Hoshina\")) for i in l]\n", "cleaned_code": "l=[input() for i in range(int(input()))]\n[print(i.replace(\"Hoshino\",\"Hoshina\")) for i in l]\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR VAR FUNC_CALL VAR FUNC_CALL VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING VAR VAR" }, { "original_code": "N = int(input())\nfor i in range(N):\n print(input().replace(\"Hoshino\", \"Hoshina\"))\n", "cleaned_code": "N = int(input())\nfor i in range(N):\n print(input().replace(\"Hoshino\", \"Hoshina\"))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING" }, { "original_code": "while True:\n try:\n num = int(input())\n except:\n break\n [print(input().replace('Hoshino', 'Hoshina')) for _ in range(num)]", "cleaned_code": "while True:\n try:\n num = int(input())\n except:\n break\n [print(input().replace('Hoshino', 'Hoshina')) for _ in range(num)]", "normalized_code": "WHILE NUMBER ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL FUNC_CALL VAR STRING STRING VAR FUNC_CALL VAR VAR" }, { "original_code": "n = int(input())\nfor i in range(n) :\n A = input()\n print(A.replace(\"Hoshino\", \"Hoshina\"))\n", "cleaned_code": "n = int(input())\nfor i in range(n) :\n A = input()\n print(A.replace(\"Hoshino\", \"Hoshina\"))\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING" }, { "original_code": "input()\ntry:\n while True:\n str = input()\n print(str.replace(\"Hoshino\",\"Hoshina\"))\nexcept EOFError:\n pass\n", "cleaned_code": "input()\ntry:\n while True:\n str = input()\n print(str.replace(\"Hoshino\",\"Hoshina\"))\nexcept EOFError:\n pass\n", "normalized_code": "EXPR FUNC_CALL VAR WHILE NUMBER ASSIGN VAR FUNC_CALL VAR EXPR FUNC_CALL VAR FUNC_CALL VAR STRING STRING VAR" }, { "original_code": "n = int(input())\nfor _ in range(n):\n string = input()\n answer = string.replace('Hoshino', 'Hoshina')\n print(answer)\n", "cleaned_code": "n = int(input())\nfor _ in range(n):\n string = input()\n answer = string.replace('Hoshino', 'Hoshina')\n print(answer)\n", "normalized_code": "ASSIGN VAR FUNC_CALL VAR FUNC_CALL VAR FOR VAR FUNC_CALL VAR VAR ASSIGN VAR FUNC_CALL VAR ASSIGN VAR FUNC_CALL VAR STRING STRING EXPR FUNC_CALL VAR VAR" } ]
"Recently, Tokitsukaze found an interesting game. Tokitsukaze had n items at the beginning of this g(...TRUNCATED)
13 4 5 7 8 9 10 10 4 5 3 5 7 10
1 3
[{"original_code":"reduced = 1\nn, m ,k = map(int,input().split())\np = list(map(int, input().split((...TRUNCATED)
"You are given an integer n. In one move, you can either multiply n by two or divide n by 6 (if it i(...TRUNCATED)
7 1 2 3 12 12345 15116544 387420489
0 -1 2 -1 -1 12 36
[{"original_code":"o=[]\nfor i in range(int(input())):\n n=int(input())\n r=0\n while(n%3==(...TRUNCATED)
"Two players play a simple game. Each player is provided with a box with balls. First player's box c(...TRUNCATED)
2 1 1 1 2 2 1 2
First Second
[{"original_code":"n,m,x,y=map(int,input().split())\nif n>m:print(\"First\")\nelse:print(\"Second\")(...TRUNCATED)
"Our good friend Mole is trying to code a big message. He is typing on an unusual keyboard with char(...TRUNCATED)
R s;;upimrrfod;pbr
allyouneedislove
[{"original_code":"a=input()\nl=input()\nS='qwertyuiopasdfghjkl;zxcvbnm,./'\nif a=='R':\n for i i(...TRUNCATED)
"Problem Statement\nLet's consider operations on monochrome images that consist of hexagonal pixels,(...TRUNCATED)
"000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000(...TRUNCATED)
yes yes no
[{"original_code":"import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,rand(...TRUNCATED)
"There is a staircase with N steps. Takahashi is now standing at the foot of the stairs, that is, on(...TRUNCATED)
100 5 1 23 45 67 8910 2 4 56 1 3
60820046904
[{"original_code":"N, M=map(int, input().split())\nA = [int(input()) for _ in range(M)]\nmod = 10**9(...TRUNCATED)
"Alica and Bob are playing a game.\nInitially they have a binary string s consisting of only charact(...TRUNCATED)
3 01 1111 0011
DA NET NET
[{"original_code":"t=int(input())\nwhile t>0:\n t-=1\n s=input()\n n=len(s)\n c=0\n w(...TRUNCATED)
"There was an epidemic in Monstropolis and all monsters became sick. To recover, all monsters lined (...TRUNCATED)
5 1 1 1 3 3 3 2 1 6 6 1 2 2 2 1 2 2 5 5 5 1 2 3 4 5 1 15
NO YES 2 L 1 R 2 R 2 R YES 5 L 4 L 3 L 2 L
[{"original_code":"\nimport sys\nclass DeadlockException(Exception): pass\ndef make_actions(array, b(...TRUNCATED)
"Lucy likes letters. She studied the definition of the lexicographical order at school and plays wit(...TRUNCATED)
2 3 1 abcabc 3 2 2 abcdef
aab bcc ad bc ef
[{"original_code":"def multiLineArrayOfArraysPrint(arr):\n print('\\n'.join([''.join([str(x) for (...TRUNCATED)
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
0
Edit dataset card