結果
| 問題 |
No.290 1010
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-12-30 15:35:08 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 181 bytes |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 77,440 KB |
| 最終ジャッジ日時 | 2024-12-30 15:35:10 |
| 合計ジャッジ時間 | 2,385 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 7 |
ソースコード
n=int(input())
s=input()
for i in range(n//2):
if s[i]==s[~i]:
print("YES")
exit()
for i in range(1,n//2):
if s[i-1]+s[i]==s[~i]+s[(~i)+1]:
print("YES")
exit()
print("NO")
sasa8uyauya