結果
問題 | No.2524 Stripes |
ユーザー |
|
提出日時 | 2023-11-27 22:24:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 544 bytes |
コンパイル時間 | 209 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 36,480 KB |
最終ジャッジ日時 | 2024-09-26 12:37:30 |
合計ジャッジ時間 | 11,572 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 RE * 2 |
other | RE * 14 TLE * 1 -- * 10 |
ソースコード
N=int(input())S=list(input())A=[]for i in range(1,N+1):A.append([])if i==1:for j in range(1,N+1):A[0].append([[j,S[j-1]]])else:for j in range(0,len(A[0])):for k in range(A[0][j][i-2][0]+1,N):if A[0][j][i-2][1]!=S[k]:A[1].append([])for l in range(0,i):A[1][len(A[1])-1].append(A[0][j][l])A[1][len(A[1])-1].append([k,S[k]])A.remove(A[0])print(len(A[0]))