is palindrome number?


Submit solution

Points: 40 (partial)
Time limit: 1.0s
Memory limit: 256M

Authors:
Problem types

題目說明

將兩數相加,判斷是否為回文(正著與反著相同)

輸入限制

正整數

輸入

兩正整數

輸出

是回文: true

不是回文: false

測試資料0 輸入

12 10

測試資料0 輸出

true
//因12 + 10 = 22, 22正與反皆相同

測試資料1 輸入

22 31

測試資料1 輸出

false
//因22 + 31 = 53, 53正與反皆不同

Comments

There are no comments at the moment.