TopCoder

User's AC Ratio

100.0% (1/1)

Submission's AC Ratio

100.0% (1/1)

Tags

Description

最近空污嚴重,桃子突然想到可以賣新鮮竹子空氣賺錢。桃子有很多長方形的盒子,然而他數學不好,不知道這些盒子總共可以裝多少空氣。請你幫他算出一個盒子可以裝多少空氣,這樣他就能靠加法自己算出總和了。

註:此題為互動題,請以下面的格式提交 code,你只需要完成函式的部分(提交時要交包含以下部分的 code)。

#include "lib0601.h"
int box_volume (int length, int width, int height)
{
    // your code
}

Input Format

函式的三個參數請參考題敘,單位為公尺。

  • $1 \leq \textrm{length, width, height} \leq 1000$

請不要動到輸入,否則你會得到 WA 或 RE。

Output Format

讓函式回傳體積,單位為立方公尺。
請不要動到輸出,否則你會得到 WA。

Sample Input 1

1
2 3 4

Sample Output 1

24

Hints

測試用標頭檔
這裡提供一份本地測試用的標頭檔,你可以將其複製下來存檔成 lib0601.h#include "lib0601.h" 做使用。但請注意,這只是測試用的標頭檔,一些與解題無關的行為將會與 judge 上的有所不同,因此請不要嘗試任何與解題無關的行為,很可能會導致各種不可預期的後果。

Problem Source

Subtasks

No. Testdata Range Constraints Score
1 0 範例測資 0
2 0~6 無額外限制 100

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 524288 65536 1 2
1 1000 524288 65536 2
2 1000 524288 65536 2
3 1000 524288 65536 2
4 1000 524288 65536 2
5 1000 524288 65536 2
6 1000 524288 65536 2