# | Problem | Pass Rate (passed user / total user) |
---|---|---|
12867 | Days Converter |
|
12868 | The Value of One Square Meter |
|
Description
Write a C program to converts days into years, weeks and days. Note that we consider a year as 365 days, and a week as 7 days.
Input
An Integer X. Note that 4,294,967,295 >= X >= 0.
Output
Output should follow below format:
X year(s), Y week(s), Z day(s)
Note that you need to have a return value('\n') at the end of your string.
Sample Input Download
Sample Output Download
Tags
Discuss
Description
Given width, length, and the price of a planed-object(like, paper, drawing, etc.). Please write a C program to calculate the value of this kind of object if it's full of a square meter.
Input
Three Integers W(width), L(Length), and P(price). Note that the unit of W, L is meter, and the unit of P is NTD. 65,000 >= W, L, P >= 0.
Output
Output should follow below format:
$XX.XXNTD\m2
Note that you need to have a return value('\n') at the end of your string.
Also, XX.XX should always round to the 2nd decimal place. e.g. 1.00, 32.01