結果
| 問題 |
No.290 1010
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-08-01 16:58:53 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 234 bytes |
| コンパイル時間 | 88 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 12,796 KB |
| 最終ジャッジ日時 | 2024-10-11 00:14:34 |
| 合計ジャッジ時間 | 1,706 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 WA * 8 |
ソースコード
#010
N=int(input())
S=input()
N2=N//2
nd=0
i=0
while i<=N2 and nd==0:
j=0
while j+i+i<N and nd==0:
if S[j:j+i]==S[j+i+1:j+i+i+1]:
a="YES"
nd=1
j+=1
i+=1
if i>=N2:
a="NO"
print(a)
rocoder