submission_id string | problem_id string | status string | code string | input string | output string | problem_description string |
|---|---|---|---|---|---|---|
s999283410 | p00101 | Accepted | a = input()
for i in range(int(a)):
b = input()
print(b.replace('Hoshino','Hoshina')) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s470718337 | p00101 | Accepted | n = int(input())
for i in range(n):
s =input()
print(s.replace("Hoshino","Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s824763982 | p00101 | Accepted | n = int(input())
for i in range(n):
print(input().replace("Hoshino","Hoshina"))
""" n = int(input())
for i in range(n):
# 一度にlist(map(int,input().split()))しようとすると1単語時にエラー
S = input()
string = [t for t in S.split()]
for word in string:
if word=="Hoshino":
word = "Hoshina"
... | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s389176459 | p00101 | Accepted | N = int(input())
for i in range(N):
char = input()
print(char.replace('Hoshino', 'Hoshina'))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s220086189 | p00101 | Accepted | n = int(input())
for i in range(n) :
sentence = input()
sentence = sentence.replace("Hoshino", "Hoshina")
print(sentence)
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s814890380 | p00101 | Accepted | n = int(input())
key = 'Hoshino'
for i in range(n):
line = input()
while (1):
key_pos = line.find(key)
if key_pos != -1:
line = line[:key_pos] + 'Hoshina' + line[key_pos + len('Hoshina'):]
else:
break
print(line)
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s061079019 | p00101 | Accepted | for _ in range(int(input())):#標準入力から何個英文があるか取得する
str1 = input() #英文を標準入力する
print(str1.replace("Hoshino","Hoshina")) #"Hoshino"を"Hoshina"にする
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s442201089 | p00101 | Accepted | #N,M,L = list(map(int, input().split()))
N=int(input());
L=[];
for i in range(N):
L.append(input());
def calc(s):
s_len=len(s);
flag=0;
check="Hoshino"
hoshino_len=len(check);
F=list(s);
for i in range(s_len-hoshino_len+1):
flag=0;
if F[i]=='H':
flag=1;
for j in range(hoshino_len):
if F[i+j]!=ch... | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s149766349 | p00101 | Accepted | N = int(input())
for i in range(N):
print(input().replace("Hoshino", "Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s238383471 | p00101 | Accepted | n = int(input())
for i in range(0,n):
print(input().replace("Hoshino","Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s731123520 | p00101 | Accepted | input()
try:
while True:
str = input()
print(str.replace("Hoshino","Hoshina"))
except EOFError:
pass
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s738874200 | p00101 | Accepted | import heapq
from collections import deque
from enum import Enum
import sys
import math
from _heapq import heappush, heappop
import copy
from test.support import _MemoryWatchdog
BIG_NUM = 2000000000
HUGE_NUM = 99999999999999999
MOD = 1000000007
EPS = 0.000000001
sys.setrecursionlimit(100000)
FROM = "Hoshino"
TO = "H... | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s823307085 | p00101 | Accepted | n = int(input())
for _ in range(n):
s = input()
print(s.replace("Hoshino", "Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s744651659 | p00101 | Accepted | n=int(input())
a=[print(input().replace("Hoshino","Hoshina")) for i in range(n)]
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s058310501 | p00101 | Accepted | while (True):
n=int(input())
if n==0:
break
D=[]
for k in range(1,int(n)+1):
a=input()
D.append(a)
for i in D:
A=i.replace('Hoshino','Hoshina')
print (A)
else:
break
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s558360940 | p00101 | Accepted | n = int(input())
D = []
for i in range(n):
a=str( input())
D.append(a)
D_replace=[s.replace('Hoshino' , 'Hoshina') for s in D]
print(D_replace[0])
D=[]
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s331992066 | p00101 | Accepted | n = int(input())
for i in range(n):
s = input()
print(s.replace("Hoshino","Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s006734978 | p00101 | Accepted | num = int(input())
for _ in range(num):
print(
input().replace("Hoshino","Hoshina")
)
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s781258049 | p00101 | Accepted | num = int(input())
for i in range(num):
sent = input()
ans = sent.replace("Hoshino","Hoshina")
print(ans)
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s779128704 | p00101 | Accepted | n = int(input())
for _ in range(n):
print(input().replace("Hoshino","Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s356078025 | p00101 | Accepted | # coding: utf-8
# Your code here!
n = int(input())
for i in range(n):
s = input()
print(s.replace("Hoshino", "Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s049877116 | p00101 | Accepted | # coding=utf-8
###
### for python program
###
import sys
import math
# math class
class mymath:
### pi
pi = 3.14159265358979323846264338
### Prime Number
def pnum_eratosthenes(self, n):
ptable = [0 for i in range(n+1)]
plist = []
for i in range(2, n+1):
if ptable... | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s923857241 | p00101 | Accepted | n = int(input())
for i in range(n) :
A = input()
print(A.replace("Hoshino", "Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s249488416 | p00101 | Accepted | n = int(input())
for i in range(n):
tmp_string = input()
print(tmp_string.replace('Hoshino', 'Hoshina'))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s569730825 | p00101 | Accepted | N=int(input())
for i in range(N):
print(input().replace("Hoshino","Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s696624767 | p00101 | Accepted | if __name__ == '__main__':
n = int(input())
for i in range(n):
print(input().replace("Hoshino","Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s034680136 | p00101 | Accepted | n = int(input())
for i in range(n):
data = list(input())
for a in range(len(data)):
if a>=6:
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" :
data[a] = "a"
new = "".join(data)
print(n... | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s668550771 | p00101 | Accepted | #{print (input().replace('Hoshino','Hoshina')) for i in range(int(input()))}
for i in range(int(input())):
textlist = []
output = ""
text = input()
while 1:
a = text.find("Hoshino")
if a == -1 :
textlist.append(text[a+1:])
break
else:
textlist.append(text[:a])
textlist.a... | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s395848632 | p00101 | Accepted | def get_length(sentence):
length = 0
while True:
try:
if sentence[length] is not None:
length += 1
except:
break
return length
n = int(input())
target = "Hoshino"
target_right = "Hoshina"
length_target = get_length(target)
for __ in range(n):
... | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s121046040 | p00101 | Accepted | n=int(input())
for _ in range(n):
s=input()
print(s.replace("Hoshino","Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s416904786 | p00101 | Accepted | n=int(input())
s=[input() for i in range(n)]
for str in s:
print(str.replace('Hoshino', 'Hoshina'))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s750042396 | p00101 | Accepted | n=int(input())
for i in range(n):
sent=input()
print(sent.replace("Hoshino", "Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s178319136 | p00101 | Accepted | for i in range(int(input())): print(input().replace("Hoshino","Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s723393126 | p00101 | Accepted | n = int(input())
for _ in range(n):
sentence = input()
result = sentence.replace('Hoshino', 'Hoshina')
print(result)
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s496012237 | p00101 | Accepted | n = int(input())
for i in range(n):
print(input().replace("Hoshino","Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s820572742 | p00101 | Accepted | n = int(input())
for _ in range(n):
string = input()
answer = string.replace('Hoshino', 'Hoshina')
print(answer)
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s368187208 | p00101 | Accepted | # Hoshino Hoshina
n = int(input())
for i in range(n):
print(input().replace('Hoshino', 'Hoshina'))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s116116983 | p00101 | Accepted | n = int(input())
for i in range(n):
print(input().replace("Hoshino", "Hoshina"))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s880997734 | p00101 | Accepted | num_data = int(input())
correct_name = "Hoshina"
wrong_name = "Hoshino"
for _ in range(num_data):
print(input().replace(wrong_name,correct_name))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s867403745 | p00101 | Accepted | import re
for _ in [0]*int(input()):
print(re.sub(r"Hoshino", "Hoshina", input()))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s420128525 | p00101 | Accepted | num = input()
for i in range(num):
old = raw_input()
new = old.replace('Hoshino', 'Hoshina')
print new
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s240668590 | p00101 | Runtime Error | for i in range(int(input())):
doc = input().split()
ans = []
for s in doc:
if 'Hoshino' in s:
while 'Hoshino' in s:
t = s.find('Hoshino')
s = s[:t] + 'Hoshina' + s[s+7:]
ans.append(s)
print ' '.join(ans)
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s032992889 | p00101 | Runtime Error | for i in range(int(input())):
print input().replace('Hoshino', 'Hoshina')
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s330036051 | p00101 | Runtime Error | n=int(input())
n=int(input())
for i in range(n):
inputs=list(map(str,input().split()))
ans=""
for j in inputs:
if j[:7]=="Hoshino":
ans+="Hoshina "
#print("Hoshina",end=" ")
else:
ans+=j+" "
#print(j,end=" ")
ans=ans[:-1]
print(ans) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s329441282 | p00101 | Runtime Error | while True:
n = int(raw_input())
for i in [raw_input().replace("Hoshino", "Hoshina") for i in range(n)]:
print i
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s496466444 | p00101 | Runtime Error | while True:
n = int(raw_input())
if n == 0:
break
for i in [raw_input().replace("Hoshino", "Hoshina") for i in range(n)]:
print i
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s575195140 | p00101 | Runtime Error | n = int(raw_input())
if n == 0:
break
for i in [raw_input().replace("Hoshino", "Hoshina") for i in range(n)]:
print i
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s699693496 | p00101 | Runtime Error | while True:
num = input()
for i in range(num): print raw_input().replace("Hoshino", "Hoshina") | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s385263933 | p00101 | Runtime Error | while True:
num = int(input())
if not num:
break
data = [input() for _ in range(num)]
[print(el.replace('Hoshino', 'Hoshina')) for el in data] | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s432183736 | p00101 | Runtime Error | while True:
num = int(raw_input())
if not num:
break
data = [raw_input() for _ in range(num)]
for el in data:
print(el.replace('Hoshino', 'Hoshina')) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s113369690 | p00101 | Runtime Error | [print(input().replace('Hoshino', 'Hoshina')) for _ in range(int(inpu()))] | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s623203766 | p00101 | Runtime Error |
#!/usr/bin/python
# -*- coding: utf-8 -*-
def main():
# ??\???
N = int(raw_input())
inp = []
for x in range(N):
input_list = raw_input()
inp.append(input_list)
# ???????????????
for x in inp:
replaced = x.replace("Hoshino", "Hoshina")
print(replaced)
if... | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s465005223 | p00101 | Runtime Error | import sys
def main():
n = int(sys.stdin.readline())
for _ in range(n):
line = sys.stdin.readline()
print(line.strip().replace("Hoshino", "Hoshina"), end="\n")
if __name__ == "__main__":
main() | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s200226203 | p00101 | Runtime Error | import string
n=int(raw_input())
for i in range(n):
print(raw_input().replace("Hoshino", "Hoshina")) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s964439610 | p00101 | Runtime Error | # Hoshinori
# Hoshino's
n = int(input())
datasets=[None]*n
for i in range(n):
datasets[i] = input()
def rep(a):
punc = ["","'s",",",".",":",";","!","?","#","$","%","&","(",")","-"."~,","-","<",">"]
for p in punc:
if a == "Hoshino"+p:
return "Hoshina"+p
return a
for data in datasets:
words = data.... | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s210433571 | p00101 | Runtime Error | n=int(input())
spam=[]
for i in range(n):
s=input()
for j in range(len(s)-7):
if s[j:j+6]=='Hoshino':
s[j+6]='a'
spam.append(s)
for i in range(len(spam)):
print(spam[i])(spam[i]) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s426581912 | p00101 | Runtime Error | n=int(input())
spam=[]
for i in range(n):
s=input()
for j in range(len(s)-7):
if s[j:j+6]=='Hoshino':
s[j+6]='a'
spam.append(s)
for i in range(len(spam)):
print(spam[i])(spam[i]) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s391415341 | p00101 | Runtime Error | n = int(input())
spam = []
for i in range(n):
s = input()
for j in range(len(s) - 6):
if s[j:j + 7] == 'Hoshino':
s[j + 6] = 'a'
spam.append(s)
for i in range(len(spam)):
print(spam[i])
spam[i]) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s769493025 | p00101 | Runtime Error | def Aizu_PR():
n = int(input())
for _ in range(n):
print(input().replace("Hoshino","Hoshina")
Aizu_PR()
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s215262569 | p00101 | Runtime Error | import re
while True:
n = int(raw_input())
for i in range(n):
print re.sub("Hoshino", "Hoshina", raw_input()) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s677561030 | p00101 | Runtime Error | n = int(raw_input())
for i in range(n):
inp = map(str, raw_input().split())
for j in range(len(inp)):
if inp[j][:7] == "Hoshino":
inp[j] = Hoshina" + inp[j][7:]
print " ".join(map(str, inp))
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s231486369 | p00101 | WA: Presentation Error | N = int(raw_input())
for i in range(N):
lis = raw_input().split()
ans = []
for st in lis:
if 'Hoshino' in st:
while 'Hoshino' in st:
s = st.find('Hoshino')
st = st[:s]+'Hoshina'+st[s+7:]
else:
ans.append(st)
else:
... | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s945524722 | p00101 | WA: Presentation Error | n = int(input())
for i in range(n):
l = [s for s in input().split()]
for s in l:
if 'Hoshino' in s:
l[l.index(s)] = s.replace('Hoshino','Hoshina')
a = ''
for s in l:
a += s
a += ' '
a.rstrip()
print(a) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s483942038 | p00101 | WA: Presentation Error | n = int(input())
for i in range(n):
l = [s for s in input().split()]
for s in l:
if 'Hoshino' in s:
l[l.index(s)] = s.replace('Hoshino','Hoshina')
a = ''
for s in l:
a += s
a += ' '
a = a.rstrip(' ')
print(a) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s113298412 | p00101 | WA: Presentation Error | n = int(input())
for i in range(n):
l = [s for s in input().split()]
for s in l:
if 'Hoshino' in s:
l[l.index(s)] = s.replace('Hoshino','Hoshina')
a = ''
for s in l:
a += s
a += ' '
a = a.rstrip()
print(a) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s861795050 | p00101 | WA: Presentation Error | n = int(input())
for i in range(n):
l = [s for s in input().split()]
for s in l:
if 'Hoshino' in s:
l[l.index(s)] = s.replace('Hoshino','Hoshina')
a = ''
for s in l:
a += s
a += ' '
a = a.replace(' ','')
print(a) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s439949149 | p00101 | WA: Presentation Error | import sys
input()
for i in sys.stdin.readlines():
print(i.replace('Hoshino', 'Hoshina')) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s576731791 | p00101 | WA: Presentation Error | import sys
def main():
for line in sys.stdin.readlines()[1:]:
print(line.strip().replace("Hoshino", "Hoshina"))
if __name__ == "__main__":
main() | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s342803590 | p00101 | WA: Presentation Error | import sys
def main():
n = int(input())
for _ in range(n):
line = sys.stdin.readline()
print(line.strip().replace("Hoshino", "Hoshina"))
if __name__ == "__main__":
main() | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s000268534 | p00101 | WA: Presentation Error | import sys
def main():
n = int(sys.stdin.readline())
for _ in range(n):
line = sys.stdin.readline()
print(line.strip().replace("Hoshino", "Hoshina"))
if __name__ == "__main__":
main() | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s655745484 | p00101 | WA: Presentation Error | # -*- coding: utf-8 -*-
import sys
import os
n = int(input())
for i in range(n):
s = input().strip()
print(s.replace('Hoshino', 'Hoshina')) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s316478751 | p00101 | WA: Presentation Error | # -*- coding: utf-8 -*-
import sys
import os
n = int(input())
for i in range(n):
s = input().strip()
if i == n - 1:
print(s.replace('Hoshino', 'Hoshina'), end='')
else:
print(s.replace('Hoshino', 'Hoshina')) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s538879477 | p00101 | WA: Presentation Error | # -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0101&lang=jp
"""
import sys
def solve(data):
result = data.replace('Hoshino', 'Hoshina')
return result
def main(args):
num = int(input())
for _ in range(num):
data = input().strip()
result = solve(da... | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s050091416 | p00101 | WA: Presentation Error | # Aizu Problem 0101: Aizu PR
#
import sys, math, os
# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
sys.stdin = open("sample-input.txt", "rt")
N = int(input())
for _ in range(N):
print(input().strip().replace("Hoshino", "Hoshina")) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s082945914 | p00101 | WA: Presentation Error | import sys
#from me.io import dup_file_stdin
#@dup_file_stdin
def solve():
for index in range(int(sys.stdin.readline())):
print(sys.stdin.readline().replace("Hoshino","Hoshina"))
solve() | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s251466490 | p00101 | WA: Presentation Error | import sys
l = ""
for input in sys.stdin:
l += input
print l[2:].replace('Hoshino','Hoshina')
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s723511605 | p00101 | WA: Presentation Error | import sys
l = ""
for input in sys.stdin:
l += input
print l[2:].replace("Hoshino","Hoshina")
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s168209395 | p00101 | WA: Presentation Error | import sys
l = ""
for input in sys.stdin:
l += input
l = l[2:]
print l.replace("Hoshino","Hoshina")
| 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s896935325 | p00101 | WA: Presentation Error | import sys
a = input()
a = sys.stdin.read()
print(a.replace('Hoshino','Hoshina')) | 3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.
| Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.
|
<H1>Aizu PR</H1>
<p>
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".
</p>
<p>
Your task is to write a program whic... |
s886173258 | p00102 | Wrong Answer | while True:
n=int(input())
if not n: break
a=[list(map(int,input().split())) for _ in range(n)]
t=[[0 for _ in range(n+1)] for _ in range(n+1)]
for i in range(n):
for j in range(n):
t[i][j]=a[i][j]
t[i][n]+=a[i][j]
t[n][j]+=a[i][j]
t[n][n]+=a[i][j]
print(a)
print(t) | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s025460833 | p00102 | Wrong Answer | while True:
n=int(input())
if not n: break
a=[list(map(int,input().split())) for _ in range(n)]
t=[[0 for _ in range(n+1)] for _ in range(n+1)]
for i in range(n):
for j in range(n):
t[i][j]=a[i][j]
t[i][n]+=a[i][j]
t[n][j]+=a[i][j]
t[n][n]+=a[i][j]
print(t) | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s904699841 | p00102 | Wrong Answer | while True:
n = int(raw_input())
if n == 0:
break
else: # n > 0
table = []
for m in range(n):
line = []
line = map(int,raw_input().split())
line_sum = sum(line)
line.append(line_sum)
table.append(line)
... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s408839974 | p00102 | Wrong Answer | n = int(raw_input())
while n != 0:
input_list = []
for x in range(n):
input_list.append(map(int, raw_input().split(' ')))
for x in range(n):
input_list[x].append(sum(input_list[x]))
print ''.join(map(lambda n:"{:>5}".format(n), input_list))
input_len = len(input_list[0])
col... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s238471848 | p00102 | Wrong Answer | if __name__ == "__main__":
while True:
flag = input()
if flag == 0:
break
num, ans = [], [0]*(flag + 1)
for i in xrange(flag):
num.append(map(int, raw_input().split()))
for i in xrange(len(num)):
for j in xrange(len(num[i])):
... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s239727153 | p00102 | Wrong Answer | from sys import stdin
if __name__ == '__main__':
for n in stdin:
if int(n) == 0:
break
bottom_total = []
right_total = []
for _ in range(int(n)):
line = input().split(' ')
total = 0
for i, v in enumerate(line):
print(r... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s548784389 | p00102 | Wrong Answer | from sys import stdin
if __name__ == '__main__':
is_begin = False
for n in stdin:
if int(n) == 0:
break
else:
if is_begin:
print()
is_begin = True
bottom_total = []
right_total = []
for _ in range(int(n)):
line... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s253401592 | p00102 | Wrong Answer | n=int(input())
def sum1(x,y):
num=0
for i in range(n):
num+=x[i][y]
return int(num)
Matrix=[]
for i in range(n+1):
Matrix.append(i)
if i==n:
Matrix[i]=[]
for j in range(5):
Matrix[i].append(sum1(Matrix,j))
else:
Matrix[i]=[int(k) for k in ... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s151625131 | p00102 | Wrong Answer | def rowSum(matrix):
n=len(matrix)
sumcolumn=[0]*n
for i in range(0,n):
sumcolumn[i] = sum(matrix[i])
return sumcolumn
def colSum(matrix):
n=len(matrix)
sumrow=[0]*n
for i in range(0,n):
for j in range(0,n):
sumrow[i]+=matrix[j][i]
return sumrow
n=int(input())
matrix=[None]*n
for i in ran... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s677000984 | p00102 | Wrong Answer | def main():
while True:
n = int(input())
if n == 0:
break
for i in range(n):
num = 0
m = map(int, input().split())
for j in m:
print("{:5}".format(j), end='')
num += j
print("{:5}".format(num))
if _... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s438362949 | p00102 | Wrong Answer | while True:
inputCount = int(input())
if inputCount == 0:
break
table = []
for lp in range(inputCount):
content = [int(item) for item in input().split(" ")]
content.append(sum(content))
table.append(content)
table.append([])
for col in range(inputCount + 1):
... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s811139919 | p00102 | Wrong Answer | while 1:
n=int(input())
if n==0:break;
a=[]
for _ in[0]*n:
b=list(map(int,input().split()))
a+=[b+[sum(b)]]
for s in b:print("%5d"%s,end='')
print()
for c in zip(*a):print("%5d"%sum(c),end='')
print()
| 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s951547228 | p00102 | Wrong Answer | import sys
def solve():
while True:
n = input()
if n > 0:
mat = [[0 for i in xrange(n +1)] for j in xrange(n + 1)]
#input
for i in range(n):
line = sys.stdin.readline().split()
for j in range(n):
mat[i][j] = int(line[j])
... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s192656476 | p00102 | Accepted | while 1:
n=input()+1
if n==1: break
x=[]
y=[0]*n
N=range(n)
for i in N[:-1]:
a=map(int,raw_input().split(' '))
a.append(sum(a))
x.append(a)
for j in N: y[j]+=a[j]
x.append(y)
for i in N: print "".join([str(e).rjust(5) for e in x[i]]) | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s611671895 | p00102 | Accepted | while 1:
n=input()+1
if n==1: break
x=[]
y=[0]*n
for _ in range(n-1):
a=map(int,raw_input().split(' '))
a.append(sum(a))
s=""
for i in range(n):
y[i]+=a[i]
s+=str(a[i]).rjust(5)
print s
print "".join([str(e).rjust(5) for e in y]) | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s289524397 | p00102 | Accepted | while 1:
n=input()+1
if n==1: break
x=[]
y=[0]*n
for i in range(n-1):
a=map(int,raw_input().split())
a.append(sum(a))
x.append(a)
for i in range(n): y[i]+=a[i]
x.append(y)
for a in x: print "".join(map(lambda x:str(x).rjust(5),a)) | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s820352455 | p00102 | Accepted | while 1:
n = input()
if n==0: break
x = []
y = [0]*(n+1)
for i in range(n):
a=map(int, raw_input().split())
a.append(sum(a))
x.append(a)
for j in range(n+1): y[j] += a[j]
x.append(y)
for a in x: print "".join([str(e).rjust(5) for e in a]) | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s618356129 | p00102 | Accepted | while True:
n=int(input())
if not n: break
a=[list(map(int,input().split())) for _ in range(n)]
t=[[0 for _ in range(n+1)] for _ in range(n+1)]
for i in range(n):
for j in range(n):
t[i][j]=a[i][j]
t[i][n]+=a[i][j]
t[n][j]+=a[i][j]
t[n][n]+=a[i][j]
for i in range(n+1):
print("".join(map("{0:>5}".f... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s787596283 | p00102 | Accepted | #!/usr/bin/python3
while True:
n = int(input())
if (n == 0):
break
mat = [ [] for _ in range(n) ]
row = [ 0 for _ in range(n) ]
col = [ 0 for _ in range(n) ]
for i in range(n):
ln = list(map(int, input().split(' ')))
mat[i] = ln
row[i] = sum(ln)
for j in ... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s343013391 | p00102 | Accepted | #!/usr/bin/python
# -*- coding: utf-8 -*-
def main():
while(True):
# 入力
N = int(raw_input())
if N == 0:
break
inp = []
for x in range(N):
input_list = map(int, raw_input().split())
inp.append(input_list)
printAns(inp)
def printA... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
s883513467 | p00102 | Accepted | #!/usr/bin/python
# -*- coding: utf-8 -*-
def main():
while(True):
# 入力
N = int(raw_input())
if N == 0:
break
inp = []
for x in range(N):
input_list = map(int, raw_input().split())
inp.append(input_list)
printAns(inp)
def printA... | 4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
4
52 96 15 20
86 22 35 45
45 78 54 36
16 86 74 55
0
| 52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
52 96 15 20 183
86 22 35 45 188
45 78 54 36 213
16 86 74 55 231
199 282 178 156 815
|
<H1>Matrix-like Computation</H1>
<p>
Your task is to develop a tiny little part of spreadsheet software.
</p>
<p>
Write a program which adds up columns and rows of given table as shown in the following figure:
</p>
<center>
<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_matrixLike" width="640">
<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.