0%

AOJ ITP1_11_A - Dice I

Dice I

題意:

給你一顆骰子,然後翻轉骰子後,問你朝上的那面數字為多少。

閱讀全文 »

UVA 11219 - How old are you

How old are you

題意:

檢查歲數有沒有問題。
• ‘Invalid birth date’, if the calculated age is impossible (still going to be born).
• ‘Check birth date’, if the calculated age is more than 130.
• the calculated age (years old only), otherwise.
• If the two dates are the same, the output should be ‘0’.

閱讀全文 »