ããã¹ã T = "ANPANMAN" ã«å¯¾ã㦠k = 3 ãã k = 8 ã¾ã§ãã¿ã¼ã³ P = "PAN" ãé ç½®ããæ§åããã®å ´åãk = 5 ã®ä½ç½®ã§ä¸è´ããã æåå S ã«å¯¾ããæä½ã以ä¸ã®ããã«è¡¨ãï¼ S[i]ï¼ æåå S ã® i çªç®ã®æå S[i..j]ï¼ æåå S ã® i ãã j çªç®ã¾ã§ã®é¨åæååï¼i æåç®ãj æåç®ãããããå«ãï¼ æåå S ã«å«ã¾ããæåã®åæ°ãæååã®é·ãã¨å®ç¾©ãããã¾ããæåå S ã®å é ãå«ãé¨åæååããã¬ãã£ãã¯ã¹ãæ«å°¾ãå«ãé¨åæååããµãã£ãã¯ã¹ã¨å®ç¾©ããã len(S)ï¼S ã®é·ã S[1..i], 1 ⤠i ⤠len(S)ï¼S ã®ãã¬ãã£ãã¯ã¹ S[i..len(S)], 1 ⤠i ⤠len(S)ï¼S ã®ãµãã£ãã¯ã¹ æ¤ç´¢æååããã¿ã¼ã³ã¨å¼ã³ãP ã§è¡¨ãã被æ¤ç´¢æååãããã¹ãã¨å¼ã³ãT ã§è¡¨ããã¾ã T
{{#tags}}- {{label}}
{{/tags}}