submission_id string | problem_id string | status string | code string | input string | output string | problem_description string |
|---|---|---|---|---|---|---|
s021548243 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
workers = {}
greatworkers = 0
for i in range(n):
person, price, number = map(int, input().split())
if person in workers:
workers[person] += price * number
else:
workers[person] = price * number
for worker in workers:
if workers[worker] >= 1000000:
p... | 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 ... |
s472258796 | p00100 | Wrong Answer | from collections import defaultdict as dd
while True:
n=int(input())
if n==0:
break
data=dd(int)
for i in range(n):
a,b,c=map(int,input().split())
data[a]+=b*c
f=False
for i,j in data.items():
if j>=1000000:
print(i)
f=True
if f:
... | 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 ... |
s564690033 | p00100 | Wrong Answer | from collections import defaultdict as dd
while True:
n=int(input())
if n==0:
break
data=dd(int)
for i in range(n):
a,b,c=map(int,input().split())
data[a]+=b*c
f=False
for i,j in data.items():
if j>=1000000:
print(i)
f=True
if not f:
... | 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 ... |
s381582466 | p00100 | Wrong Answer | # coding: utf-8
# Here your code !
from collections import defaultdict as dd
while True:
n=int(input())
if n==0:
break
data=dd(int)
for i in range(n):
a,b,c=map(int,input().split())
data[a]+=b*c
f=False
for i,j in data.items():
if j>=1000000:
print(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 ... |
s846111623 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
ID = []
sales = {}
for i in range(n):
ipq = list(map(int, input().split()))
ID = ipq[0]
pq = ipq[1] * ipq[2]
if ID in sales:
sales[ID] += pq
else:
sales[ID] = pq
t = -1
for 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 ... |
s633393354 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
ID = []
sales = {}
for i in range(n):
ipq = list(map(str, input().split()))
ID = ipq[0]
pq = int(ipq[1]) * int(ipq[2])
if ID in sales:
sales[ID] += pq
else:
sales[ID] = pq
t = -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 ... |
s926826914 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
ID = []
sales = {}
for i in range(n):
ipq = list(map(str, input().split()))
ID = int(ipq[0])
pq = int(ipq[1]) * int(ipq[2])
if ID in sales:
sales[ID] += pq
else:
sales[ID] = pq
t... | 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 ... |
s991513400 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
ID = []
sales = {}
for i in range(n):
ipq = list(map(int, input().split()))
ID = ipq[0]
pq = ipq[1] * ipq[2]
if ID in sales:
sales[ID][1] += pq
else:
sales[ID] = [ID, pq]
t = -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 ... |
s250349898 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
ID = []
sales = {}
for i in range(n):
ipq = list(map(int, input().split()))
ID = ipq[0]
pq = ipq[1] * ipq[2]
if ID in sales:
sales[ID][1] += pq
else:
sales[ID] = [ID, pq]
t = -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 ... |
s130574094 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
ID = []
sales = {}
for i in range(n):
ipq = list(map(int, input().split()))
ID = ipq[0]
pq = ipq[1] * ipq[2]
if ID in sales:
sales[ID] += pq
else:
sales[ID] = pq
t = True
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 ... |
s107374413 | p00100 | Wrong Answer | while True:
time=input()
if time==0:
break
worr={}
mem=[]
for i in range(time):
shain=map(int, raw_input().split())
if shain[0] not in worr:
worr[shain[0]]=shain[1]*shain[2]
mem.append(shain[0])
else:
worr[shain[0]]+=shain[1]*shain[2]
mem.sort()
check=1
for i in mem:
if worr[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 ... |
s237669944 | p00100 | Wrong Answer | while True:
time=input()
if time==0:
break
worr={}
mem=[]
for i in range(time):
shain=map(int, raw_input().split())
if shain[0] not in worr:
worr[shain[0]]=shain[1]*shain[2]
mem.append(shain[0])
else:
worr[shain[0]]+=shain[1]*shain[2]
mem.sort()
check=1
for i in mem:
if worr[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 ... |
s520482341 | p00100 | Wrong Answer | 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()))
sale_result={}
for t in range(0,n):
sale_result[inputs[t][0]]=0 # inputs[t][0] means the ID in the "n"th line.
for t in inputs:
sale_result[t[0]]+=t[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 ... |
s835193642 | p00100 | Wrong Answer | n = int(input())
while n != 0:
score = {}
for i in range(n):
e,p,q = list(map(int,input().split()))
if e in score:
score[e] += p*q
else:
score[e] = p*q
f = True
for e,v in score.items():
if v >= 1000000:
print(e)
f = False
... | 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 ... |
s504044688 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
d = [0]*4000
for i in range(n):
e_t,p,q = map(int,input().split())
d[e_t] += p*q
flag = 0
for i in range(4000):
if d[i] >= 1000000:
print(i)
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 ... |
s191491740 | p00100 | Wrong Answer | x = []
while True:
n = int(input())
if n == 0:
break
d = [0]*4000
for i in range(n):
e_t,p,q = map(int,input().split())
d[e_t] += p*q
flag = 0
for i in range(4000):
if d[i] >= 1000000:
x.append(i)
flag = 1
if flag == 0:
x.append... | 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 ... |
s044925822 | p00100 | Wrong Answer | while True:
n = int(input())
x = []
if n == 0:
break
d = [0]*4000
for i in range(n):
e,p,q = map(int,input().split())
d[e] += p*q
flag = 0
for i in range(4000):
if d[i] >= 1000000:
x.append(i)
flag = 1
if flag == 0:
print('N... | 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 ... |
s003714171 | p00100 | Wrong Answer | while True:
n = int(input())
x = []
if n == 0:
break
d = [0]*4000
for i in range(n):
e,p,q = map(int,input().split())
d[e] += p*q
flag = 0
for i in range(4000):
if d[i] >= 1000000:
print(i)
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 ... |
s164144145 | p00100 | Wrong Answer | while 1:
n=int(input())
if n==0:break
a={}
for _ in range(n):
b=list(map(int,input().split()))
if b[0] in a:a[b[0]]+=b[1]*b[2]
else:a[b[0]]=b[1]*b[2]
if max(a.values())<=999999:print('NA' )
else:
for i in a:
if a[i]>999999:print(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 ... |
s935529807 | p00100 | Wrong Answer | l = int(input())
while l != 0:
k = 0
for l in range(0,l):
li = input().split()
if int(li[1]) * int(li[2]) >= 10**6:
print(li[0])
k = 1
if k == 0:
print("NA")
l = int(input()) | 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 ... |
s207566572 | p00100 | Wrong Answer | while True:
n=int(input())
if n==0:break
d=dict()
for _ in range(n):
i,p,q=map(int, input().split())
d[i] = d[i]+p*q if i in d else p*q
b=True
for k, v in d.items():
if v >= 1000000:
print(k)
b=False
else:
if b: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 ... |
s501091197 | p00100 | Wrong Answer | while True:
n=int(input())
if n==0:break
d=dict()
for _ in range(n):
i,p,q=map(int, input().split())
d[i] = d[i]+p*q if i in d else p*q
b=True
ans=[]
for k, v in d.items():
if v >= 1000000:
ans.append(k)
b=False
else:
if b: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 ... |
s416368902 | p00100 | Wrong Answer | # -*- coding: utf-8 -*-
import sys
import os
import math
from collections import defaultdict
for s in sys.stdin:
n = int(s)
if n == 0:
break
d = defaultdict(int)
for i in range(n):
e, p, q = map(int, input().split())
d[e] += p * q
is_exist = False
for k, v in d.items(... | 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 ... |
s604617382 | p00100 | Wrong Answer | import sys
while True:
n = int(sys.stdin.readline().rstrip())
if n == 0:
break
member = {}
for i in range(n):
e,p,q = sys.stdin.readline().rstrip().split(' ')
if not e in member.keys():
member[e] = 0
member[e] += int(p) * int(q)
ret = sorted(member.items(... | 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 ... |
s970036185 | p00100 | Wrong Answer | while True:
n=int(input())
if n==0:break
res=[0 for i in range(4000)]
for i in range(n):
d=[int(num) for num in input().split(' ')]
res[d[0]-1]+=d[1]*d[2]
flag=False
for i in range(4000):
if res[i]>=1000000:
print(i+1)
flag=True
if flag==False:... | 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 ... |
s943535208 | p00100 | Wrong Answer | from pip._vendor.distlib.compat import raw_input
while True:
n = int(raw_input())
if n == 0: break
data = {}
order = []
for i in range(n):
id,price,quant = map(int, raw_input().split())
if id in data:
data[id] += price * quant
else:
data[id] = price * ... | 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 ... |
s011423357 | p00100 | Wrong Answer | while True :
n = int(input())
if n == 0 : break
box = {}
for _ in ([None]*n) :
e, p, q = map(int, input().split())
if e in box : box[e] += p * q
else : box[e] = p * q
check = 0
for _ in box :
if box[_] >= (10**6) :
print(_)
... | 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 ... |
s685563880 | p00100 | Wrong Answer | data_num = int(input())
nice_syatiku = 0
for data_num in range(data_num):
a,b,c = map(int,input().split())
Earnings = b * c
if Earnings >= 1000000:
print("a\n")
nice_syatiku += 1
if nice_syatiku == 0:
print("NA\n")
| 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 ... |
s211805115 | p00100 | Wrong Answer | data_num = int(input())
nice_syatiku = 0
for data_num in range(data_num):
a,b,c = map(int,input().split())
Earnings = b * c
if Earnings >= 1000000:
print(a)
nice_syatiku += 1
if nice_syatiku == 0:
print("NA\n")
| 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 ... |
s711365889 | p00100 | Wrong Answer | data_num = 1
while(data_num != 0):
data_num = int(input())
if data_num == 0:
break
nice_syatiku = 0
for data_num in range(data_num):
a,b,c = map(int,input().split())
Earnings = b * c
if Earnings >= 1000000:
print(a)
nice_syatiku... | 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 ... |
s548220646 | p00100 | Wrong Answer | while True:
data_num = int(input())
if data_num == 0:
break
nice_syatiku = 0
for data_num in range(data_num):
a,b,c = map(int,input().split())
Earnings = b * c
if Earnings >= 1000000:
print(a)
nice_syatiku += 1
if nice_syati... | 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 ... |
s999197400 | p00100 | Wrong Answer | while True:
data_num = int(input())
if data_num == 0:
break
nice_syatiku = 0
for data_num in range(0,data_num,1):
print("datanum = {0}".format(data_num))
a,b,c = map(int,input().split())
Earnings = b * c
if Earnings >= 1000000:
print... | 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 ... |
s114381452 | p00100 | Wrong Answer | while True:
data_num = int(input())
if data_num == 0:
break
nice_syatiku = 0
for data_num in range(0,data_num,1):
a,b,c = map(int,input().split())
Earnings = b * c
if Earnings >= 1000000:
print(a)
nice_syatiku += 1
if nice_s... | 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 ... |
s903691535 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
d = dict()
for _ in range(n):
i, p, q = map(int, input().split())
d[i] = d[i]+p*q if i in d else p*q
tmp = sorted(d.items(), key=lambda x: x[0])
tmp = list(filter(lambda x: x[1] >= 1000000, tmp))
if len(tmp):
for t... | 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 ... |
s988904350 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
d = dict()
sep = []
for _ in range(n):
i, p, q = map(int, input().split())
if i in d:
d[i] += p*q
else:
d[i] = p*q
sep.append(i)
tmp = list(filter(lambda x: x[1] >= 1000000, d.items(... | 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 ... |
s053257192 | p00100 | Wrong Answer | # -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0100&lang=jp
"""
import sys
def solve(data):
result = []
total_sales = [0 for _ in range(4002)]
for id, unit_price, quantity in data:
total_sales[id] += unit_price * quantity
for i, sales in enumerate(total_sa... | 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 ... |
s318724303 | p00100 | Wrong Answer | # -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0100&lang=jp
"""
import sys
def solve(data):
result = []
total_sales = [0 for _ in range(4000+1)]
for id, unit_price, quantity in data:
total_sales[id] += unit_price * quantity
for i, sales in enumerate(total_... | 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 ... |
s268766658 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
rs = {}
for i in range(n):
arr = [int(x) for x in input().split(' ')]
s = arr[1] * arr[2]
rs[arr[0]] = (rs.get(arr[0]) or 0) + s
top = [k for k, v in rs.items() if v > 1000000 ]
if len(top) == 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 ... |
s029223523 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
rs = {}
for i in range(n):
cid, p, q = map(int, input().strip().split(' '))
rs[cid] = (rs.get(cid, None) or 0) + p * q
top = [k for k, v in rs.items() if v >= 1000000]
if len(top) == 0:
print('NA')
else:
... | 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 ... |
s613140627 | p00100 | Wrong Answer | 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(self.employees) == 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 ... |
s427583341 | p00100 | Wrong Answer | 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(self.employees) == 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 ... |
s604404634 | p00100 | Wrong Answer | while(True):
n = int(input())
if n==0: break
d = dict()
s = set()
c = 0
for _ in range(n):
id_,p,q = map(int,input().split())
if id_ in s:
d[id_] += p*q
else:
s.add(id_)
d[id_] = p*q
for i in s:
if d[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 ... |
s889045964 | p00100 | Wrong Answer | while(True):
n = int(input())
if n==0: break
d = dict()
s = set()
c = 0
for _ in range(n):
id_,p,q = map(int,input().split())
if id_ in s:
d[id_] += p*q
else:
s.add(id_)
d[id_] = p*q
for i in s:
if d[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 ... |
s219008713 | p00100 | Wrong Answer | while(True):
n = int(input())
if n==0: break
d = dict()
c = 0
for _ in range(n):
id_,p,q = map(int,input().split())
if id_ in d:
d[id_] += p*q
else:
d[id_] = p*q
for i in d:
if d[i] >= 1000000:
print(i)
c+=1
if c... | 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 ... |
s495841275 | p00100 | Wrong Answer | while(True):
n = int(input())
if n==0:
break
d = dict()
c = 0
for _ in range(n):
id_,p,q = map(int,input().split())
if id_ in d:
d[id_] += p*q
else:
d[id_] = p*q
for i in d:
print(d[i])
if d[i] >= 1000000:
print(... | 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 ... |
s721222727 | p00100 | Wrong Answer | while(True):
n = int(input())
if n==0:
break
d = dict()
c = 0
for _ in range(n):
id_,p,q = map(int,input().split())
if id_ in d:
d[id_] = d[id_] + p*q
else:
d[id_] = p*q
for i in d:
print(d[i])
if d[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 ... |
s220666116 | p00100 | Wrong Answer | while(True):
n = int(input())
if n==0: break
d = dict()
s = set()
l = list()
for _ in range(n):
id_,p,q = map(int,input().split())
if id_ in s:
d[id_] += p*q
else:
s.add(id_)
d[id_] = p*q
for i in s:
if d[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 ... |
s330774603 | p00100 | Wrong Answer | while(True):
n = int(input())
if n==0: break
d = {}
c = 0
l = list()
for _ in range(n):
id_,p,q = map(int,input().split())
if id_ in d:
d[id_] += p*q
else:
d[id_] = p*q
l.append(id_)
for i in d:
if d[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 ... |
s677846505 | p00100 | Wrong Answer | import sys
import math
data =[0 for i in range(4000)]
p_data = []
while True:
n = int(input())
count = 0
if n == 0:
break
for i in range(n):
e,p,q = map(int, input().split())
data[e] = data[e] + p * q
if p_data.count(e) == 0:
p_data.append(e)
if i >= 1:
p_data.sort()
for i in range(len(p_data)):
... | 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 ... |
s811579377 | p00100 | Wrong Answer |
if __name__ == '__main__':
list = []
while (True):
n = int(input())
if (n == 0):
break
isNA = True
for i in range(n):
ds = input().split()
e = ds[0]
p = int(ds[1])
q = int(ds[2])
sales = p * q
... | 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 ... |
s988245291 | p00100 | Wrong Answer | list = []
while (True):
n = int(input())
if (n == 0):
break
isNA = True
for i in range(n):
ds = input().split()
e = ds[0]
p = int(ds[1])
q = int(ds[2])
sales = p * q
if (1000000 <= sales):
list.append(e)
isNA = False
... | 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 ... |
s677269827 | p00100 | Wrong Answer | # -*- coding: utf-8 -*-
import sys
while True:
n = int(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] ... | 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 ... |
s433405388 | p00100 | Wrong Answer | # -*- 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:
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 ... |
s815406067 | p00100 | Wrong Answer | # -*- 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:
j += 1
print(str(i))
if j == 0:
print... | 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 ... |
s253101105 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
data = [0] * 4001
for _ in range(n):
e, p, q = map(int, input().split())
data[e] += p*q
for i in range(1, 4001):
if data[i] >= 1000000:
print(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 ... |
s299558106 | p00100 | Wrong Answer | while True:
n = int(input())
if n == 0:
break
data = [0] * 4001
for _ in range(n):
e, p, q = map(int, input().split())
data[e] += p*q
flag = True
for i in range(1, 4001):
if data[i] >= 1000000:
print(i)
flag = False
if flag:
pr... | 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 ... |
s302066999 | p00100 | Wrong Answer | import sys
l = []
temp = []
d = dict()
for input in sys.stdin:
l.append(input)
i = 0
while(i < len(l)):
j = i+1
while(j <= int(l[i])+int(i)):
temp = l[j].split()
if(d.get(int(temp[0]),0) == 0):
d[int(temp[0])] = int(temp[1])*int(temp[2])
else:
d[int(temp[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 ... |
s845072112 | p00100 | Wrong Answer | while 1:
a={};b=0
n=int(input())
if n==0:break
for _ in[0]*n:
e,p,q=map(int,input().split())
a.setdefault(e,0);a[e]+=p*q
for e in a:
if a[e]>=1e6:print(e);b=1
if b: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 ... |
s535594120 | p00100 | Wrong Answer | while True:
a =int(input())
if a ==0:break
hito =[]
t =0
for i in range(a):
hoge = map(int,raw_input().split())
if hoge[1]*hoge[2] >= 1000000:
print hoge[0]
t+=1
if t == 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 ... |
s907107816 | p00100 | Wrong Answer | while True:
count = int(input())
if count == 0: break
ans,v = 0,0
for i in range(count):
a,b,c = map(str,raw_input().split())
v = int(b)*int(c)
v= str(v)
if len(v) >= 7:
print a
ans +=1
if ans == 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 ... |
s830222406 | p00100 | Wrong Answer | while True:
count = int(input())
if count == 0: break
ans,v,t = 0,0,[]
for i in range(count):
a,b,c = map(str,raw_input().split())
v = int(b)*int(c)
v= str(v)
if len(v) >= 7:
if a in t:
continue
else:
print a
t.append(a)
ans +=1
continue
if a... | 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 ... |
s566815253 | p00100 | Wrong Answer | def nz(a):
if a is None:
return 0
else: return a
while 2 > 1:
line_num = int(raw_input())
if line_num < 1:
break
mydict = {}
for n in range(line_num):
dat = map(int, raw_input().split(" "))
mydict[dat[0]] = nz(mydict.get(dat[0])) + dat[1] * dat[2]
mylist = []
flg = 0
for n in mydict.keys():
if mydic... | 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 ... |
s978249272 | p00100 | Wrong Answer | def nz(a):
if a is None:
return 0
else: return a
disp = ''
while 2 > 1:
line_num = int(raw_input())
if line_num < 1:
break
mydict = {}
for n in range(line_num):
dat = map(int, raw_input().split(" "))
mydict[dat[0]] = nz(mydict.get(dat[0])) + dat[1] * dat[2]
mylist = []
flg = 0
for n in mydict.keys():... | 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 ... |
s893103101 | p00100 | Wrong Answer | def nz(a):
if a is None:
return 0
else: return a
while 2 > 1:
line_num = int(raw_input())
if line_num < 1:
print 'NA'
break
mydict = {}
for n in range(line_num):
dat = map(int, raw_input().split(" "))
mydict[dat[0]] = nz(mydict.get(dat[0])) + dat[1] * dat[2]
mylist = []
flg = 0
for n in mydict.keys(... | 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 ... |
s909123020 | p00100 | Wrong Answer | while(True):
x = int(raw_input())
if x==0 : break
flag=0
for i in range(x):
list = [int(y) for y in (raw_input()).split()]
if(list[1]*list[2]>=1000000):
print list[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 ... |
s176428972 | p00100 | Wrong Answer | while(True):
x = int(raw_input())
if x==0 : break
flag=0
for i in range(x):
list = [int(y) for y in (raw_input()).split()]
if(list[1]*list[2]>999999):
print list[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 ... |
s355597688 | p00100 | Wrong Answer | while True:
NA = True
n = int(raw_input())
if n == 0: break
for i in range(n):
data = raw_input().split()
if int(data[1]) * int(data[2]) >= 1000000:
NA = False
print data[0]
if NA: 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 ... |
s320992720 | p00100 | Wrong Answer | while True:
NA = True
n = int(raw_input())
if n == 0: break
for i in range(n):
data = map(int, raw_input().split())
if data[1] * data[2] >= 1000000:
NA = False
print data[0]
if NA: 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 ... |
s092997275 | p00100 | Wrong Answer | while True:
a = input()
if a == 0: break
ans = {}
for i in range(a):
mo = map(int,raw_input().split(" "))
if str(mo[0]) in ans.keys():
ans[str(mo[0])] += mo[1]*mo[2]
else:
ans[str(mo[0])] = mo[1]*mo[2]
ans2 =0
for j in ans:
if ans[j] >= 100... | 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 ... |
s691066165 | p00100 | Wrong Answer | while True:
a = input()
if a == 0: break
ans = {}
for i in range(a):
mo = map(int,raw_input().split(" "))
if str(mo[0]) in ans.keys():
ans[str(mo[0])] += mo[1]*mo[2]
else:
ans[str(mo[0])] = mo[1]*mo[2]
ans3 =[]
ans2 =0
for j in ans:
if ... | 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 ... |
s117682005 | p00100 | Wrong Answer | while True:
n = int(input())
if n is 0:
break
dic = {}
for i in xrange(n):
key,p,q = map(int,raw_input().split())
if key in dic:
dic[key] += p*q
else:
dic[key] = p*q
flag = False
for i in dic.items():
if i[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 ... |
s845168742 | p00100 | Wrong Answer | while 1:
n=input()
if n==0: break
ans={}
x=tuple([tuple(map(int,raw_input().split())) for _ in range(n)])
for a,b,c in x:
ans.setdefault(a,0)
ans[a]+=b*c
d=sorted(ans.items(), cmp=lambda x,y : x[0] < y[0])
d=[k for k,v in d if v>=1000000]
if len(d)==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 ... |
s624460842 | p00100 | Wrong Answer | while 1:
n=input()
if n==0: break
ans={}
x=[raw_input().split() for _ in range(n)]
for a,b,c in x:
ans.setdefault(a,0)
ans[a]+=int(b)*int(c)
y=[k for k,v in ans.items() if v>=1000000]
y.sort()
if len(y)==0:
print 'NA'
else:
for z in y:
prin... | 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 ... |
s400603025 | p00100 | Wrong Answer | while True:
n = int(raw_input())
if n == 0:
break
data = []
for i in range(n):
n, p, s = map(int, raw_input().split())
if data.count(n) == 0:
data.append([n,p*s])
else:
data[data.index(n)] += p*s
data.sort()
flag = 0
for 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 ... |
s712219325 | p00100 | Wrong Answer | while True:
n = int(raw_input())
if n == 0:
break
data = []
for i in range(n):
n, p, s = map(int, raw_input().split())
if data.count(n) == 0:
data.append([n,p*s])
else:
data[data.index(n)][1] += p*s
data.sort()
flag = 0
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 ... |
s954728147 | p00100 | Wrong Answer | while True:
n = int(raw_input())
if n == 0: break
data = {}
for i in range(n):
id,price,quant = map(int, raw_input().split())
if id in data:
data[id] += price*quant
else:
data[id] = price*quant
if max(data.values()) < 1000000:
print "NA"
else:
for k,v in sorted(data.items(), key = lambda x:x[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 ... |
s408003374 | p00100 | Wrong Answer | while True:
n = int(raw_input())
if n == 0: break
data = {}
for i in range(n):
id,price,quant = map(int, raw_input().split())
if id in data:
data[id] += price*quant
else:
data[id] = price*quant
if max(data.values()) < 1000000:
print "NA"
else:
for k,v in sorted(data.items()):
if v >= 1000000: p... | 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 ... |
s894963747 | p00100 | Wrong Answer | while True:
n = int(raw_input())
if n == 0: break
data = {}
for i in range(n):
id,price,quant = map(int, raw_input().split())
if id in data:
data[id] += price*quant
else:
data[id] = price*quant
if max(data.values()) < 1000000:
print "NA"
else:
for k,v in data.items():
if v >= 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 ... |
s149298508 | p00100 | Wrong Answer | while True:
N = input()
if not N:
break
m = dict()
for i in range(N):
a, b, c = map(int, raw_input().split())
m[a] = (m[a] if a in m else 0) + b * c
l = [str(k) for k, v in m.items() if v >= 1000000 ]
for i in l:
print(i)
if not len(l):
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 ... |
s463197468 | p00100 | Wrong Answer | while True:
N = input()
if not N:
break
m = dict()
o = []
for i in range(N):
a, b, c = map(int, raw_input().split())
o.append(a)
m[a] = (m[a] if a in m else 0) + b * c
for i in set(o):
if m[i] >= 1000000:
print(i)
if max(m.values()) < 1000000:
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 ... |
s115146475 | p00100 | Accepted | while True:
n = int(input())
if n == 0: break
data = {}
staff = []
for i in range(n):
tmp = list(map(int, input().split(' ')))
if tmp[0] in data:
data[tmp[0]] += tmp[1] * tmp[2]
else:
data[tmp[0]] = tmp[1] * tmp[2]
staff.append(tmp[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 ... |
s264075682 | p00100 | Accepted | while True:
n = int(raw_input())
if n == 0:
break
sale = {}
order = []
for i in range(n):
j,p,q = map(int,raw_input().split())
if j in sale:
sale[j] += p * q
else:
sale[j] = p * q
order.append(j)
existflag = False... | 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 ... |
s953984997 | p00100 | Accepted | class sresult():
def judge(self,n):
list={}
list2=[]
for i in range(0,n):
str=raw_input()
array=str.split(" ")
no=int(array[0])
x=no
sale=int(array[1])
sold=int(array[2])
if x in list:
list[no]+=sale*sold
if list[no]>=1000000 and x not in list2:
list2.append(no)
else ... | 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 ... |
s646858527 | p00100 | Accepted | # Edit: 2014/09/25
# Lang: Python3
# Time: 0.xxs
#
from collections import OrderedDict
if __name__ == "__main__":
while True:
d = OrderedDict()
n = int(input())
if not n:
break # exit at n=0
for i in range(n):
s, p, m = map(int, input().strip("\n").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 ... |
s707030204 | p00100 | Accepted | import collections
while 1:
li=collections.defaultdict(int)
emplist=[]
n=int(input())
if n==0:
break
for i in range(n):
(emp,prc,num)=list(map(int,input().split()))
if emp not in emplist:
emplist.append(emp)
li[emp]+=prc*num
tmp=True
for i in emplist:
if li[i]>=1000000:
print(i)
tmp=False
if ... | 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 ... |
s936769284 | p00100 | Accepted | def f(n):
D={}
A=[]
for _ in range(n):
a,b,c=map(int,raw_input().split(' '))
if D.has_key(a): 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"]
return B
while 1:
n=input()
if n==0:break
x=f(n)
for e in x: 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 ... |
s547752891 | p00100 | Accepted | def f(n):
D={}
A=[]
for _ in range(n):
a,b,c=map(int,raw_input().split(' '))
if D.has_key(a): 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"]
return B
while 1:
n=input()
if n==0:break
for e in f(n): 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 ... |
s612131615 | p00100 | Accepted | def f(n):
D={}
A=[]
for _ in range(n):
a,b,c=map(int,raw_input().split(' '))
try: D[a]+=b*c
except:
D[a]=b*c
A.append(a)
B=[i for i in A if D[i]>=1e6]
if B==[]: B=["NA"]
return B
while 1:
n=input()
if n==0:break
for e in f(n): 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 ... |
s501733934 | p00100 | Accepted | def f(n):
D={}
A=[]
for _ in range(n):
a,b,c=map(int,raw_input().split(' '))
try: D[a]+=b*c
except:
D[a]=b*c
A.append(a)
B=[i for i in A if D[i]>=1e6]
if B==[]: B=["NA"]
return B
while 1:
n=input()
if n==0:break
x=f(n)
for e in x: 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 ... |
s481237273 | p00100 | Accepted | def f(n):
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"]
return B
while 1:
n=input()
if n==0:break
for e in f(n): 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 ... |
s703159948 | p00100 | Accepted | 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)
f=1
for i in A:
if D[i]>=1e6: print i; 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 ... |
s487107043 | p00100 | Accepted | 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 ... |
s620190715 | p00100 | Accepted | def f(n):
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"]
return B
while 1:
n=input()
if n==0: break
for e in f(n): 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 ... |
s381618004 | p00100 | Accepted | while 1:
n=input()
if n==0: break
D={}
A=[]
for _ in [0]*n:
a,b,c=map(int, raw_input().split())
if D.has_key(a): 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 ... |
s555453269 | p00100 | Accepted | while True:
n=int(input())
if n==0: break
l=[]
d={}
for _ in range(n):
a,b,c=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 ... |
s240082336 | p00100 | Accepted | # -*- coding: utf-8 -*-
while True:
n = int(raw_input())
if n == 0:
break
else:
IDdic={}
for k in range(n):
ID, p, q = map(int,raw_input().split())
if ID not in IDdic:
IDdic[ID] = [k, p*q]
elif ID in IDdic:
IDdic[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 ... |
s499182252 | p00100 | Accepted | while True:
try:
n=int(input())
except:
break
if n==0:
break
data={}
staff=[]
for i in range(n):
spam=list(map(int,input().split()))
if spam[0] in data.keys():
data[spam[0]]+=spam[1]*spam[2]
else:
data[spam[0]]=spam[1]*spam[... | 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 ... |
s433144419 | p00100 | Accepted | while True:
n = int(raw_input())
if n == 0:
break
data = {}
order = []
for i in range(n):
id,price,quant = map(int, raw_input().split())
if id in data:
data[id] += price*quant
else:
data[id] = price*quant
order.append(id)
if max(data.values()) < 1000000:
print "NA"
else:
for k in order:
... | 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 ... |
s223091099 | p00100 | Accepted | while True:
num = int(raw_input())
if num == 0: break
dic = {}
odr = []
for i in range(num):
uid, p, q = map(int, raw_input().split())
if dic.has_key(uid): dic[uid] += p * q
else:
dic[uid] = p * q
odr.append(uid)
if max(dic.values()) < 1000000: p... | 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 ... |
s147372228 | p00100 | Accepted | while True:
n = int(input())
if n == 0: break
data = {}
staff = []
for i in range(n):
tmp = list(map(int, input().split(' ')))
if tmp[0] in data:
data[tmp[0]] += tmp[1] * tmp[2]
else:
data[tmp[0]] = tmp[1] * tmp[2]
staff.append(tmp[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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.