3218 - I2P(I)2025_Chou_Hu_Hw2_ClassB Scoreboard

Time

2025/09/09 20:30:00 2025/09/16 18:30:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
14676 Strict formatting
14678 Is it palindrome?

14676 - Strict formatting   

Description

Given input N (int/float), output N in a specific way such that:

 

If x is a positive integer, output 0 in front of the number such that the length of the number is 5

If x is a float, make sure the total of number count before and the after comma are 5

 

If the count already exceed 5, let it be

 

HINT

because python standart I/O converting all the input to str, here a link for a hint how to differentiate float or int

update

9/10 constraint update for input N

Input

A positive integer/float N

0 < N <= 1000000

Output

Output the correct formatting of the number

Sample Input  Download

Sample Output  Download




Discuss




14678 - Is it palindrome?   

Description

Palindrome is a word, phrase, or sequence that reads the same backwards as forwards.

Write a simple code to check if the input string s is a palindrome

Input

Input string S

1 <= len(S) <= 1000

Output

Output Yes if its a palindrome and No if its not

Sample Input  Download

Sample Output  Download




Discuss