# | Problem | Pass Rate (passed user / total user) |
---|---|---|
12875 | The Volume of the Cube |
|
12876 | When Is the Time to Leave? |
|
Description
Given width, length, height of a particular cube. Please write a C program to calculate the volume of that cube.
Input
Three floating number W(width), L(length), H(height). Note that the unit of W, L, H is meter. 40.0 >= W, L, H >= 0.0.
Output
Output should follow below format:
XX m3
Note that you need to have a return value('\n') at the end of your string.
Also, XX should always round to the nearest integer.
Sample Input Download
Sample Output Download
Tags
Discuss
Description
給定一個時間(以24小時制的方式表示)以及完成程式考試需要多久。請試著計算出該考生何時可以離開考場。
Hint:
- 善用除法 ' / '、取餘數 ' % '
舉例:
- 如果時間是10:10,且該考生需要180分鐘完成考試,則考生離開考場的時間即為13:10
- 如果時間是23:55,且該考生需要120分鐘完成考試,則考生離開考場的時間即為1:55
Input
三個整數 H(時間的小時), M(時間的分鐘), T(完成考試需要多少分鐘)
利用H, M 去表示24小時制的時間
E.g. H = 10, M = 28 代表時間為 10:28
Note:
- T的單位是分鐘
- 23 >= H >= 0
- 59 >= M >= 0
- 65,535 >= T >= 0
Output
輸出比須符合以下格式:
H:M
Note:
- 輸出的最後必須要有一個換行符號 ('\n')
- H:M是一個24小時制的時間,因此23 >= H >= 0, 59 >= M >=0.
- 輸出時不需要印出時間裡多餘的‘0’
E.g.
(O) 23:9 (X) 23:09
(O) 5:45 (X) 05:45
(O) 0:0 (X) 00:00
(O) 1:1 (X) 25:01