Y. Sneetches and Speeches 1 SOLUTION

Y. Sneetches and Speeches 1 Algorithms Thread Treaps Contest   The only difference between this problem and the other two is that this problem ONLY HAS QUERIES OF TYPE 1!   The sneetches are back on the beaches, with the great Sylvester McMonkey McBean! The ith sneetch has ai stars on his belly (0≤ai≤1). Just like … Read more