# | Problem | Pass Rate (passed user / total user) |
---|---|---|
13969 | Frieren and Magic |
|
13975 | Frieren and her Rizz 2 |
|
Description
Frieren wants to learn time magic.
She got really interested in learning it, but manipulating time is just too complicated for her.
Can you help her with your C programming skills?
Given input X which describes the total days, convert X to the number of years and seconds.
Note :
- 1 year is 365 days
- 1 day is 24 hours
- 1 hour is 3600 seconds
Input
Input contains 1 integer X
0 < X < 231
Output
Output 3 numbers, number of years in double datatype, years in float datatype, and seconds, separated by space.
The year should be in 6th decimal place format.
Don’t forget to print a new line '\n' after the end of the output.
Sample Input Download
Sample Output Download
Tags
Discuss
Description
Frieren wants to steal Josh's heart again, because her first attempt heartbreakingly failed.
It’s because Josh reinforced the encrypted key, which made her harder to decrypt.
Given 6 digits binary,
The first digit is a signed bit, as per the rules :
- If the signed bit is 1, make it lowercase
- If the signed bit is 0, make it uppercase
The last 5 digits determine the number. Convert the number to a character in reversing order, such as :
- Number 1 is ‘z’
- Number 2 is ‘y’
- Number 3 is ‘x’
- and so on … until 26 as ‘a’
Here is the ASCII Table to help you:
Input
Input is 1 integer.
You can safely assume that the input is only 6 digit and contain 1 or 0, and the number is in the range 1 <= X <= 26
Output
Output the encrypted character
Don't forget to print the new line