結果
問題 |
No.290 1010
|
ユーザー |
![]() |
提出日時 | 2016-04-15 03:55:45 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 5,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 143 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 7,424 KB |
最終ジャッジ日時 | 2024-10-04 09:20:21 |
合計ジャッジ時間 | 1,325 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
n=input() s=raw_input() def mys(s,a,b): return s[a-1:b] if n>3: print"YES" else: for i in range(1,n+1): for j in range(i,n+1): if j+j+1-i<=n and mys(s,i,j)==mys(s,j+1,j+j+1-i): print"YES" exit() print"NO"