{"trustable":false,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n section pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027\\\\(\u0027, right: \u0027\\\\)\u0027, display: false},\n {left: \u0027\\\\[\u0027, right: \u0027\\\\]\u0027, display: true}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"Problem Statement","value":{"format":"HTML","content":"\n\u003csection\u003e\n\u003cp\u003eEmin has a string \u003cvar\u003e\\(S\\)\u003c/var\u003e consisting of uppercase English letters. Find the length of the longest \u003cem\u003eACGT string\u003c/em\u003e that is a substring (see Notes) of \u003cvar\u003e\\(S\\)\u003c/var\u003e.\u003c/p\u003e\n\u003cp\u003eHere, a ACGT string is a string that contains no characters other than \u003ccode\u003eA\u003c/code\u003e, \u003ccode\u003eC\u003c/code\u003e, \u003ccode\u003eG\u003c/code\u003e and \u003ccode\u003eT\u003c/code\u003e.\u003c/p\u003e\n\u003c/section\u003e\n"}},{"title":"Notes","value":{"format":"HTML","content":"\n\u003csection\u003e\n\u003cp\u003eA substring of a string \u003cvar\u003e\\(T\\)\u003c/var\u003e is a string obtained by removing zero or more characters from the beginning and the end of \u003cvar\u003e\\(T\\)\u003c/var\u003e.\u003c/p\u003e\n\u003cp\u003eFor example, the substrings of \u003ccode\u003ePROGRAMMER\u003c/code\u003e include \u003ccode\u003eROG\u003c/code\u003e, \u003ccode\u003eMMER\u003c/code\u003e, \u003ccode\u003ePRO\u003c/code\u003e, \u003ccode\u003eOGRA\u003c/code\u003e and \u003ccode\u003e\u003c/code\u003e (the empty string), but not \u003ccode\u003ePA\u003c/code\u003e.\u003c/p\u003e\n\u003c/section\u003e\n"}},{"title":"Constraints","value":{"format":"HTML","content":"\n\u003csection\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cvar\u003e\\(S\\)\u003c/var\u003e is a string of length between \u003cvar\u003e\\(1\\)\u003c/var\u003e and \u003cvar\u003e\\(10\\)\u003c/var\u003e (inclusive).\u003c/li\u003e\n\u003cli\u003eEach character in \u003cvar\u003e\\(S\\)\u003c/var\u003e is an uppercase English letter.\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/section\u003e\n"}},{"title":"Input","value":{"format":"HTML","content":"\n\u003csection\u003e\n\u003cp\u003eInput is given from Standard Input in the following format:\u003c/p\u003e\n\u003cpre\u003e\u003cvar\u003e\\(S\\)\u003c/var\u003e\n\u003c/pre\u003e\n\n\u003c/section\u003e\n"}},{"title":"Output","value":{"format":"HTML","content":"\n\u003csection\u003e\n\u003cp\u003ePrint the length of the longest \u003cem\u003eACGT string\u003c/em\u003e that is a substring of \u003cvar\u003e\\(S\\)\u003c/var\u003e.\u003c/p\u003e\n\u003c/section\u003e\n"}},{"title":"Sample 2","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003eHATAGAYA\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e5\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003csection\u003e\n\n\n\u003c/section\u003e\n\n\u003csection\u003e\n\n\n\u003cp\u003eAmong the ACGT strings that are substrings of \u003ccode\u003eHATAGAYA\u003c/code\u003e, the longest one is \u003ccode\u003eATAGA\u003c/code\u003e.\u003c/p\u003e\n\u003c/section\u003e\n"}},{"title":"Sample 3","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003eSHINJUKU\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e0\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003csection\u003e\n\n\n\u003c/section\u003e\n\n\u003csection\u003e\n\n\n\u003cp\u003eAmong the ACGT strings that are substrings of \u003ccode\u003eSHINJUKU\u003c/code\u003e, the longest one is \u003ccode\u003e\u003c/code\u003e (the empty string).\u003c/p\u003e\u003c/section\u003e\n"}}]}