c135. Palindrome
Tags :
Accepted rate : 0人/0人 (0%) [非即時]
評分方式:
Tolerant

最近更新 : 2025-04-23 13:08

Content

ㄜ嗨 請你判斷陣列是否對稱

*對稱的定義請看範例*

 

Input

第一行輸入一個整數n,n>2

第二行輸入n個整數

Output

如果陣列是對稱的 輸出"是"

如果陣列不是對稱的 輸出"否"

Sample Input #1
3
1 2 1
Sample Output #1
Sample Input #2
4
1 2 2 1
Sample Output #2
Sample Input #3
5
6 7 8 7 6
Sample Output #3
Sample Input #4
5
1 2 3 4 5
Sample Output #4
測資資訊:
記憶體限制: 64 MB
不公開 測資點#0 (20%): 1.0s , <1K
不公開 測資點#1 (20%): 1.0s , <1K
不公開 測資點#2 (20%): 1.0s , <1K
不公開 測資點#3 (20%): 1.0s , <1K
不公開 測資點#4 (20%): 1.0s , <1K
Hint :
Tags:
出處:
[管理者: stu210126(周宸安) ]


ID User Problem Subject Hit Post Date
沒有發現任何「解題報告」