結果

問題 No.290 1010
ユーザー tookunn_1213tookunn_1213
提出日時 2015-10-16 22:39:21
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 516 ms
コンパイル使用メモリ 6,672 KB
実行使用メモリ 71,352 KB
最終ジャッジ日時 2023-09-29 01:01:33
合計ジャッジ時間 20,867 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,932 KB
testcase_01 AC 11 ms
5,956 KB
testcase_02 WA -
testcase_03 AC 11 ms
5,956 KB
testcase_04 AC 11 ms
6,020 KB
testcase_05 WA -
testcase_06 AC 11 ms
6,024 KB
testcase_07 AC 11 ms
5,980 KB
testcase_08 AC 12 ms
5,988 KB
testcase_09 WA -
testcase_10 AC 12 ms
5,968 KB
testcase_11 WA -
testcase_12 AC 11 ms
5,952 KB
testcase_13 AC 11 ms
5,852 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 11 ms
5,908 KB
testcase_17 AC 11 ms
5,988 KB
testcase_18 AC 11 ms
5,912 KB
testcase_19 AC 11 ms
5,852 KB
testcase_20 AC 4,650 ms
71,352 KB
testcase_21 AC 4,723 ms
71,352 KB
testcase_22 AC 4,738 ms
71,264 KB
testcase_23 AC 4,718 ms
71,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
S = raw_input()
flag = False
for i in range(N):
	for j in range(i,N):
		if j + (j + 1- i) >= N:break
		if S[i - 1:j] == S[j + 1 - 1:j + (j + 1 - i)]:
			flag = True
			break
	if flag:
		break
print ('YES' if flag else 'NO')
0