`{"id":"df123449-add2-402b-a987-7fa7764ba6bd","name":"Devu And His Brother","description":"<a href=\"https://codeforces.com/problemset/problem/439/D\" target=\"_blank\"><i class=\"fa fa-external-link\" aria-hidden=\"true\"> Link -> Devu and his Brother</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":"medium","sampleInput":"2 2\r\n2 3\r\n3 5\r\n","sampleOutput":"3\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":"ccdbbb91-d392-43f3-8065-0ecd4a077535","name":"Ternary Search For Experts","slug":"ternary-search-for-experts-998","type":0},{"id":"134f0f71-402a-4503-a540-f2b303e29278","name":"Devu And His Brother","slug":"devu-and-his-brother","type":1}],"next":null,"prev":{"id":"c39df45b-832e-45ac-8ea9-8d37bb47e30c","name":"Trick Or Treat","type":1,"slug":"trick-or-treat"}}}`

# Devu And His Brother

<a href="https://codeforces.com/problemset/problem/439/D" target="_blank"><i class="fa fa-external-link" aria-hidden="true"> Link -> Devu and his Brother</i></a>

`{"id":"df123449-add2-402b-a987-7fa7764ba6bd","name":"Devu And His Brother","description":"<a href=\"https://codeforces.com/problemset/problem/439/D\" target=\"_blank\"><i class=\"fa fa-external-link\" aria-hidden=\"true\"> Link -> Devu and his Brother</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":"medium","sampleInput":"2 2\r\n2 3\r\n3 5\r\n","sampleOutput":"3\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":"ccdbbb91-d392-43f3-8065-0ecd4a077535","name":"Ternary Search For Experts","slug":"ternary-search-for-experts-998","type":0},{"id":"134f0f71-402a-4503-a540-f2b303e29278","name":"Devu And His Brother","slug":"devu-and-his-brother","type":1}],"next":null,"prev":{"id":"c39df45b-832e-45ac-8ea9-8d37bb47e30c","name":"Trick Or Treat","type":1,"slug":"trick-or-treat"}}}`

Editor

# Devu And His Brother

medium

## Example

Sample Input

```.css-23h8hz{color:inherit;font-size:0.875rem;line-height:1.125rem;letter-spacing:0.016rem;font-weight:var(--chakra-fontWeights-normal);white-space:pre-wrap;}2 2 2 3 3 5 ```

### Sample Output

```.css-3oaykw{color:var(--chakra-colors-active-primary);font-size:0.875rem;line-height:1.125rem;letter-spacing:0.016rem;font-weight:var(--chakra-fontWeights-normal);white-space:pre-wrap;font-family:Monospace;}3 ```

Discussions

Show Discussion

Related Resources