{"id":"a40013b0-023f-4de0-b972-d46a59c685a2","name":"Obtain The String","description":"<a href=\"https://codeforces.com/problemset/problem/1295/C\" target=\"_blank\"><i class=\"fa fa-external-link\" aria-hidden=\"true\"> Link -> Obtain The String</i></a>","inputFormat":"check the link","outputFormat":"check the link","constraints":"check the link","sampleCode":{"cpp":{"code":""},"java":{"code":"import java.util.Scanner;\r\n\r\npublic class Main {\r\n public static void main(String[] args) {\r\n Scanner sc = new Scanner(System.in);\r\n\r\n //Code here\r\n\r\n }\r\n}"},"ruby":{"code":""},"python":{"code":""},"javascript":{"code":""}},"points":10,"difficulty":"easy","sampleInput":"3\r\naabce\r\nace\r\nabacaba\r\naax\r\nty\r\nyyt\r\n","sampleOutput":"1\r\n-1\r\n3\r\n","questionVideo":"","hints":[],"associated":[],"solutionSeen":false,"tags":[],"meta":{"path":[{"id":0,"name":"home"},{"id":"0c54b191-7b99-4f2c-acb3-e7f2ec748b2a","name":"Data Structures and Algorithms","slug":"data-structures-and-algorithms","type":0},{"id":"a2073e25-96a1-4875-b400-f40bbe2edd95","name":"Text Processing For Experts","slug":"text-processing-for-experts-859","type":0},{"id":"40fb94a2-2d45-47b9-8e82-657df563a22d","name":"Obtain The String","slug":"obtain-the-string","type":1}],"next":{"id":"b52a2114-f12c-4828-9f23-c01c08f17533","name":"One More Name","type":1,"slug":"one-more-name"},"prev":{"id":"6ad517c0-9b78-4fed-8d1b-3677208d275d","name":"Exponential Notation","type":1,"slug":"exponential-notation"}}}

Obtain The String

<a href="https://codeforces.com/problemset/problem/1295/C" target="_blank"><i class="fa fa-external-link" aria-hidden="true"> Link -> Obtain The String</i></a>

{"id":"a40013b0-023f-4de0-b972-d46a59c685a2","name":"Obtain The String","description":"<a href=\"https://codeforces.com/problemset/problem/1295/C\" target=\"_blank\"><i class=\"fa fa-external-link\" aria-hidden=\"true\"> Link -> Obtain The String</i></a>","inputFormat":"check the link","outputFormat":"check the link","constraints":"check the link","sampleCode":{"cpp":{"code":""},"java":{"code":"import java.util.Scanner;\r\n\r\npublic class Main {\r\n public static void main(String[] args) {\r\n Scanner sc = new Scanner(System.in);\r\n\r\n //Code here\r\n\r\n }\r\n}"},"ruby":{"code":""},"python":{"code":""},"javascript":{"code":""}},"points":10,"difficulty":"easy","sampleInput":"3\r\naabce\r\nace\r\nabacaba\r\naax\r\nty\r\nyyt\r\n","sampleOutput":"1\r\n-1\r\n3\r\n","questionVideo":"","hints":[],"associated":[],"solutionSeen":false,"tags":[],"meta":{"path":[{"id":0,"name":"home"},{"id":"0c54b191-7b99-4f2c-acb3-e7f2ec748b2a","name":"Data Structures and Algorithms","slug":"data-structures-and-algorithms","type":0},{"id":"a2073e25-96a1-4875-b400-f40bbe2edd95","name":"Text Processing For Experts","slug":"text-processing-for-experts-859","type":0},{"id":"40fb94a2-2d45-47b9-8e82-657df563a22d","name":"Obtain The String","slug":"obtain-the-string","type":1}],"next":{"id":"b52a2114-f12c-4828-9f23-c01c08f17533","name":"One More Name","type":1,"slug":"one-more-name"},"prev":{"id":"6ad517c0-9b78-4fed-8d1b-3677208d275d","name":"Exponential Notation","type":1,"slug":"exponential-notation"}}}
plane

Editor


Loading...

Obtain The String

easy

Constraints

check the link

Format

Input

check the link

Output

check the link

Example

Sample Input

3 aabce ace abacaba aax ty yyt

Sample Output

1 -1 3

Discussions

Show Discussion

Related Resources

related resources

Turning Off Zen Mode