結果
| 問題 | No.290 1010 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-22 02:52:17 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 30 ms / 5,000 ms |
| + 254µs | |
| コード長 | 273 bytes |
| 記録 | |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 81,904 KB |
| 実行使用メモリ | 63,028 KB |
| 最終ジャッジ日時 | 2026-10-05 06:44:51 |
| 合計ジャッジ時間 | 2,793 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
N = int(input())
S = '%' + input().rstrip()
if N >= 4:
print("YES")
exit()
for i in range(1, N):
j = i
while j + (j + 1 - i) <= N:
if S[i:j + 1] == S[j + 1:j + (j + 1 - i) + 1]:
print("YES")
exit()
j += 1
print("NO")