submission_id string | problem_id string | status string | code string | input string | output string | problem_description string |
|---|---|---|---|---|---|---|
s973379781 | p00100 | Accepted | while True:
N = int(raw_input())
if N == 0: break
dic = {}
for i in range(N):
n, p, q = map(int, raw_input().split())
if not n in dic:
dic[n] = [i,p*q]
else:
dic[n][1] = dic[n][1]+p*q
lis = [(v[0], k) for k, v in dic.items() if v[1] >= 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 ... |
s197444869 | p00100 | Accepted | import sys
import collections
thre = 1000000
while 1:
n = int(raw_input())
if(n==0):break;
dic1 = collections.OrderedDict()
exceed = False
for i in range(n):
(a,b,c) = map(int , raw_input().split())
pre = 0
if(a in dic1): pre =dic1[a]
dic1[a] = pre + b * c
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 ... |
s030113723 | p00100 | Accepted | while True:
n = int(raw_input())
if n == 0:
break
dict = {}
date = []
for i in xrange(n):
num,a,b = map(long,raw_input().split())
if num in dict:
dict[num] += a * b
else:
dict[num] = a * b
date.append(num)
judge = True
for var in date:
if dict[var] >= 1000000:
print var
judge = 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 ... |
s379592397 | p00100 | Accepted | while True:
n = int(raw_input())
if n == 0:
break
dict = {}
date = []
for i in xrange(n):
num,a,b = map(int,raw_input().split())
if num in dict:
dict[num] += a * b
else:
dict[num] = a * b
date.append(num)
judge = True
for var in date:
if dict[var] >= 1000000:
print var
judge = 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 ... |
s038353640 | p00100 | Accepted | import sys
from collections import OrderedDict
data = OrderedDict()
for line in sys.stdin:
lst = line.split(' ')
if len( lst ) < 2:
cnt = 0
for key, val in data.items():
if va... | 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 ... |
s185799162 | p00100 | Accepted |
while True:
n = int(raw_input())
if n == 0:
break
employee_no = []
info = {}
for r in range(n):
no,unit_price,quantity = map(int, raw_input().split(' '))
if no in info:
info[no] += unit_price*quantity
else:
info[no] = unit_price*quantity
if not no in employee_no:
employee_no.append(no)
output_... | 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 ... |
s822219265 | p00100 | Accepted | while True:
n = int(input())
if n == 0:
break
c = 0
l = []
d = {}
for i in range(n):
num,x,y = map(int,input().split())
if num in d:
d[num] = d[num] + x*y
else:
d[num] = x*y
l.append(num)
for i in l:
if d[i] >= 1000000:
print(i)
c += 1
if c == 0:
pri... | 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 ... |
s839327334 | p00100 | Accepted | 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 ... |
s071182628 | p00100 | Accepted | def parse(i):
l = input().strip().split()
return ((i, l[0]), int(l[1]) * int(l[2]))
n = int(input())
while n:
ss, d = [parse(_) for _ in range(n)], {}
for s in ss:
k = s[0][1]
d[k] = (d[k][0], d[k][1] + s[1]) if k in d else s
d = [v[0] for v in d.values() if v[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 ... |
s882033793 | 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 ... |
s756536821 | p00100 | Accepted | while True:
n = int(input())
if n == 0: break
data = {}
staff = []
for i in range(n):
tmp = [int(el) for el in 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 ... |
s733567307 | p00100 | Accepted | while True:
n = int(input())
if n == 0: break
data = {}
staff = []
for i in range(n):
x, y, z = [int(el) for el in input().split(' ')]
if x in data:
data[x] += y * z
else:
data[x] = y * z
staff.append(x)
if max(data.values()) < 1e... | 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 ... |
s838345323 | p00100 | Accepted | from collections import OrderedDict
while True:
num = int(input())
if not num: break
result = OrderedDict()
for _ in range(num):
x, y, z = [int(el) for el in input().split(' ')]
if x in result:
result[x] += y*z
else:
result[x] = y*z
res = [print(k) 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 ... |
s299838964 | p00100 | Accepted | n = int(raw_input())
while n != 0:
pass_flag = 0
sales_dict = {}
id_list = []
for x in range(0, n):
data = raw_input()
data_list = map(int, data.split(' '))
if not data_list[0] in sales_dict:
sales_dict[data_list[0]] = data_list[1] * data_list[2]
id_list.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 ... |
s608611553 | p00100 | Accepted | while True:
n = int(input())
if n == 0:
break
flag = False
dic = {}
for j in range(n):
i,p,q = map(int, input().split())
if i not in dic:
dic[i] = [p*q, 0]
else:
dic[i][0] += p*q
if dic[i][0] >= 10**6 and dic[i][1] == 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 ... |
s701139044 | p00100 | Accepted | from sys import stdin
if __name__ == '__main__':
for line in stdin:
if int(line) == 0:
break
isEmpty = True
record = {}
for _ in range(int(line)):
employee = input().split(' ')
total = int(employee[1]) * int(employee[2])
if 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 ... |
s519610732 | p00100 | Accepted | from collections import OrderedDict
while True:
n = int(input())
if n == 0:
break
dic = OrderedDict()
for i in range(n):
line = input().split()
key = line[0]
sales = int(line[1]) * int(line[2])
if key in dic:
dic[key] += sales
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 ... |
s663972982 | p00100 | Accepted | from collections import OrderedDict
while True:
n = int(input())
if n == 0:
break
ans = OrderedDict()
for i in range(n):
e, p, q = [int(x) for x in input().split()]
if e in ans:
ans[e] += p * q
else:
ans[e] = p * q
flag = True
for k, v in ... | 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 ... |
s912361118 | p00100 | Accepted | while True:
num=int(input())
if num==0:
break
else:
li=[]
d={}
for i in range (num):
info=list(map(int,input().split()))
try:
d[info[0]]+=info[1]*info[2]
except:
d[info[0]]=info[1]*info[2]
li.... | 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 ... |
s738945764 | p00100 | Accepted | while True:
n = int(input())
if n == 0:
break
workers = {}
workernames = []
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
workernames.append(person)
for worker 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 ... |
s466355136 | p00100 | Accepted | 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]
check=1
for i in mem:
if worr[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 ... |
s363616343 | p00100 | Accepted | while True:
num = 0
n = int(input())
E_lis = []
pri_lis = []
if n == 0:
break
for i in range(n):
e,p,q = map(int,input().split())
if e in E_lis:
pri_lis[E_lis.index(e)] += p*q
else:
E_lis.append(e)
pri_lis.append(p * q)
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 ... |
s045719338 | p00100 | Accepted | n = int(input())
while n != 0:
score = {}
j = 0
for i in range(n):
e,p,q = list(map(int,input().split()))
if e in score:
score[e]["value"] += p*q
else:
score[e] = {"value":p*q, "index":j}
j += 1
f = {}
for e,v in score.items():
if v... | 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 ... |
s043767065 | p00100 | Accepted | while True:
n = int(input())
if n == 0:
break
d = {}
e = []
for i in range(n):
tmp = list(map(int, input().split(' ')))
if tmp[0] in d:
d[tmp[0]] += tmp[1] * tmp[2]
else:
d[tmp[0]] = tmp[1] * tmp[2]
e.append(tmp[0])
if max(d.v... | 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 ... |
s407347862 | p00100 | Accepted | while 1:
n=int(input())
if n==0:break
a={};c=[]
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];c.append(b[0])
if max(a.values())<=999999:print('NA' )
for i in c:
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 ... |
s378250559 | p00100 | Accepted | while True:
n = int(input())
if n == 0:
break
emp = [0] * 4001
used = set()
for i in range(n):
e, p, q = map(int, input().split())
emp[e] += p * q
if 1000000 <= emp[e] and e not in used:
print(e)
used.add(e)
if len(used) == 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 ... |
s550759444 | p00100 | Accepted | l = int(input())
while l != 0:
k = 0
A = []
B = []
for l in range(0,l):
li = input().split()
if li[0] in A:
i = A.index(li[0])
B[i] = B[i] + (int(li[1]) * int(li[2]))
else:
A.append(li[0])
B.append(int(li[1]) * int(li[2]))
for j,b in enumerate(B):
if b >= 10**6:
print(A[j])
k = 1
if 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 ... |
s520730711 | p00100 | Accepted | while True:
n = int(input())
if n == 0: break
d = dict()
order = []
for _ in range(n):
i, p, q = map(int, input().split())
d[i] = d[i]+p*q if i in d else p*q
if i not in order: order.append(i)
b = True
for o in order:
if d[o] > 999999:
print(o)
... | 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 ... |
s529099194 | p00100 | Accepted | while True:
N= int(input())
if N == 0:
break
D = {}
di = []
for n in range(N):
e,p,q = input().split()
p = int(p)
q = int(q)
if e not in di:
di.append(e)
D[e] = p * q
else:
D[e] = D[e] + p * q
flag = 0
for dj in di:
if D[dj] >= 10**6:
print(dj)
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 ... |
s001073571 | p00100 | Accepted | # -*- 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)
keys = []
for i in range(n):
e, p, q = map(int, input().split())
d[e] += p * q
if e not in 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 ... |
s768725036 | p00100 | Accepted | # coding: utf-8
# Here your code !
employeeSalesList = []
def resetDataset():
for count in range(len(employeeSalesList)):
employeeSalesList.pop(0)
def readDataCount():
return int(input())
def searchEmployeeSales(employeeId):
for data in employeeSalesList:
if data[0] == employeeId:
... | 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 ... |
s933057523 | p00100 | Accepted | # coding: utf-8
# Here your code !
employeeSalesList = []
def resetDataset():
del employeeSalesList[0 : len(employeeSalesList) + 1]
def readDataCount():
return int(input())
def searchEmployeeSales(employeeId):
for data in employeeSalesList:
if data[0] == employeeId:
return 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 ... |
s249037711 | p00100 | Accepted | # coding: utf-8
# Here your code !
employeeSalesList = []
def resetDataset():
del employeeSalesList[0 : len(employeeSalesList) + 1]
def readDataCount():
return int(input())
def searchEmployeeSales(employeeId):
for data in employeeSalesList:
if data[0] == employeeId:
return 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 ... |
s100440095 | p00100 | Accepted | # coding: utf-8
# Here your code !
employeeSalesList = []
def resetDataset():
del employeeSalesList[0 : len(employeeSalesList) + 1]
def readDataCount():
return int(input())
def searchEmployeeSales(employeeId):
for data in employeeSalesList:
if data[0] == employeeId:
return 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 ... |
s693858034 | p00100 | Accepted | # coding: utf-8
# Here your code !
employeeSalesList = []
def resetDataset():
del employeeSalesList[0 : len(employeeSalesList) + 1]
def readDataCount():
return int(input())
def searchEmployeeSales(employeeId):
for data in employeeSalesList:
if data[0] == employeeId:
return 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 ... |
s225394692 | p00100 | Accepted | # coding: utf-8
# Here your code !
def searchEmployeeSales(employeeId):
for data in employeeSalesList:
if data[0] == employeeId:
return data
newData = [employeeId, 0]
employeeSalesList.append(newData)
return newData
def printEmployeeOfDataset():
answerList = [data[0] for da... | 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 ... |
s022812915 | p00100 | Accepted | # coding: utf-8
# Here your code !
def searchEmployeeSales(employeeId):
for data in employeeSalesList:
if data[0] == employeeId:
return data
newData = [employeeId, 0]
employeeSalesList.append(newData)
return newData
dataCount = int(input())
while dataCount > 0:
employeeSale... | 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 ... |
s660645097 | p00100 | Accepted | dataCount = int(input())
while dataCount > 0:
employeeSalesList = []
for _ in range(dataCount):
dataList = input().split(" ")
employeeId, price = dataList[0], int(dataList[1]) * int(dataList[2])
for data in employeeSalesList:
if data[0] == employeeId:
data[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 ... |
s429944660 | p00100 | Accepted | # coding: utf-8
# Here your code !
dataCount = int(input())
while dataCount > 0:
employeeSalesList = []
for _ in range(dataCount):
dataList = input().split(" ")
employeeId, price = int(dataList[0]), int(dataList[1]) * int(dataList[2])
found = False
for data in employeeSalesList:... | 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 ... |
s648341321 | p00100 | Accepted | # coding: utf-8
# Here your code !
def parseData(line):
dataList = line.split(" ")
return int(dataList[0]), int(dataList[1]) * int(dataList[2])
dataCount = int(input())
while dataCount > 0:
employeeSalesList = []
for _ in range(dataCount):
employeeId, price = parseData(input())
found =... | 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 ... |
s422892537 | p00100 | Accepted | from collections import OrderedDict
while True:
n = int(input())
if not n:
break
ds = OrderedDict()
for _ in range(n):
i, p, q = input().split()
ds[i] = ds.get(i, 0) + int(p) * int(q)
ds = OrderedDict((i, v) for i, v in ds.items() if v >= 1000000)
if ds:
... | 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 ... |
s942139022 | p00100 | Accepted | import sys
while True:
n = int(sys.stdin.readline().rstrip())
if n == 0:
break
members = []
sales = {}
for i in range(n):
e,p,q = sys.stdin.readline().rstrip().split(' ')
if not e in members:
members.append(e)
sales[e] = 0
sales[e] += int(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 ... |
s018964962 | p00100 | Accepted | while True:
n=int(input())
if n==0:break
res={}
li=[]
for i in range(n):
d=[int(num) for num in input().split(' ')]
if d[0]-1 in res:
res[d[0]-1]+=d[1]*d[2]
else:
res[d[0]-1]=d[1]*d[2]
li.append(d[0]-1)
flag=False
for i in li:
... | 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 ... |
s803432659 | p00100 | Accepted | 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 ... |
s966329428 | p00100 | Accepted | from collections import OrderedDict
while True :
n = int(input())
if n == 0 : break
box = OrderedDict()
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... | 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 ... |
s775484869 | p00100 | Accepted | n = int(input())
while n != 0:
earnings = []
for i in range(0,n):
a = str.split(input(),' ')
if i > 0 :
for j in range(0,len(earnings)):
if a[0] == earnings[j][0]:
earnings[j][1] = str(int(earnings[j][1])+(int(a[1])*int(a[2])))
break
if j == len(earnings) - 1:earnings.append([a[0],str(int(a[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 ... |
s205314062 | p00100 | Accepted | 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 ... |
s793520865 | p00100 | Accepted | import sys
while True:
n = int(sys.stdin.readline().rstrip())
if n == 0:
break
members = []
sales = {}
for i in range(n):
e,p,q = sys.stdin.readline().rstrip().split(' ')
if not e in members:
members.append(e)
sales[e] = 0
sales[e] += int(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 ... |
s946015000 | p00100 | Accepted | # -*- 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
if total_sales[id] >= 100000... | 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 ... |
s857513059 | p00100 | Accepted | # -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0100&lang=jp
"""
import sys
from collections import OrderedDict
def solve(data):
# ?£???????1,000,000??\????????????ID?????????
# ??????????????????????????°????????´??????????????????ID?????\?????????????????????????????????... | 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 ... |
s554686211 | p00100 | Accepted | # Aizu Problem 0100: Sale Result
#
import sys, math, os
# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
sys.stdin = open("sample-input.txt", "rt")
while True:
N = int(input())
if N == 0:
break
sales = {}
good = False
order = []
for n in range(N):
i, 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 ... |
s899310275 | p00100 | Accepted | while(True):
n = int(input())
if n == 0:
break
c = 0
l = []
d = {}
for i in range(n):
num,x,y = map(int,input().split())
if num in d:
d[num] = d[num] + x*y
else:
d[num] = x*y
l.append(num)
for i in l:
if d[i] >= 1000... | 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 ... |
s308088019 | p00100 | Accepted | 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 l:
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 ... |
s824003319 | p00100 | Accepted | 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)
for i in range(len(p_data)):
if data[p_data[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 ... |
s522690854 | p00100 | Accepted | 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]+=int(b)*int(c)
else:L[a]=int(b)*int(c)
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 ... |
s215967604 | p00100 | Accepted | 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:
if L[a]>=1e6:continue
L[a]+=b*c
else:L[a]=b*c
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 ... |
s866410348 | p00100 | Accepted | 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)
d=b*c
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 ... |
s334869004 | p00100 | Accepted | while 1:
n=int(input())
if not n:break
f=1
L={}
for a,b,c in [input().split() for i in range(n)]:
d=int(b)*int(c)
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 ... |
s494716063 | p00100 | Accepted | while 1:
n=int(input())
if not n:break
f=1
L={}
for a,b,c in [input().split() for i in range(n)]:
d=int(b)*int(c)
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 ... |
s268791664 | p00100 | Accepted | import sys
from collections import OrderedDict
#from me.io import dup_file_stdin
#@dup_file_stdin
def solve():
while True:
n = int(sys.stdin.readline())
if n==0 :
break
emps = OrderedDict()
for i in range(n):
no,price,amount = map(int,sys.stdin.readline().spl... | 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 ... |
s350250173 | p00100 | Accepted | while True:
n = int(input())
if n == 0:
break
data = [0] * 4001
order = []
for _ in range(n):
e, p, q = map(int, input().split())
data[e] += p*q
if e not in order:
order.append(e)
flag = True
for e in order:
if data[e] >= 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 ... |
s381184017 | p00100 | Accepted | # coding:utf-8
while (True):
inputCount = int(input())
if inputCount == 0:
break
employeeNumber = []
employeePrice = []
while 0 < inputCount:
inputNum = [int(item) for item in input().split(" ")]
price = inputNum[1] * inputNum[2]
if inputNum[0] in employeeNumber... | 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 ... |
s839869717 | p00100 | Accepted | while True:
n = int(input())
if n == 0:
break
c = 0
l = []
d = {}
for i in range(n):
num,x,y = [int(i) for i in input().split()]
if num in d:
d[num] = d[num] + x*y
else:
d[num] = x*y
l.append(num)
for i in l:
if d[i] >= 1000000:
print(i)
c += 1
if c == 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 ... |
s304203964 | p00100 | Accepted | while 1:
a={};b=1
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=0
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 ... |
s051628712 | p00100 | Accepted | while True:
no = {}
n = int(input())
if (n == 0):
break
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 (e not in no):
no[e] = s
else:
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 ... |
s433975225 | p00100 | Accepted | while True:
n = int(input())
if not n:
break
dic = {}
for i in range(n):
e, p, q = map(int, input().split())
if e in dic:
dic[e] = (dic[e][0], dic[e][1] + p * q)
else:
dic[e] = (i, p * q)
lst = []
for k in dic:
if dic[k][1] >= 1000000:
lst.append((dic[k][0], 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 ... |
s971494471 | p00100 | Accepted | e=[]
while 1:
l=[list(map(int,input().split())) for i in range(int(input()))]
if not l:break
d={}
for i in l:
if i[0] not in d:
d[i[0]]=i[1]*i[2]
else:
d[i[0]]+=i[1]*i[2]
e.append(d)
f=0
for i in e:
f=0
for j in i.items():
if j[1]>=1000000:
print(j[0])
f=1
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 ... |
s511595754 | p00100 | Accepted | # AOJ 0100 Sale Result
# Python3 2018.6.17 bal4u
while True:
n = int(input())
if n == 0: break
id = []
pq = [-1]*4001
for i in range(n):
e, p, q = list(map(int, input().split()))
if pq[e] < 0:
id.append(e)
pq[e] = p*q
else: pq[e] += p*q
f = False
for e in id:
if pq[e] >= 1000000:
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 ... |
s362140549 | p00100 | Accepted | while 2 > 1:
line_num = int(raw_input())
if line_num < 1:
break
mydict = {}
mydict_distinct = {}
myIDlist = []
for n in range(line_num):
dat = map(int, raw_input().split(" "))
if dat[0] in mydict_distinct:
mydict[dat[0]] += dat[1] * dat[2]
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 ... |
s358437922 | p00100 | Accepted | 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(str(ans[r]+ww)) >= 7:
hogehoge+=1
name1.append(hoge... | 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 ... |
s751352158 | p00100 | Accepted | while True:
n=input()
if n==0:
break
sale=[0]*4000
raw=[]
for unused in xrange(n):
a,b,c=map(int,raw_input().split())
sale[a]+=b*c
if a not in raw:
raw.append(a)
ans=[i for i in raw if sale[i]>=1000000]
if not ans:
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 ... |
s712416361 | p00100 | Accepted | while 1:
n = int(raw_input())
if n == 0: break
table = []
index = {}
for k in range(n):
i, p, q = raw_input().split()
record = index.get(i)
if not record:
record = [i, 0]
table.append(record)
index[i] = record
record[1] += int(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 ... |
s036792027 | p00100 | Accepted |
import sys
class Person:
def __init__(self, number):
self.number = number
self.total_sales = 0
def sales(self, price, quantity):
self.total_sales += price * quantity
while True:
n = int(sys.stdin.readline())
if n == 0:
exit()
persons = []
for i in range(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 ... |
s497778941 | p00100 | Accepted | while 1:
n=input()
if n==0: break
ans={}
x=[raw_input().split() for _ in range(n)]
w=[]
for a,b,c in x:
if not a in w: w.append(a)
ans.setdefault(a,0)
ans[a]+=int(b)*int(c)
y=[k for k,v in ans.items() if v>=1000000]
if len(y)==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 ... |
s562526067 | p00100 | Accepted | class Member():
def __init__(self, mi):
self.member_id = int(mi)
self.datalist = []
def addData(self, pr, sn):
self.datalist.append([int(pr), int(sn)])
def calc(self):
sum = 0
for p, s in self.datalist:
sum += p * s
return sum
output_list = []
members = []
member_dict = {}
while 1:
n = 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 ... |
s128475962 | p00100 | Accepted | from sys import stdin
while True:
n = int(stdin.readline())
if n==0: break
ps = []
prd = {}
for gomi in xrange(n):
p,a,b = map(int,stdin.readline().split())
if p in ps: r = prd.pop(p)+a*b
else:
ps.append(p)
r = a*b
prd.update({p:r})
isNA ... | 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 ... |
s513623595 | p00100 | Accepted | #!/usr/bin/env python
from __future__ import division, print_function
from sys import stdin, exit
from collections import Counter
def main(readline=stdin.readline):
count = Counter()
member = []
while 1:
n = int(readline())
if not n:
exit()
count.clear()
del m... | 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 ... |
s584543711 | p00100 | Accepted |
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_input())
if num==0: break
li... | 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 ... |
s072621256 | 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:
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 ... |
s372918911 | p00100 | Accepted | import sys
datasetnum=[]
n=-1
def calculatebillionare(n):
global datasetnum
scores={}
billionares=[]
if n==-1:
return None
else:
for salesdata in datasetnum:
if not salesdata[0] in billionares:
if salesdata[0] in scores:
scores[salesd... | 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 ... |
s130775501 | p00100 | Accepted | while True:
ans = []
data = {}
r = input()
if r == 0:
break
for i in xrange(r):
tmp = map(int, raw_input().split())
if tmp[0] in data.keys():
data[tmp[0]] += tmp[1] * tmp[2]
else:
data.update({tmp[0]:tmp[1]*tmp[2]})
if dat... | 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 ... |
s222486466 | p00100 | Accepted | 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
oo = []
for x in o:
if x not in oo:
oo.append(x)
for i in oo:
if m[i] >= 1000000:
print(i)
if max(... | 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 ... |
s596926999 | p00100 | Accepted | #個数の入力値が0になるまで繰り返す。空の辞書を作成。
while True:
n = int(input())
if n == 0:break
sya = {}
#辞書の中に社員番号があったなら数値を加算し、ないなら新しく追加する。
for _ in range(n):
try:
a,b,c = map(int,input().split())
sya[a] = sya[a]+b*c
except KeyError:
sya[a] = b*c
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 ... |
s670102497 | p00100 | Accepted | while True:
flg = True
inf = []
dic = {}
n = int(input())
if n==0:
break
for i in range(n):
inf.append(list(map(int,input().split())))
if inf[i][0] in dic:
tmp = dic[inf[i][0]] + inf[i][1]*inf[i][2]
dic[inf[i][0]] = tmp
else:
di... | 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 ... |
s197490827 | p00100 | Accepted | while True:
n = int(input())
if n == 0:
break
lst = [0]*4001
elst = []
ans = []
for i in range(n):
e, p, q = map(int, input().split())
if lst[e]:
pass
else:
elst.append(e)
lst[e] = lst[e] + p*q
for i in elst:
if lst[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 ... |
s132491801 | p00100 | Accepted | def solve():
N = int(input())
if N == 0:
return False
E = []
D = {}
for i in range(N):
e, p, q = map(int, input().split())
E.append(e)
D[e] = D.get(e, 0) + p*q
cnt = 0
for e in E:
if D.get(e, 0) >= 1000000:
print(e)
del D[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 ... |
s639399537 | p00100 | Accepted | while True:
input_n = int(input())
key = 0
if input_n == 0:
break
id_list = [[0 for i in range(2)]for i in range(input_n)]
for i in range(input_n):
id_line = input().split()
for j in id_list:
if j[0] == int(id_line[0]):
j[1] += int(id_line[1]) * in... | 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 ... |
s830505881 | p00100 | Accepted | from collections import defaultdict
while True:
n = int(input())
if n == 0:
break
dv = defaultdict(int)
for _ in range(n):
e, p, q = list(map(int, input().split()))
dv[e] += p * q
count = 0
for k, v in dv.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 ... |
s503419596 | p00100 | Accepted | from collections import defaultdict
while True:
n = int(input())
if n == 0:
break
SALES = defaultdict(int)
for _ in range(n):
id, p, num = [int(x) for x in input().split()]
SALES[id] += p * num
L = [k for k, v in SALES.items() if v >= 1000000]
if len(L) > 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 ... |
s395880586 | p00100 | Accepted | while 1:
n=int(input())
if n==0:break
a={};c=[]
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];c.append(b[0])
if max(a.values())<=999999:print('NA' )
for i in c:
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 ... |
s424158078 | p00100 | Accepted | while True:
n = int(input())
if n == 0:
break
id = []
pq = [-1] * 4001
for i in range(n):
e,p,q = list(map(int,input().split()))
if pq[e] < 0:
id.append(e)
pq[e] = p*q
else: pq[e] += p*q
f = False
for e in id:
if pq[e] >=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 ... |
s528795613 | p00100 | Accepted | while True:
n=int(input())
if n==0:
break
s=[-1]*4001
id=[]
for i in range(n):
e,p,q=map(int,input().split())
if s[e]<0:
id.append(e)
s[e]=p*q
else:
s[e]+=p*q
ch=True
for i in id:
if s[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 ... |
s401463361 | p00100 | Accepted | while True:
n = int(input())
if n == 0:
break
save_list=[0]*4001
display_list = []
for i in range(n):
a,b,c = map(int, input().split())
save_list[a] += b * c
if a not in display_list:
display_list.append(a)
ans = []
for i in display_list:
... | 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 ... |
s494691519 | p00100 | Accepted | if __name__ == '__main__':
while True:
try:
n = int(input())
if n == 0:
break
no = []
total = []
for i in range(n):
e,p,q = map(int,input().split())
if e not in no:
no.append(e)
total.append(p*q)
else:
ind = no.index(e)
total[ind] += p*q
cnt = 0
for j,k in... | 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 ... |
s551665384 | p00100 | Accepted | while True:
try:
N=int(input())
if N==0:break
ans=[]
dic={}
for i in range(N):
e,p,q=map(int,input().split())
if e in dic:dic[e] +=p*q
else:dic[e]=p*q
for v,m in dic.items():
if m>=1000000:ans.append(v)
if len(an... | 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 ... |
s250426318 | p00100 | Accepted | import sys
while True:
n=int(input())
score={}
if n==0:
sys.exit()
for _ in range(n):
e,p,q=[int(i) for i in input().split(" ")]
score[e]=score.get(e,0)+p*q
employee=[]
for e in score:
if score[e]>=1000000:
employee.append(e)
if len(employee)==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 ... |
s799484855 | p00100 | Accepted | while 1:
n=int(input())
if n==0:break
count=0
member=[0]*4001
mem_check=[]
mem_check2=[]
for i in range(n):
e,p,q=map(int,input().split())
member[e]+=p*q
mem_check.append(e)
for i in mem_check:
if not(i in mem_check2):
if member[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 ... |
s347042723 | p00100 | Accepted | import sys
def sales_result(sales):
total_sales = {}
person = []
for s in sales:
total_sales[s[0]] = total_sales.get(s[0], 0)
total_sales[s[0]] += s[1] * s[2]
if total_sales[s[0]] >= 1000000 and not (s[0] in person):
person.append(s[0])
if len(person) == 0:
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 ... |
s179966843 | p00100 | Accepted | while True:
n = int(input())
if n == 0:
break
result = {}
order = []
for i in range(n):
e, p, q = map(int, input().split())
if e in result:
result[e] += p*q
else:
result[e] = p*q
order.append(e)
flag = True
for e_i 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 ... |
s795692563 | p00100 | Accepted | while True:
n = int(input())
if n == 0: break
personel = {}
for _ in range(n):
e, p, q = input().split()
if e in personel.keys():
personel[e] += int(p) * int(q)
else:
personel[e] = int(p) * int(q)
result = []
for key, val in personel.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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.