{"id":"8241d912-5cd9-4532-9dbb-26535b76080b","name":"Interesting Array","description":"<a href=\"https://codeforces.com/contest/482/problem/B\">https://codeforces.com/contest/482/problem/B</a>","inputFormat":".","outputFormat":".","constraints":".","sampleCode":{"cpp":{"code":""},"java":{"code":"import java.io.*;\r\nimport java.util.*;\r\n\r\npublic class Main {\r\n static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\r\n static PrintWriter out = new PrintWriter(System.out);\r\n /*\r\n use in for reading input\r\n use out for printing output\r\n */\r\n\r\n public static void main(String[] args) throws IOException {\r\n\r\n // write your code here.\r\n\r\n\r\n\r\n out.close();\r\n }\r\n}\r\n"},"ruby":{"code":""},"python":{"code":""},"javascript":{"code":""}},"points":10,"difficulty":"hard","sampleInput":"3 1\r\n1 3 3\r\n","sampleOutput":"YES\r\n3 3 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":"9b3d7d76-b2ca-458f-80a8-4b37d548024a","name":"Segment Tree For Experts","slug":"segment-tree-for-experts-953","type":0},{"id":"9dd64f5f-7a56-47fd-a4ff-989871c94bbd","name":"Interesting Array","slug":"interesting-array","type":1}],"next":null,"prev":{"id":"bb26ccac-1430-4cf4-bf4a-a8b38e44b68a","name":"Xor On Segment","type":1,"slug":"xor-on-segment"}}}

Interesting Array

<a href="https://codeforces.com/contest/482/problem/B">https://codeforces.com/contest/482/problem/B</a>

{"id":"8241d912-5cd9-4532-9dbb-26535b76080b","name":"Interesting Array","description":"<a href=\"https://codeforces.com/contest/482/problem/B\">https://codeforces.com/contest/482/problem/B</a>","inputFormat":".","outputFormat":".","constraints":".","sampleCode":{"cpp":{"code":""},"java":{"code":"import java.io.*;\r\nimport java.util.*;\r\n\r\npublic class Main {\r\n static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\r\n static PrintWriter out = new PrintWriter(System.out);\r\n /*\r\n use in for reading input\r\n use out for printing output\r\n */\r\n\r\n public static void main(String[] args) throws IOException {\r\n\r\n // write your code here.\r\n\r\n\r\n\r\n out.close();\r\n }\r\n}\r\n"},"ruby":{"code":""},"python":{"code":""},"javascript":{"code":""}},"points":10,"difficulty":"hard","sampleInput":"3 1\r\n1 3 3\r\n","sampleOutput":"YES\r\n3 3 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":"9b3d7d76-b2ca-458f-80a8-4b37d548024a","name":"Segment Tree For Experts","slug":"segment-tree-for-experts-953","type":0},{"id":"9dd64f5f-7a56-47fd-a4ff-989871c94bbd","name":"Interesting Array","slug":"interesting-array","type":1}],"next":null,"prev":{"id":"bb26ccac-1430-4cf4-bf4a-a8b38e44b68a","name":"Xor On Segment","type":1,"slug":"xor-on-segment"}}}
plane

Editor


Loading...

Interesting Array

hard

https://codeforces.com/contest/482/problem/B

Constraints

.

Format

Input

.

Output

.

Example

Sample Input

3 1 1 3 3

Sample Output

YES 3 3 3

Discussions

Show Discussion

Related Resources

related resources

Turning Off Zen Mode