separate string reverse
Submit solution
Points:
50
Time limit:
1.0s
Memory limit:
64M
Authors:
Problem type
Allowed languages
Java 19, Java 8
題目說明
輸入一個字串,並輸入一個數字n後,反向輸出至第n位,並輸出其是否為回文
輸入資料限制:1 <= 輸入字串長度 <= 50,此題無分段給分
輸入
字串 整數n
輸出
反向輸出至第n位,並輸出其是否為回文(true/false)
sample input1
sample 3
sample output1
e l p
false
sample input2
java 1
sample output2
a v a
true
Comments