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 VA... |
"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) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3