2113 - IP_2020_YOU_LAB3 Scoreboard

Time

2020/10/06 15:30:00 2020/10/06 18:00:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
12894 Decimal Numbers to Binary Numbers
12895 Palindrome Number

12894 - Decimal Numbers to Binary Numbers   

Description

給定一個十進位的 整數,請試著將他轉成 二進位 的數

 

舉例:

- 如果給定的數是 21,則轉成二進位的結果為 10101

- 如果給定的數是 121,則轉成二進位的結果為 1111001

Input

一個 整數 *Decimal

 

Note:

  1. 32,767 >= *Decimal >= 0

Output

輸出符合以下格式:

*Binary

 

Note:

  1. 輸出的最後必須要有一個換行符號 ('\n')
  2. 請勿輸出多餘的 '0', e.g. (X) 00100 (O) 100

 

Sample Input  Download

Sample Output  Download

Tags




Discuss




12895 - Palindrome Number   

Description

If a number is a palindrome number, that means the that number remains the same value when its digits are reversed.

E.g. 12345 is not a palindrome number because 12345 is not equal to 54321; on the contrary, 10301 is a palindrome number because it remains 10301 when its digits are reversed.

Given an integer. Please Write a C program to tell if it’s a palindrome number.

 

Input

One integer Num. Note that 32,767 >= Num >= 0.

 

Output

Output should follow below format:

Yes/No

Note that:

  1. Need to have a return value('\n') at the end of your string.

Sample Input  Download

Sample Output  Download

Tags




Discuss