Thunder God ’s Hammer
题号:NC245413
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 32 M,其他语言64 M
64bit IO Format: %lld

题目描述

Thunder God, the god of thunder in ancient Chinese mythology. According to the records of “Shan Hai Jing·Hai Nei Dong Jing”, Thunder God lives in Lei Ze, with the shape of a dragon body and a human head. Thunder God with Thunder God’s hammer patted his abdomen, it will emit thunder. The size of the thunder and the weight of the Thunder hammer is 1:1. Suppose the hammer of Thunder God is a cuboid. Given the length, width, height and density of the hammer, can you calculate the size of the thunder?

输入描述:

The fifirst line contains one integer N (1 ≤ N ≤ 10000)— the number of test cases. Next, there are N rows, and each row corresponds to a test case.
Each test case contains four integers a, b, c, d (1 ≤ a, b, c, d ≤ 100), which represent the length, width, height, and density of the Thunder hammer, respectively.

输出描述:

Each test case outputs a row for an integer, the size of thunder.
示例1

输入

复制
2
1 1 1 1
1 2 3 4

输出

复制
1
24