25 lines
310 B
Python
25 lines
310 B
Python
import io
|
|
import sys
|
|
|
|
sys.stdin = io.StringIO('''4
|
|
5 5 5
|
|
1 2 40
|
|
10 5 41
|
|
7 2 42''')
|
|
|
|
# 80%
|
|
n = int(input())
|
|
|
|
flag = True
|
|
for _ in range(n):
|
|
chang, kuan, gao = map(int, input().split())
|
|
if gao >= 41:
|
|
continue
|
|
|
|
tiji = chang * kuan * gao
|
|
flag = False
|
|
print(tiji)
|
|
|
|
if flag:
|
|
print(0)
|