3236 - I2P(I)2025_Chou_Hu_Lab2_ClassB Scoreboard

Time

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

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
14732 Is it palindrome?
14733 String Ninja

14732 - 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 is a palindrome

(uppercase letter are not equal to lowercase letter)

Input

First line contain integer indicating the number of testcases, the next n lines contain the input string S

1 <= len(S) <= 1000

Output

Output Yes if it is a palindrome and No if it is not.

Sample Input  Download

Sample Output  Download

Tags




Discuss




14733 - String Ninja   

Description

A cool ninja can split themself and multiply themself

Given string S, integer l and integer r. extract the substring between and r-1 and repeat it by (r-l) times

Input

The first line contain string S, following with integer  l ,and integer on the next line.

0 <= len(S) <= 100

0 <= l < r <= len(S)

Output

Output the computed string ret_S

Sample Input  Download

Sample Output  Download

Tags




Discuss