submission_id
string
problem_id
string
status
string
code
string
input
string
output
string
problem_description
string
s398608758
p00100
Accepted
n = int(input()) while (n != 0): e_ab = {} for i in range(n): e,a,b = map(int, input().split()) ab = a*b if (e not in e_ab.keys()): e_ab[e] = ab else: e_ab[e] += ab c = 0 for e,ab in e_ab.items(): if (ab >= 10**6): c += 1 ...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s407113538
p00100
Accepted
p = [] q = [] while True: n = int(input()) m = 0 number = [0] * 4000 if n == 0: break else: for i in range(n): p.append(i) q.append(i) e,p[i],q[i] = [int(s) for s in input().split(' ')] if number[e] >= 1000000: break ...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s212722917
p00100
Accepted
while(True): n = int(input()) if n == 0: break oe = [] for i in range(n): e,p,q = map(int, input().split()) for a in oe: if a[0] == e: a[1] += p*q continue oe.append([e,p*q]) lis = [ a[0] for a in oe if a[1] >= 1000000] ...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s962184273
p00100
Accepted
from collections import Counter while True: n = int(input()) if n == 0: break counter = Counter() for _ in [0]*n: a, b, c = map(int, input().split()) counter[a] += b*c result = [str(k) for k, v in counter.items() if v >= 1000000] or ["NA"] print("\n".join(result))
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s258278632
p00100
Runtime Error
while 1: n=input() if n==0: break D={} A=[] for _ in range(n): a,b,c=map(int, raw_input().split(' ')) if a in D: D[a]+=b*c else: D[a]=b*c A.append(a) B=[i for i in A: if D[i]>=1e6] if B=[]: B=["NA"] for e in B: print e
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s207204737
p00100
Runtime Error
while True: n=int(input()) if n: a=[list(map(int,input().split())) for _ in range(n)] b={} for i in range(n): if a[i][0] in b: b[a[i][0]]+=a[i][1]*a[i][2] else: b[a[i][0]]=a[i][1]*a[i][2] for k in b.keys(): if b[k]>=1000000: print(k) if max(k.values())<1000000: print("NA") else: b...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s714337273
p00100
Runtime Error
while True: n=int(input()) if n==0: break l=[] d={} for i in range(n): i,p,q=list(map(int,input().split())) if a in d: d[a]+=b*c else: d[a]=b*c l.append(a) if max(d.values())<1000000: print("NA") else: for k in l: if d[k]>=1000000: print(k)
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s160121553
p00100
Runtime Error
n = int(raw_input()) for i in range(n): x, y, z = map(int, raw_input()) if y*z >= 1000000: print x else: print "NA"
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s722027193
p00100
Runtime Error
while 1: n = int(raw_input()) if n == 0: break for i in range(n): x, y, z = map(int, raw_input()) if y*z >= 1000000: print x else: print "NA"
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s093588090
p00100
Runtime Error
1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s189267746
p00100
Runtime Error
import sys import math while 1: para = map(int, raw_input()) if (para == 0): break ans = 0 l = [0 for i in range(4000)] num = [] check = 0 for j in range(para): data = map(int, raw_input().split()) l[data[0]] = l[data[0]]+data[1]*data[2] if(data[0] not in nu...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s273343191
p00100
Runtime Error
while True: N = int(input()) if N == 0: break d = {} for n in range(N): num, p, q = map(int, input().split()) if num in d: d[num][1] += (p*q) else: d[num] = [n, p*q] else: fla = False for k, v in sorted(d.items(), key=lambda x[...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s787261798
p00100
Runtime Error
#!/usr/bin/env python3 import sys input_lines = sys.stdin.readlines() cnt = 0 dataset = [] for i in input_lines: if not(' ' in i): dataset.append([int(i)]) cnt += 1 else:dataset[cnt-1].append(list(map(int, i.split(' ')))) for d in dataset: if d == [0]:break shain = [[x[0], x[1]*x[2...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s602891086
p00100
Runtime Error
#!/usr/bin/env python3 import sys input_lines = sys.stdin.readlines() cnt = 0 dataset = [] for i in input_lines: if not(' ' in i): dataset.append([int(i)]) cnt += 1 else:dataset[cnt-1].append(list(map(int, i.split(' ')))) for d in dataset: if d == [0]:pass else: shain = [[x...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s485165545
p00100
Runtime Error
#!/usr/bin/env python3 import sys input_lines = sys.stdin.readlines() cnt = 0 dataset = [] for i in input_lines: if not(' ' in i): dataset.append([int(i)]) cnt += 1 # else:dataset[cnt-1].append(list(map(int, i.split(' ')))) for d in dataset: if d == [0]:break shain = [[x[0], x[1]*x[...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s043795802
p00100
Runtime Error
#!/usr/bin/env python3 import sys input_lines = sys.stdin.readlines() cnt = 0 dataset = [] for i in input_lines: if not(' ' in i): dataset.append([int(i)]) cnt += 1 else:dataset[cnt-1].append(list(map(int, i.split(' ')))) for d in dataset: if d == [0]:break shain = [[x[0], x[1]*x[2...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s877282074
p00100
Runtime Error
#!/usr/bin/env python3 import sys input_lines = sys.stdin.readlines() cnt = 0 dataset = [] for i in input_lines: if not(' ' in i): dataset.append([int(i)]) cnt += 1 else:dataset[cnt-1].append(list(map(int, i.split(' ')))) for d in dataset: if d == [0]:break shain = [[x[0], x[1]*x[2...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s501131380
p00100
Runtime Error
#!/usr/bin/env python3 import sys input_lines = sys.stdin.readlines() cnt = 0 dataset = [] for i in input_lines: if not(' ' in i): dataset.append([int(i)]) cnt += 1 else:dataset[cnt-1].append(list(map(int, i.split(' '))))
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s379301017
p00100
Runtime Error
import sys input_lines = sys.stdin.readlines() cnt = 0 dataset = [] for i in input_lines: if not(' ' in i): dataset.append([int(i)]) cnt += 1 else:dataset[cnt-1].append(list(map(int, i.split(' '))))
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s807549733
p00100
Runtime Error
#!/usr/bin/env python import sys input_lines = sys.stdin.readlines() cnt = 0 dataset = [] for i in input_lines: if not(' ' in i): dataset.append([int(i)]) cnt += 1 else:dataset[cnt-1].append(map(int, i.split(' '))) for d in dataset: if d == [0]:break shain = [[x[0], x[1]*x[2]] for ...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s099317495
p00100
Runtime Error
datasets=[] while True: n = int(input()) if n==0: break inputs=[None]*n for t in range(0,n): inputs[t] = list(map(int,input().split())) #inputs == [[i0,p0,q0],[i1,p1,q1],[i2,p2,q2]] id_sale = [] # id_sale == [id,sale,id,sale,id,sale] for i in inputs: # i == [ik,pk,qk] if i[0] in id_sale: ...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s614983953
p00100
Runtime Error
datasets=[] while True: n = int(input()) if n==0: break inputs=[None]*n for t in range(0,n): inputs[t] = list(map(int,input().split())) #inputs == [[i0,p0,q0],[i1,p1,q1],[i2,p2,q2]] id_sale = [] # id_sale == [id,sale,id,sale,id,sale] for i in inputs: # i == [ik,pk,qk] try: id_sale[i...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s434895425
p00100
Runtime Error
datasets=[] while True: n = int(input()) if n==0: break inputs=[None]*n for t in range(0,n): inputs[t] = list(map(int,input().split())) #inputs == [[i0,p0,q0],[i1,p1,q1],[i2,p2,q2]] id_sale = [] # id_sale == [id,sale,id,sale,id,sale] for i in inputs: # i == [ik,pk,qk] try: id_sale[i...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s663192246
p00100
Runtime Error
while True: n=int(input()) if n==0:break res={} li=[] for i in range(n): d=[int(num) for num in input().split(' ')] res[d[0]-1]+=d[1]*d[2] if d[0]-1 not in li:li.append(d[0]-1) flag=False for i in li: if res[i]>=1000000: print(i+1) flag...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s083708478
p00100
Runtime Error
while True: n=int(input()) if n==0: break else: for i in range(n): k=0 l=map(int, input().split()) if l[1]*l[2]>=1000000: print(l[0]) k+=1 if k==0: print("NA")
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s386905519
p00100
Runtime Error
while True: str = input() if len(str) == 1 and not str == "0": datadic={} nn = len(str) for ii in range(nn): data = input.stlip() datadic[data[0]] = int(data[1]) * int(data[2]) print(datadic[ max( datadic.values() ) ])
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s693211573
p00100
Runtime Error
while True: str = input() if len(str) == 1 and not str == "0": datadic={} nn = len(str) for ii in range(nn): data = input.stlip() datadic[data[0]] = int(data[1]) * int(data[2]) print(datadic[ max( datadic.values() ) ]) else: break
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s427050496
p00100
Runtime Error
import sys while True: str = sys.stdin.readline().stlip() if len(str) == 1 and not str == "0": datadic={} nn = len(str) for ii in range(nn): data = sys.stdin.readline().stlip() datadic[data[0]] = int(data[1]) * int(data[2]) print(datadic[ max( datadic.val...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s852704422
p00100
Runtime Error
import sys while True: str = sys.stdin.readline().stlip() if len(str) == 1 and not str == "0": datadic={} nn = len(str) for ii in range(nn): data = sys.stdin.readline().stlip() datadic[data[0]] = int(data[1]) * int(data[2]) print(datadic[ max( datadic.valu...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s880671759
p00100
Runtime Error
import sys while True: str = sys.stdin.readline().split() if len(str) == 1 and not str == "0": datadic={} nn = len(str) for ii in range(nn): data = sys.stdin.readline().split() datadic[data[0]] = int(data[1]) * int(data[2]) print(datadic[ max( datadic.valu...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s435851207
p00100
Runtime Error
while True: str = input().split() if len(str) == 1 and not str == "0": datadic={} nn = len(str) for ii in range(nn): data = input().split() datadic[data[0]] = int(data[1]) * int(data[2]) print(datadic[ max( datadic.values() ) ]) else: break
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s240957485
p00100
Runtime Error
while True: n = input() if n == 0: break rs = {} for i in range(n): arr = input().split(' ') s = arr[0] * arr[1] rs[arr[0]] = (rs[arr[0]] or 0) + s top = [k for k, v in rs.items if v > 1000000] if len(top) == 0: print('NA') else: for i in top...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s099323048
p00100
Runtime Error
import numpy as np class Employee(): def __init__(self,id,p,q): self.id = id self.total = p*q def add_total(self,total): self.total += total class Manager(): def __init__(self): self.employees = list() self.count = 0 def add(self,e): if len(sel...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s560980087
p00100
Runtime Error
import sys while True: n = input() salesmap = {} j = 0 for i in range(1,4001): salesmap[i] = 0 if n == 0: break for i in range(n): a = input().split() salesmap[int(a[0])] += int(a[1])*int(a[2]) for i in range(1,4001): if salesmap[i] >= 1000000: j += 1 ...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s065030574
p00100
Runtime Error
# -*- coding: utf-8 -*- import sys while True: n = input() salesmap = {} j = 0 for i in range(1,4001): salesmap[i] = 0 if n == 0: break for i in range(n): a = input().split() salesmap[int(a[0])] += int(a[1])*int(a[2]) for i in range(1,4001): if salesmap[i] >= 10...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s484360276
p00100
Runtime Error
# -*- coding: utf-8 -*- import sys while True: n = int(input()) j = 0 if n == 0: break salesmap = [0 in range(0,4001)] for i in range(n): a = input().split() salesmap[int(a[0])] += int(a[1])*int(a[2]) for i in range(1,4001): if salesmap[i] >= 1000000: j += 1 ...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s250052742
p00100
Runtime Error
# -*- coding: utf-8 -*- import sys while True: n = int(input()) j = 0 if n == 0: break salesmap = [0 for i in range(0,4001)] for i in range(n): a = input().split() salesmap[int(a[0])] += int(a[1])*int(a[2]) for i in range(1,4001): if salesmap[i] >= 1000000: ...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s415860611
p00100
Runtime Error
while 1: n=int(input()) if not n:break f=1 L={} for a,b,c in [map(int,input().split()) for i in range(n)]: a=str(a) if a in L: d=b*c if L[a]>=1e6:continue L[a]+=d else:L[a]=d if L[a] >= 1e6: print(a) f=0 if f:print('NA')
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s251535200
p00100
Runtime Error
while 1: n=int(input()) if not n:break f=1 L={} for a,b,c in [input().split() for i in range(n)]: if a in L: if L[a]>=1e6:continue L[a]+=d else:L[a]=d if L[a]>=1e6: print(a) f=0 if f:print('NA')
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s605736966
p00100
Runtime Error
x = 1 while x != 0: x = int(input().rstrip()) frag = 0 for j in range(x): A = input().rstrip().sprit() if int(A[1]) * int(A[2]) >= 1000000: print(A[0]) flag = 1 if flag == 0: print("NA")
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s189313985
p00100
Runtime Error
x = 1 while x != 0: x = int(input().rstrip()) frag = 0 for j in range(x): A = input().sprit(" ") if int(A[1]) * int(A[2]) >= 1000000: print(A[0]) flag = 1 if flag == 0: print("NA")
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s501338252
p00100
Runtime Error
While True: no = [] n = int(input()) if (n = 0): return for i in range(n): datas = map(int, input().split()) li = list(datas) e = li[0] p = li[1] q = li[2] s = p * q if (1000000 < s and (e in no) = False): print(e) ...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s032127780
p00100
Runtime Error
while True: no = [] n = int(input()) if (n == 0): exit for i in range(n): datas = map(int, input().split()) li = list(datas) e = li[0] p = li[1] q = li[2] s = p * q if (1000000 < s and (e in no) == False): print(e) ...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s495519132
p00100
Runtime Error
import sys while True: a=int(input()) if a==0: break ans,name1,name2=[],[],[] hogehoge=0 for i in range(a): hoge=map(int,raw_input().split()) if hoge[0] in name2: ww = hoge[1]*hoge[2] r = name2.index(hoge[0]) if len(ans[r]+ww) >= 7: hogehoge+=1 name1.append(hoge[0]) ...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s376558969
p00100
Runtime Error
import sys from Config import DB def add(lis,check_list): for index in range(len(lis)): if lis[index][0]==check_list[0]: lis[index][1]+=int(check_list[1])*int(check_list[2]) return lis.append([check_list[0],int(check_list[1])*int(check_list[2])]) while True: num=int(raw_inpu...
4 1001 2000 520 1002 1800 450 1003 1600 625 1001 200 1220 2 1001 100 3 1005 1000 100 2 2013 5000 100 2013 5000 100 0
1001 1003 NA 2013
<H1>Sale Result</H1> <p> There is data on sales of your company. Your task is to write a program which identifies good workers. </p> <p> The program should read a list of data where each item includes the employee ID <i>i</i>, the amount of sales <i>q</i> and the corresponding unit price <i>p</i>. Then, the program ...
s620606983
p00101
Wrong Answer
var1 = int(input()) str2 = "Hoshino" str3 = "Hoshina" for i in range(0, var1): str1 = input() if str1.find(str2) >= 0: str1 = str1.replace(str2, str3) print(str1)
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...
s508078255
p00101
Wrong Answer
n = int(input()) for i in range(n): lst = input().split() ans = [] for s in lst: if s.count("Hoshin"): ans.append("Hoshina") else: ans.append(s) # print(ans) for s in ans: if s == ans[-1]: print(s) else: print(s, end=" "...
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...
s215503984
p00101
Wrong Answer
n = int(input()) for __ in range(n): sentence = input() length = 0 after = "" while True: try: sentence[length] length += 1 except: break for i in range(length-6): if sentence[i] == "H": if sentence[i+1] == "o": ...
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...
s610404269
p00101
Wrong Answer
n = int(input()) for __ in range(n): sentence = input() length = 0 after = sentence while True: try: sentence[length] length += 1 except: break for i in range(length-6): if sentence[i] == "H": if sentence[i+1] == "o": ...
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...
s557636939
p00101
Wrong Answer
n = int(raw_input()) for i in range(n): text = map(str,raw_input().split()) m = len(text) for i in range(m): if text[i] == 'Hoshino': print 'Hoshina', else: print text[i], print ''
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...
s162925560
p00101
Wrong Answer
n=int(input()) for i in range(n): inputs=list(map(str,input().split())) for j in inputs: if j=="Hoshino": print("Hoshina",end=" ") else: print(j,end=" ") print()
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...
s234996558
p00101
Wrong Answer
n=int(input()) for i in range(n): inputs=list(map(str,input().split())) for j in inputs: if j[:7]=="Hoshino": print("Hoshina",end=" ") else: print(j,end=" ") print()
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...
s426195891
p00101
Wrong Answer
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"+j[7:len(j)]+" " #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...
s373299707
p00101
Wrong Answer
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...
s217691126
p00101
Wrong Answer
N = int(raw_input()) for i in range(N): lis = raw_input().split() ans = [] for st in lis: if 'Hoshino' in st: s = st.find('Hoshino') ans.append(st[:s]+'Hoshina'+st[s+7:]) else: ans.append(st) else: 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...
s722272272
p00101
Wrong Answer
n = int(input()) for i in range(n): l = [s for s in input().split()] for s in l: if s == 'Hoshino': l[l.index(s)] = '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...
s513205943
p00101
Wrong Answer
#!/usr/bin/env python3 import sys input_lines = [i[:-1].split(' ') for i in sys.stdin.readlines()] str = "" for i in input_lines: line = '' for l in i: if l == 'Hoshino':line += 'Hoshina' else:line += l line+=' ' str += line[:-1]+'\n' print(str[:-1])
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...
s587028085
p00101
Wrong Answer
#!/usr/bin/env python3 import sys input_lines = [i[:-1].split(' ') for i in sys.stdin.readlines()] str = "" input_lines.remove(input_lines[0]) for i in input_lines: line = '' for l in i: if l == 'Hoshino':line += 'Hoshina' else:line += l line+=' ' str += line[:-1]+'\n' print(str[:-1])
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...
s168693550
p00101
Wrong Answer
n = int(raw_input()) for i in range(n): a = map(str,raw_input().split()) # print a if 'Hoshino' in a: a[a.index('Hoshino')] = 'Hoshina' print ' '.join(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...
s130550943
p00101
Wrong Answer
for i in xrange(input()): word = map(str,raw_input().split()) for j in xrange(len(word)): if word[j] == "Hoshino": print "Hoshina", else: print word[j], print ""
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...
s151920376
p00101
Wrong Answer
for _ in range(int(input())): s = input() if "Hoshino" in s: l = s.split() for i in range(len(l)): if "Hoshino" == l[i]: l[i] = "Hoshina" s = " ".join(l) print(s)
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...
s783748189
p00101
Wrong Answer
n=int(raw_input()) for i in xrange(n): s=raw_input() s.replace("Hoshino","Hoshina") print(s)
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...
s166797366
p00101
Wrong Answer
n=int(input()) s=[input() for i in range(n)] for i in s: if "Hoshino" in i: i=i.replace("Hoshino","Hoshina") for i in s: 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...
s298377818
p00101
Wrong Answer
n = int(input()) sentences = [str(input()) for i in range(n)] for sentence in sentences: sentence = sentence.split(' ') for word in range(len(sentence)): if sentence[word] == 'Hoshino': sentence[word] = 'Hoshina' print(' '.join(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...
s190266436
p00101
Wrong Answer
n = int(input()) for i in range(n): s = list(input().split()) for j in range(len(s)): if s[j] == 'Hoshino': if j == len(s) - 1: print("Hoshina", end = "") else: print("Hoshina", end = " ") else: if j == len(s) - 1: ...
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...
s080888651
p00101
Wrong Answer
n = int(input()) for i in range(n): s = list(input(). split()) ans = [] for j in s: if j == 'Hoshino': ans.append("Hoshina") else: ans.append(j) for j in range(len(s)): if j != len(s) - 1: print(ans[j], end = " ") else: 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...
s775595725
p00101
Wrong Answer
import sys def main(): for line in sys.stdin: 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...
s448315100
p00101
Wrong Answer
N = int(input()) ans = "" for i in range(N): inp = list(map(str, input().split())) tmp = "" for j in range(len(inp)): if inp[j] == "Hoshino": inp[j] = "Hoshina" tmp += inp[j] + " " ans += tmp + "\n" 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...
s067003337
p00101
Wrong Answer
N = int(input()) ans = "" for i in range(N): inp = list(map(str, input().split())) tmp = "" for j in range(len(inp)): if inp[j] == "Hoshino": inp[j] = "Hoshina" tmp += inp[j] + " " if i != N-1: ans += tmp + "\n" 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...
s556536206
p00101
Wrong Answer
N = int(input()) ans = "" for i in range(N): inp = list(map(str, input().split())) tmp = "" for j in range(len(inp)): if inp[j] == "Hoshino": inp[j] = "Hoshina" tmp += inp[j] + " " if i != N-1: ans += tmp + "\n" else: ans += tmp 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...
s595941625
p00101
Wrong Answer
N = int(input()) for i in range(N): inp = list(map(str, input().split())) ans = "" for j in range(len(inp)): if inp[j] == "Hoshino": inp[j] = "Hoshina" ans += inp[j] + " " 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...
s658672715
p00101
Wrong Answer
time=input() for i in range(time): line=map(str,raw_input().split()) for j in line: if j=="Hoshino": num=line.index("Hoshino") line[num]="Hoshina" for k in line: print k, print ""
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...
s964006422
p00101
Wrong Answer
time=input() for i in range(time): line=map(str,raw_input().split()) for j in line: if j=="Hoshino": num=line.index("Hoshino") line[num]="Hoshina" if j=="Hoshino.": num=line.index("Hoshino.") line[num]="Hoshina." for k in line: print k...
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...
s364699123
p00101
Wrong Answer
n = int(input()) for i in range(n): arr = list(input().split()) for i in range(len(arr)): if arr[i] == 'Hoshino': arr[i] = 'Hoshina' for i in range(len(arr)-1): print(arr[i],end = ' ') print(arr[-1])
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...
s769416822
p00101
Wrong Answer
n = int(input()) arr = ['']*n for i in range(n): arr[i] = list(input().split()) for i in range(n): for j in range(len(arr[i])): if arr[i][j] == 'Hoshino': arr[i][j] = 'Hoshina' for i in range(n): for j in range(len(arr[i])-1): print(arr[i][j],end = ' ') print(arr[i][-1])
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...
s766807022
p00101
Wrong Answer
n=input() for i in range(n): s=raw_input().split() for j in range(len(s)): if s[j]=="Hoshino": s[j]="Hoshina" print ' '.join(s)
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...
s820960511
p00101
Wrong Answer
n = int(input()) datasets=[None]*n for i in range(n): datasets[i] = input() def rep(a): if a == "Hoshino": return "Hoshina" else: return a for data in datasets: words = data.split(" ") words = list(map(rep,words)) print(" ".join(words))
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...
s644516176
p00101
Wrong Answer
# Hoshinori # Hoshino's n = int(input()) datasets=[None]*n for i in range(n): datasets[i] = input() def rep(a): if a == "Hoshino": return "Hoshina" elif a == "Hoshino's": return "Hoshina's" else: return a for data in datasets: words = data.split(" ") words = list(map(rep,words)) print(" ".j...
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...
s366284657
p00101
Wrong Answer
# Hoshinori # Hoshino's n = int(input()) datasets=[None]*n for i in range(n): datasets[i] = input() def rep(a): if a == "Hoshino": return "Hoshina" elif a == "Hoshino's": return "Hoshina's" elif a == "Hoshino,": return "Hoshina," else: return a for data in datasets: words = data.split(" "...
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...
s055598503
p00101
Wrong Answer
# 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.split(" ") words = list(map(rep,words)) print(" ".join(wo...
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...
s831451196
p00101
Wrong Answer
# 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.split(" ") words = list(map(rep,words)) print(" "...
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...
s678499656
p00101
Wrong Answer
# 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...
s132383280
p00101
Wrong Answer
# 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...
s004394292
p00101
Wrong Answer
for i in range(int(input())): ls = list(input().split()) for s in ls: if s == "Hoshino": ls[ls.index(s)] = "Hoshina" print(*ls)
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...
s417351789
p00101
Wrong Answer
n=int(input()) for i in range(n): s=input() for i in range(len(s)-7): if s[i:i+6]=='Hoshino': s[i:i+6]='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...
s611419389
p00101
Wrong Answer
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:j+6]='Hoshina' spam.append(s) for i in range(len(spam)): print(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...
s341568458
p00101
Wrong Answer
n=int(input()) spam=[] for i in range(n): s=input() for j in range(len(s)-6): if s[j:j+6]=='Hoshino': s[j:j+6]='Hoshina' spam.append(s) for i in range(len(spam)): print(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...
s031103566
p00101
Wrong Answer
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:j+6]='Hoshina' spam.append(s) for i in range(len(spam)): print(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...
s462523541
p00101
Wrong Answer
num = int(input()) for i in range(num): box = input() box.replace("Hoshino", "Hoshina") print(box)
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...
s785383539
p00101
Wrong Answer
import sys import math r = sys.stdin.readlines() r.pop(0) n = [[i for i in (j.split())] for j in r] #n is list of each lines print(n) for line in n: for c in line: if c == "hosino": c = "hosina" print(c,end = " ") print("")
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...
s348159148
p00101
Wrong Answer
import sys import math r = sys.stdin.readlines() r.pop(0) r.pop(0) n = [[i for i in (j.split())] for j in r] #n is list of each lines print(n) for line in n: for c in line: if c == "hosino": c = "hosina" print(c,end = " ") print("")
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...
s575905179
p00101
Wrong Answer
import sys import math r = sys.stdin.readlines() r.pop(0) r.pop(0) n = [[i for i in (j.split())] for j in r] #n is list of each lines for line in n: for c in line: if c == "hosino": c = "hosina" print(c,end = " ") print("")
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...
s631488811
p00101
Wrong Answer
import sys import math r = sys.stdin.readlines() r.pop(0) r.pop(0) n = [[i for i in (j.split())] for j in r] #n is list of each lines for line in n: for c in line: if c == "hosino": c = "hosina" print(c,end = " ") print("")
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...
s654762996
p00101
Wrong Answer
# coding:utf-8 inputCount = int(input()) while 0 < inputCount: content = input().split(" ") for index in range(0, len(content)): if content[index] == "Hoshino": content[index] = "Hoshina" print(" ".join(content)) inputCount -= 1
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...
s222804051
p00101
Wrong Answer
count = int(input()) for i in range(count): hoge = map(str,raw_input().split()) for j in range(0,len(hoge)): if hoge[j] == "Hoshino": hoge[j] = "Hoshina" continue else: continue for j in range(0,len(hoge)): print hoge[j], print ""
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...
s920114968
p00101
Wrong Answer
import sys R = lambda:map(int,raw_input().split()) n = int(raw_input()) for i in xrange(n): s = raw_input().split() for j in xrange(len(s)): if s[j] == 'Hoshino': s[j] = 'Hoshina' print " ".join(s)
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...
s208057384
p00101
Wrong Answer
import sys R = lambda:map(int,raw_input().split()) n = int(raw_input()) for i in xrange(n): s = raw_input().split() for j in xrange(len(s)): if s[j] == 'Hoshino': s[j] = 'Hoshina' elif s[j] == 'Hoshino.': s[j] = 'Hoshina.' print " ".join(s)
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...
s825731797
p00101
Wrong Answer
#!/usr/bin/env python from __future__ import division, print_function from sys import stdin, exit import re def main(readline=stdin.readline): sub = re.compile(r'\bHoshino\b').sub for _ in range(int(readline())): print(sub('Hoshina', readline()), end='') exit() if __name__ == '__main__': mai...
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...
s594033007
p00101
Wrong Answer
#!/usr/bin/env python from __future__ import division, print_function from sys import stdin, exit def main(readline=stdin.readline): for _ in range(int(readline())): words = readline().split() print(*('Hoshina' if w == 'Hoshino' else w for w in words)) exit() if __name__ == '__main__': m...
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...
s541954878
p00101
Wrong Answer
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...